diff --git a/.eslintrc.json b/.eslintrc.json index 82b9a5e71713b3c51ed30587c80b34a3b62a473e..b07b1d915c49246982ddcbeaa7fc0cd4a3c427ff 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -39,7 +39,8 @@ "message": "Default exports are not allowed" } ], - "no-throw-literal": "error" + "no-throw-literal": "error", + "key-spacing": "error" }, "overrides": [ { diff --git a/src/mol-canvas3d/passes/smaa.ts b/src/mol-canvas3d/passes/smaa.ts index 763c8ecca3b6a59c000248807a10440898707eef..4572ad613f9457aa024560070d9439bcf96decf5 100644 --- a/src/mol-canvas3d/passes/smaa.ts +++ b/src/mol-canvas3d/passes/smaa.ts @@ -25,8 +25,8 @@ import { Viewport } from '../camera/util'; import { isDebugMode } from '../../mol-util/debug'; export const SmaaParams = { - edgeThreshold:PD.Numeric(0.1, { min: 0.05, max: 0.15, step: 0.01 }), - maxSearchSteps:PD.Numeric(16, { min: 0, max: 32, step: 1 }), + edgeThreshold: PD.Numeric(0.1, { min: 0.05, max: 0.15, step: 0.01 }), + maxSearchSteps: PD.Numeric(16, { min: 0, max: 32, step: 1 }), }; export type SmaaProps = PD.Values<typeof SmaaParams> diff --git a/src/mol-model-formats/structure/cif-core.ts b/src/mol-model-formats/structure/cif-core.ts index 5afdb6d9eac88eb994a61d0ad8b391476be47d46..55f869a798eb6019b9ce9dbc47dfcdafc82fffe7 100644 --- a/src/mol-model-formats/structure/cif-core.ts +++ b/src/mol-model-formats/structure/cif-core.ts @@ -41,7 +41,7 @@ function getSymmetry(db: CifCore_Database): Symmetry { return { spacegroup: Spacegroup.create(spaceCell), - assemblies : [], + assemblies: [], isNonStandardCrystalFrame: false, ncsOperators: [] }; diff --git a/src/mol-plugin-state/manager/snapshots.ts b/src/mol-plugin-state/manager/snapshots.ts index 7195947f4d4365af091f685591ec26fbfb6ca508..c0dcda0c39b2e8ce752a622a6efd6078983e49f7 100644 --- a/src/mol-plugin-state/manager/snapshots.ts +++ b/src/mol-plugin-state/manager/snapshots.ts @@ -193,7 +193,7 @@ class PluginStateSnapshotManager extends StatefulPluginComponent<{ const json = JSON.stringify(this.getStateSnapshot({ params: options?.params }), null, 2); if (!options?.type || options.type === 'json' || options.type === 'molj') { - return new Blob([json], {type : 'application/json;charset=utf-8'}); + return new Blob([json], {type: 'application/json;charset=utf-8'}); } else { const state = new Uint8Array(utf8ByteCount(json)); utf8Write(state, 0, json); @@ -218,7 +218,7 @@ class PluginStateSnapshotManager extends StatefulPluginComponent<{ } const zipFile = await this.plugin.runTask(Zip(zipDataObj)); - return new Blob([zipFile], {type : 'application/zip'}); + return new Blob([zipFile], {type: 'application/zip'}); } } diff --git a/src/mol-plugin-ui/controls/line-graph/line-graph-component.tsx b/src/mol-plugin-ui/controls/line-graph/line-graph-component.tsx index b4edc9b44d10e9e39d594f927184344f34ea2afd..1da185422d6ba221b89900087627950789670b0c 100644 --- a/src/mol-plugin-ui/controls/line-graph/line-graph-component.tsx +++ b/src/mol-plugin-ui/controls/line-graph/line-graph-component.tsx @@ -30,7 +30,7 @@ export class LineGraphComponent extends React.Component<any, LineGraphComponentS super(props); this.myRef = React.createRef(); this.state = { - points:[ + points: [ Vec2.create(0, 0), Vec2.create(1, 0) ], diff --git a/src/mol-script/script/mol-script/symbols.ts b/src/mol-script/script/mol-script/symbols.ts index e4f9e2260e886f5595fa024c5bb5f2001acc6bb5..c4bd1cfe251bba567bfdd89eabc319cea26ece99 100644 --- a/src/mol-script/script/mol-script/symbols.ts +++ b/src/mol-script/script/mol-script/symbols.ts @@ -111,7 +111,7 @@ export const SymbolTable = [ Macro(MSymbol('sel.atom.atoms', Arguments.Dictionary({ 0: Argument(Type.Bool, { isOptional: true, defaultValue: true, description: 'Test applied to each atom.' }) }), StructureQueryTypes.ElementSelection, 'A selection of singleton atom sets.'), - args => B.struct.generator.atomGroups({ 'atom-test': tryGetArg(args, 0, true) })), + args => B.struct.generator.atomGroups({ 'atom-test': tryGetArg(args, 0, true) })), Macro(MSymbol('sel.atom.res', Arguments.Dictionary({ 0: Argument(Type.Bool, { isOptional: true, defaultValue: true, description: 'Test applied to the 1st atom of each residue.' }) diff --git a/src/mol-util/zip/util.ts b/src/mol-util/zip/util.ts index 30cd5fddfeb2ad86bf03dec339fafc7eb6ecd782..fb6b5176210b4fade12bfe47f036a5bd6c924378 100644 --- a/src/mol-util/zip/util.ts +++ b/src/mol-util/zip/util.ts @@ -10,26 +10,26 @@ export const U = (function(){ const u16 = Uint16Array, u32 = Uint32Array; return { - next_code : new u16(16), - bl_count : new u16(16), - ordr : [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ], - of0 : [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 999, 999, 999], - exb : [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0], - ldef : new u16(32), - df0 : [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 65535, 65535], - dxb : [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0], - ddef : new u32(32), + next_code: new u16(16), + bl_count: new u16(16), + ordr: [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ], + of0: [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 999, 999, 999], + exb: [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0], + ldef: new u16(32), + df0: [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 65535, 65535], + dxb: [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0], + ddef: new u32(32), flmap: new u16( 512), fltree: [] as number[], fdmap: new u16( 32), fdtree: [] as number[], - lmap : new u16(32768), ltree : [] as number[], ttree:[] as number[], - dmap : new u16(32768), dtree : [] as number[], - imap : new u16( 512), itree : [] as number[], + lmap: new u16(32768), ltree: [] as number[], ttree: [] as number[], + dmap: new u16(32768), dtree: [] as number[], + imap: new u16( 512), itree: [] as number[], // rev9 : new u16( 512) rev15: new u16(1 << 15), - lhst : new u32(286), dhst : new u32( 30), ihst : new u32(19), - lits : new u32(15000), - strt : new u16(1 << 16), - prev : new u16(1 << 15) + lhst: new u32(286), dhst: new u32( 30), ihst: new u32(19), + lits: new u32(15000), + strt: new u16(1 << 16), + prev: new u16(1 << 15) }; })();