@datagrok/proteomics 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/CHANGELOG.md +52 -3
  2. package/CLAUDE.md +178 -0
  3. package/README.md +195 -3
  4. package/detectors.js +152 -9
  5. package/dist/package-test.js +1 -1744
  6. package/dist/package-test.js.map +1 -1
  7. package/dist/package.js +1 -146
  8. package/dist/package.js.map +1 -1
  9. package/docs/personas-and-capabilities.md +165 -0
  10. package/files/demo/README.md +264 -0
  11. package/files/demo/cptac-spike-in.txt +1571 -0
  12. package/files/demo/enrichment-demo.csv +120 -0
  13. package/files/demo/fragpipe-smoke-test.tsv +11 -0
  14. package/files/demo/proteinGroups.txt +28 -0
  15. package/files/demo/spectronaut-hye-candidates.tsv +94 -0
  16. package/files/demo/spectronaut-hye-demo.tsv +8761 -0
  17. package/files/demo/spectronaut-hye-mix.tsv +8761 -0
  18. package/files/demo/spectronaut-hye-precursor-golden.json +938 -0
  19. package/files/demo/spectronaut-hye-precursor-golden.tsv +235 -0
  20. package/files/demo/spectronaut-hye-precursor.tsv +493 -0
  21. package/images/enrichment-crosslink.png +0 -0
  22. package/images/enrichment-term-selected.png +0 -0
  23. package/images/hero.png +0 -0
  24. package/images/pipeline.svg +80 -0
  25. package/package.json +87 -62
  26. package/scripts/deqms_de.R +60 -0
  27. package/scripts/limma_de.R +42 -0
  28. package/scripts/vsn_normalize.R +19 -0
  29. package/src/analysis/differential-expression.ts +450 -0
  30. package/src/analysis/enrichment-export.ts +101 -0
  31. package/src/analysis/enrichment.ts +602 -0
  32. package/src/analysis/experiment-setup.ts +199 -0
  33. package/src/analysis/imputation.ts +407 -0
  34. package/src/analysis/log2-scale.ts +139 -0
  35. package/src/analysis/normalization.ts +255 -0
  36. package/src/analysis/pca.ts +254 -0
  37. package/src/analysis/spc-storage.ts +515 -0
  38. package/src/analysis/spc.ts +544 -0
  39. package/src/analysis/subcellular-location.ts +431 -0
  40. package/src/demo/enrichment-demo.ts +94 -0
  41. package/src/demo/proteomics-demo.ts +123 -0
  42. package/src/global.d.ts +15 -0
  43. package/src/menu.ts +133 -0
  44. package/src/package-api.ts +136 -14
  45. package/src/package-test.ts +45 -20
  46. package/src/package.g.ts +161 -0
  47. package/src/package.ts +1029 -17
  48. package/src/panels/protein-focus.ts +63 -0
  49. package/src/panels/published-analysis-panel.ts +151 -0
  50. package/src/panels/uniprot-panel.ts +349 -0
  51. package/src/parsers/fragpipe-parser.ts +200 -0
  52. package/src/parsers/generic-parser.ts +197 -0
  53. package/src/parsers/maxquant-parser.ts +162 -0
  54. package/src/parsers/shared-utils.ts +163 -0
  55. package/src/parsers/spectronaut-candidates-parser.ts +307 -0
  56. package/src/parsers/spectronaut-parser.ts +604 -0
  57. package/src/publishing/assert-published-shape.ts +260 -0
  58. package/src/publishing/post-open-recovery.ts +104 -0
  59. package/src/publishing/publish-project.ts +515 -0
  60. package/src/publishing/publish-settings.ts +59 -0
  61. package/src/publishing/publish-state.ts +316 -0
  62. package/src/publishing/share-dialog.ts +171 -0
  63. package/src/publishing/trim-dataframe.ts +247 -0
  64. package/src/tests/analysis.ts +658 -0
  65. package/src/tests/enrichment-export.ts +61 -0
  66. package/src/tests/enrichment-visualization.ts +340 -0
  67. package/src/tests/enrichment.ts +224 -0
  68. package/src/tests/fragpipe-e2e.ts +74 -0
  69. package/src/tests/fragpipe-parser.ts +147 -0
  70. package/src/tests/gene-label-resolver.ts +387 -0
  71. package/src/tests/generic-parser.ts +152 -0
  72. package/src/tests/group-mean-correlation.ts +139 -0
  73. package/src/tests/log2-scale.ts +93 -0
  74. package/src/tests/organisms.ts +56 -0
  75. package/src/tests/parsers.ts +182 -0
  76. package/src/tests/publish-roundtrip.ts +584 -0
  77. package/src/tests/publish-spike.ts +377 -0
  78. package/src/tests/qc-dashboard.ts +210 -0
  79. package/src/tests/smart-pathway-filter.ts +193 -0
  80. package/src/tests/spc-formula-lines-spike.ts +129 -0
  81. package/src/tests/spc.ts +640 -0
  82. package/src/tests/spectronaut-candidates-e2e.ts +140 -0
  83. package/src/tests/spectronaut-candidates-parser.ts +398 -0
  84. package/src/tests/spectronaut-parser.ts +668 -0
  85. package/src/tests/subcellular-location.ts +361 -0
  86. package/src/tests/uniprot-panel.ts +202 -0
  87. package/src/tests/volcano.ts +603 -0
  88. package/src/utils/column-detection.ts +28 -0
  89. package/src/utils/gene-label-resolver.ts +443 -0
  90. package/src/utils/organisms.ts +82 -0
  91. package/src/utils/proteomics-types.ts +30 -0
  92. package/src/viewers/enrichment-viewers.ts +274 -0
  93. package/src/viewers/group-mean-correlation.ts +218 -0
  94. package/src/viewers/heatmap.ts +168 -0
  95. package/src/viewers/pca-plot.ts +169 -0
  96. package/src/viewers/qc-computations.ts +266 -0
  97. package/src/viewers/qc-dashboard.ts +176 -0
  98. package/src/viewers/spc-dashboard.ts +755 -0
  99. package/src/viewers/volcano.ts +690 -0
  100. package/test-console-output-1.log +2055 -0
  101. package/test-record-1.mp4 +0 -0
  102. package/tools/derive-precursor-golden-sidecar.mjs +81 -0
  103. package/tools/generate-enrichment-fixture.sh +160 -0
  104. package/tools/generate-spectronaut-candidates-fixture.mjs +212 -0
  105. package/tools/generate-spectronaut-precursor-fixture.mjs +128 -0
  106. package/tools/spectronaut-aggregate.sh +46 -0
  107. package/tools/spectronaut-aggregate.sql +80 -0
  108. package/tsconfig.json +18 -71
  109. package/webpack.config.js +86 -45
  110. package/.eslintignore +0 -1
  111. package/.eslintrc.json +0 -56
  112. package/LICENSE +0 -674
  113. package/package.png +0 -0
  114. package/scripts/number_antibody.py +0 -190
  115. package/scripts/number_antibody_abnumber.py +0 -177
  116. package/scripts/number_antibody_anarci.py +0 -200
