|
1 | 1 | module.exports = [
|
2 | 2 | {
|
3 | 3 | languageOptions: {
|
4 |
| - ecmaVersion: "latest", |
5 |
| - sourceType: "module", |
| 4 | + ecmaVersion: 'latest', |
| 5 | + sourceType: 'module', |
6 | 6 | globals: {
|
7 |
| - window: "readonly", |
8 |
| - document: "readonly", |
9 |
| - process: "readonly", |
10 |
| - require: "readonly", |
| 7 | + window: 'readonly', |
| 8 | + document: 'readonly', |
| 9 | + process: 'readonly', |
| 10 | + require: 'readonly', |
11 | 11 | },
|
12 | 12 | parserOptions: {
|
13 |
| - project: "tsconfig.json", |
| 13 | + project: 'tsconfig.json', |
14 | 14 | },
|
15 | 15 | },
|
16 |
| - ignores: ["dist/*", "node_modules/*"], |
| 16 | + ignores: ['dist/*', 'node_modules/*'], |
17 | 17 | plugins: {
|
18 |
| - "unused-imports": require("eslint-plugin-unused-imports"), |
19 |
| - "@typescript-eslint": require("@typescript-eslint/eslint-plugin"), |
20 |
| - "eslint-plugin-tsdoc": require("eslint-plugin-tsdoc"), |
| 18 | + 'unused-imports': require('eslint-plugin-unused-imports'), |
| 19 | + '@typescript-eslint': require('@typescript-eslint/eslint-plugin'), |
| 20 | + 'eslint-plugin-tsdoc': require('eslint-plugin-tsdoc'), |
21 | 21 | },
|
22 | 22 | rules: {
|
23 |
| - curly: "warn", |
24 |
| - "prefer-const": "warn", |
25 |
| - "no-else-return": "warn", |
26 |
| - complexity: ["warn", 1000], |
27 |
| - "no-unneeded-ternary": "warn", |
28 |
| - "no-alert": "warn", |
29 |
| - "no-empty": "warn", |
30 |
| - "no-useless-catch": "error", |
31 |
| - "require-await": "warn", |
32 |
| - "no-continue": "warn", |
33 |
| - "no-console": "warn", |
34 |
| - "unused-imports/no-unused-imports": "warn", |
35 |
| - "no-magic-numbers": "off", |
| 23 | + curly: 'warn', |
| 24 | + 'prefer-const': 'warn', |
| 25 | + 'no-else-return': 'warn', |
| 26 | + complexity: ['warn', 1000], |
| 27 | + 'no-unneeded-ternary': 'warn', |
| 28 | + 'no-alert': 'warn', |
| 29 | + 'no-empty': 'warn', |
| 30 | + 'no-useless-catch': 'error', |
| 31 | + 'require-await': 'warn', |
| 32 | + 'no-continue': 'warn', |
| 33 | + 'no-console': 'warn', |
| 34 | + 'unused-imports/no-unused-imports': 'warn', |
| 35 | + 'no-magic-numbers': 'off', |
36 | 36 | },
|
37 | 37 | },
|
38 | 38 | {
|
39 |
| - files: ["try.mjs"], |
| 39 | + files: ['try.mjs'], |
40 | 40 | rules: {
|
41 |
| - "no-console": "off", |
| 41 | + 'no-console': 'off', |
42 | 42 | },
|
43 | 43 | },
|
44 |
| -]; |
| 44 | +] |
0 commit comments