@@ -0,0 +1,80 @@
1
+ -- Aggregate a long-form Spectronaut Report (peptide/precursor/fragment-level rows)
2
+ -- down to one row per (protein-group × condition × replicate), in the shape
3
+ -- packages/Proteomics/src/parsers/spectronaut-parser.ts expects.
4
+ --
5
+ -- This is the bundled, documented manual fallback (D-05) for a Spectronaut report
6
+ -- too large for the in-browser streaming importer, AND the D-04 equivalence oracle
7
+ -- the Wave-0 golden test pins to.
8
+ --
9
+ -- Template tokens __IN_PATH__ and __OUT_PATH__ are replaced by the shell wrapper
10
+ -- before this script is passed to duckdb. (DuckDB's COPY ... TO does not accept
11
+ -- variables, so we can't use SET VARIABLE here.)
12
+
13
+ -- Streaming aggregation — duckdb spills to disk if it can't fit memory.
14
+ PRAGMA memory_limit='8GB';
15
+ PRAGMA threads=8;
16
+
17
+ COPY (
18
+ SELECT
19
+ "PG.ProteinGroups",
20
+ -- DIVERGENCE FROM /tmp/spectronaut-aggregate.sql: the two carry-along
21
+ -- any_value() SELECT terms for the gene-symbol and protein-accession columns
22
+ -- (present in the /tmp original) were DROPPED here. The package's Spectronaut
23
+ -- data (files/demo/spectronaut-hye-mix.tsv and the synthetic precursor
24
+ -- fixture) does not carry those two columns and
25
+ -- pivotSpectronaut/aggToPivotResult never consume them, so they are not part
26
+ -- of the parity contract; keeping them would Binder-Error duckdb on the
27
+ -- fixture (ignore_errors does NOT cover Binder Errors) and the entire Wave-0
28
+ -- oracle chain (golden → sidecar → 12-03 golden test) would have no source.
29
+ --
30
+ -- ============================ WARNING ============================
31
+ -- REFERENCE-FILE-ONLY: the CASE below is a one-off correction for the
32
+ -- mislabeled reference file `2026-05-13 BP DMD WT.tsv` ONLY. Cross-tab
33
+ -- against R.FileName showed every WT* filename tagged DMD and every DMD*
34
+ -- filename tagged WT (24/24); this restores the convention so DE direction
35
+ -- matches what the filenames imply. It is a STRUCTURAL NO-OP on any data
36
+ -- whose R.Condition is not literally 'DMD'/'WT' — including the CondA/CondB
37
+ -- synthetic fixture, which is exactly why this same script doubles as the
38
+ -- D-04 golden oracle without perturbing the golden. The streaming TS
39
+ -- aggregator MUST NOT port this flip (RESEARCH Pitfall 1 — the single
40
+ -- highest-risk parity trap). Do not "generalize" or remove it either: the
41
+ -- manual-fallback path still needs it for the mislabeled reference file.
42
+ -- =================================================================
43
+ CASE "R.Condition"
44
+ WHEN 'DMD' THEN 'WT'
45
+ WHEN 'WT' THEN 'DMD'
46
+ ELSE "R.Condition"
47
+ END AS "R.Condition",
48
+ "R.Replicate",
49
+ any_value("R.FileName") AS "R.FileName",
50
+ -- PG.Quantity is constant per (protein-group, run) in Spectronaut output;
51
+ -- max() collapses the precursor-level duplicates safely.
52
+ max(TRY_CAST("PG.Quantity" AS DOUBLE)) AS "PG.Quantity",
53
+ -- Best precursor q-value backing this protein in this run.
54
+ min(TRY_CAST("EG.Qvalue" AS DOUBLE)) AS "EG.Qvalue"
55
+ FROM read_csv(
56
+ '__IN_PATH__',
57
+ delim='\t',
58
+ header=true,
59
+ sample_size=-1, -- scan everything for type inference; columns are messy
60
+ ignore_errors=true, -- tolerate stray malformed lines in a 2.6 GB file
61
+ nullstr=['', 'NaN', 'NA']
62
+ )
63
+ WHERE
64
+ -- Mirror the parser's precursor-level filter: drop EG rows with q-value > 0.01.
65
+ -- Non-numeric q-values (e.g. 'Profiled') pass — same as the TS parser.
66
+ (TRY_CAST("EG.Qvalue" AS DOUBLE) IS NULL OR TRY_CAST("EG.Qvalue" AS DOUBLE) <= 0.01)
67
+ -- Drop decoys / contaminants up front; parser does this too but it's cheaper here.
68
+ AND "PG.ProteinGroups" IS NOT NULL
69
+ AND "PG.ProteinGroups" NOT LIKE 'CON\_\_%' ESCAPE '\'
70
+ AND "PG.ProteinGroups" NOT LIKE 'REV\_\_%' ESCAPE '\'
71
+ GROUP BY "PG.ProteinGroups", "R.Condition", "R.Replicate"
72
+ ) TO '__OUT_PATH__' (FORMAT csv, DELIMITER '\t', HEADER);
73
+
74
+ -- Summary so we can sanity-check the collapse ratio.
75
+ SELECT
76
+ count(*) AS output_rows,
77
+ count(DISTINCT "PG.ProteinGroups") AS proteins,
78
+ count(DISTINCT ("R.Condition" || '_' || "R.Replicate")) AS samples,
79
+ list(DISTINCT "R.Condition") AS conditions
80
+ FROM read_csv('__OUT_PATH__', delim='\t', header=true);
package/tsconfig.json CHANGED
@@ -1,71 +1,18 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
-
5
- /* Basic Options */
6
- // "incremental": true, /* Enable incremental compilation */
7
- "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
- "module": "es2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
- "lib": ["ES2022", "dom"], /* Specify library files to be included in the compilation. */
10
- // "allowJs": true, /* Allow javascript files to be compiled. */
11
- // "checkJs": true, /* Report errors in .js files. */
12
- // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13
- // "declaration": true, /* Generates corresponding '.d.ts' file. */
14
- // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15
- "sourceMap": true, /* Generates corresponding '.map' file. */
16
- // "outFile": "./", /* Concatenate and emit output to single file. */
17
- // "outDir": "./", /* Redirect output structure to the directory. */
18
- // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
19
- // "composite": true, /* Enable project compilation */
20
- // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
21
- // "removeComments": true, /* Do not emit comments to output. */
22
- // "noEmit": true, /* Do not emit outputs. */
23
- // "importHelpers": true, /* Import emit helpers from 'tslib'. */
24
- // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
25
- // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
26
-
27
- /* Strict Type-Checking Options */
28
- "strict": true, /* Enable all strict type-checking options. */
29
- // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30
- // "strictNullChecks": true, /* Enable strict null checks. */
31
- // "strictFunctionTypes": true, /* Enable strict checking of function types. */
32
- // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
33
- // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
34
- // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
35
- // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
36
-
37
- /* Additional Checks */
38
- // "noUnusedLocals": true, /* Report errors on unused locals. */
39
- // "noUnusedParameters": true, /* Report errors on unused parameters. */
40
- // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
41
- // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
42
- // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43
- // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44
-
45
- /* Module Resolution Options */
46
- "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
47
- // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
48
- // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
49
- // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
50
- // "typeRoots": [], /* List of folders to include type definitions from. */
51
- // "types": [], /* Type declaration files to be included in compilation. */
52
- // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
53
- "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
54
- // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
55
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
56
-
57
- /* Source Map Options */
58
- // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
59
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
- // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
61
- // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
62
-
63
- /* Experimental Options */
64
- "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
65
- "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
66
-
67
- /* Advanced Options */
68
- "skipLibCheck": true, /* Skip type checking of declaration files. */
69
- "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
70
- }
71
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ES2022",
5
+ "lib": ["ES2022", "dom"],
6
+ "sourceMap": true,
7
+ "strict": true,
8
+ "strictPropertyInitialization": false,
9
+ "moduleResolution": "node",
10
+ "esModuleInterop": true,
11
+ "sourceRoot": "",
12
+ "mapRoot": "",
13
+ "experimentalDecorators": true,
14
+ "emitDecoratorMetadata": true,
15
+ "skipLibCheck": true,
16
+ "forceConsistentCasingInFileNames": true
17
+ }
18
+ }
package/webpack.config.js CHANGED
@@ -1,45 +1,86 @@
1
- const path = require('path');
2
- const FuncGeneratorPlugin = require('datagrok-tools/plugins/func-gen-plugin');
3
- const packageName = path.parse(require('./package.json').name).name.toLowerCase().replace(/-/g, '');
4
-
5
- module.exports = {
6
- cache: {
7
- type: 'filesystem',
8
- },
9
- mode: 'development',
10
- entry: {
11
- test: {filename: 'package-test.js', library: {type: 'var', name: `${packageName}_test`}, import: './src/package-test.ts'},
12
- package: './src/package.ts',
13
- },
14
- resolve: {
15
- extensions: ['.wasm', '.mjs', '.ts', '.json', '.js', '.tsx'],
16
- },
17
- module: {
18
- rules: [
19
- {test: /\.tsx?$/, loader: 'ts-loader', options: {allowTsInNodeModules: true}},
20
- ],
21
- },
22
- plugins: [
23
- new FuncGeneratorPlugin({outputPath: './src/package.g.ts'}),
24
- ],
25
- devtool: 'source-map',
26
- externals: {
27
- 'datagrok-api/dg': 'DG',
28
- 'datagrok-api/grok': 'grok',
29
- 'datagrok-api/ui': 'ui',
30
- 'openchemlib/full.js': 'OCL',
31
- 'rxjs': 'rxjs',
32
- 'rxjs/operators': 'rxjs.operators',
33
- 'cash-dom': '$',
34
- 'dayjs': 'dayjs',
35
- 'wu': 'wu',
36
- 'exceljs': 'ExcelJS',
37
- 'html2canvas': 'html2canvas',
38
- },
39
- output: {
40
- filename: '[name].js',
41
- library: packageName,
42
- libraryTarget: 'var',
43
- path: path.resolve(__dirname, 'dist'),
44
- },
45
- };
1
+ const path = require('path');
2
+ const {execSync} = require('child_process');
3
+ const packageName = path.parse(require('./package.json').name).name.toLowerCase().replace(/-/g, '');
4
+
5
+ function getDatagrokTools() {
6
+ const pluginPath = 'datagrok-tools/plugins/func-gen-plugin';
7
+ try {
8
+ return require(pluginPath);
9
+ } catch (e) {
10
+ try {
11
+ const globalPath = execSync('npm root -g').toString().trim();
12
+ return require(path.join(globalPath, pluginPath));
13
+ } catch (globalErr) {
14
+ console.error('\n' + '='.repeat(60));
15
+ console.error('ERROR: datagrok-tools not found!');
16
+ console.error('To fix this, please install the tools globally by running:');
17
+ console.error('\n npm install -g datagrok-tools\n');
18
+ console.error('='.repeat(60) + '\n');
19
+ process.exit(1);
20
+ }
21
+ }
22
+ }
23
+
24
+ const FuncGeneratorPlugin = getDatagrokTools();
25
+
26
+ module.exports = {
27
+ cache: {
28
+ type: 'filesystem',
29
+ },
30
+ mode: 'production',
31
+ entry: {
32
+ package: ['./src/package.ts'],
33
+ test: {
34
+ filename: 'package-test.js',
35
+ library: {type: 'var', name: `${packageName}_test`},
36
+ import: './src/package-test.ts',
37
+ },
38
+ },
39
+ devServer: {
40
+ contentBase: './dist',
41
+ },
42
+ target: 'web',
43
+ module: {
44
+ rules: [
45
+ {
46
+ test: /\.ts?$/,
47
+ use: 'ts-loader',
48
+ exclude: /node_modules/,
49
+ },
50
+ {
51
+ test: /\.css$/i,
52
+ use: ['style-loader', 'css-loader'],
53
+ },
54
+ {
55
+ // Plan 12-03 R5 drift guard: the test bundle statically imports the
56
+ // committed tools/spectronaut-aggregate.{sql,sh} as raw strings so a
57
+ // deletion / rename / content change fails the build + grok test (the
58
+ // tools/ dir is not deployed under files/, so it is unreachable via
59
+ // _package.files at runtime — webpack asset/source is the only way to
60
+ // pin the committed fallback content into the test).
61
+ test: /\.(sql|sh)$/i,
62
+ type: 'asset/source',
63
+ },
64
+ ],
65
+ },
66
+ resolve: {
67
+ extensions: ['.mjs', '.ts', '.js', '.json', '.tsx'],
68
+ },
69
+ devtool: 'source-map',
70
+ externals: {
71
+ 'datagrok-api/dg': 'DG',
72
+ 'datagrok-api/grok': 'grok',
73
+ 'datagrok-api/ui': 'ui',
74
+ 'rxjs': 'rxjs',
75
+ 'rxjs/operators': 'rxjs.operators',
76
+ },
77
+ output: {
78
+ filename: '[name].js',
79
+ library: 'proteomics',
80
+ libraryTarget: 'var',
81
+ path: path.resolve(__dirname, 'dist'),
82
+ },
83
+ plugins: [
84
+ new FuncGeneratorPlugin({outputPath: './src/package.g.ts'}),
85
+ ],
86
+ };
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- src/**/*.d.ts*
package/.eslintrc.json DELETED
@@ -1,56 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2022": true
5
- },
6
- "extends": [
7
- "google"
8
- ],
9
- "parser": "@typescript-eslint/parser",
10
- "parserOptions": {
11
- "ecmaVersion": 2022,
12
- "project": "./tsconfig.json",
13
- "sourceType": "module"
14
- },
15
- "plugins": [
16
- "@typescript-eslint"
17
- ],
18
- "rules": {
19
- "indent": [
20
- "error", 2, {
21
- "SwitchCase": 0
22
- }
23
- ],
24
- "max-len": ["error", 120],
25
- "no-unused-vars": "off",
26
- "@typescript-eslint/no-unused-vars": [
27
- "warn", {
28
- "varsIgnorePattern": "^(_|ui$|grok$|DG$)",
29
- "argsIgnorePattern": "^_"
30
- }
31
- ],
32
- "require-jsdoc": "off",
33
- "valid-jsdoc": "warn",
34
- "spaced-comment": "off",
35
- "linebreak-style": "off",
36
- "curly": [
37
- "error",
38
- "multi-or-nest"
39
- ],
40
- "brace-style": [
41
- "error", "1tbs", {
42
- "allowSingleLine": true
43
- }
44
- ],
45
- "block-spacing": [2, "always"],
46
- "comma-dangle": [
47
- "error", {
48
- "arrays": "only-multiline",
49
- "functions": "only-multiline",
50
- "objects": "only-multiline",
51
- "imports": "only-multiline"
52
- }
53
- ],
54
- "guard-for-in": "off"
55
- }
56
- }