|
1 | 1 | { |
2 | | - "env": { |
3 | | - "es2021": true, |
4 | | - "node": true, |
5 | | - "mocha": true |
| 2 | + 'env': { |
| 3 | + 'es2021': true, |
| 4 | + 'node': true, |
| 5 | + 'mocha': true |
6 | 6 | }, |
7 | | - "extends": [ |
8 | | - "eslint:recommended", |
9 | | - "plugin:@typescript-eslint/recommended", |
10 | | - "plugin:@typescript-eslint/recommended-requiring-type-checking", |
11 | | - "plugin:import/errors", |
12 | | - "plugin:import/warnings", |
13 | | - "plugin:import/typescript", |
14 | | - "prettier" |
| 7 | + 'extends': [ |
| 8 | + 'eslint:recommended', |
| 9 | + 'plugin:@typescript-eslint/recommended', |
| 10 | + 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
| 11 | + 'plugin:import/errors', |
| 12 | + 'plugin:import/warnings', |
| 13 | + 'plugin:import/typescript', |
| 14 | + 'prettier' |
15 | 15 | ], |
16 | | - "parser": "@typescript-eslint/parser", |
17 | | - "parserOptions": { |
18 | | - "ecmaVersion": 2021, |
19 | | - "sourceType": "module", |
20 | | - "ecmaFeatures": { |
21 | | - "impliedStrict": true |
| 16 | + 'parser': '@typescript-eslint/parser', |
| 17 | + 'parserOptions': { |
| 18 | + 'ecmaVersion': 2021, |
| 19 | + 'sourceType': 'module', |
| 20 | + 'ecmaFeatures': { |
| 21 | + 'impliedStrict': true |
22 | 22 | }, |
23 | | - "project": "tsconfig.json" |
| 23 | + 'project': 'tsconfig.json' |
24 | 24 | }, |
25 | | - "plugins": ["import", "@typescript-eslint", "prettier"], |
26 | | - "root": true, |
27 | | - "rules": { |
28 | | - "@typescript-eslint/explicit-module-boundary-types": "off", |
29 | | - "@typescript-eslint/indent": "off", |
30 | | - "@typescript-eslint/no-empty-function": [ |
31 | | - "warn", |
| 25 | + 'plugins': ['import', '@typescript-eslint', 'prettier'], |
| 26 | + 'root': true, |
| 27 | + 'rules': { |
| 28 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 29 | + '@typescript-eslint/indent': 'off', |
| 30 | + '@typescript-eslint/no-empty-function': [ |
| 31 | + 'warn', |
32 | 32 | { |
33 | | - "allow": ["constructors"] |
| 33 | + 'allow': ['constructors'] |
34 | 34 | } |
35 | 35 | ], |
36 | | - "@typescript-eslint/no-empty-interface": "error", |
37 | | - "@typescript-eslint/no-explicit-any": "off", |
38 | | - "@typescript-eslint/no-floating-promises": "error", |
39 | | - "@typescript-eslint/no-inferrable-types": [ |
40 | | - "warn", |
| 36 | + '@typescript-eslint/no-empty-interface': 'error', |
| 37 | + '@typescript-eslint/no-explicit-any': 'off', |
| 38 | + '@typescript-eslint/no-floating-promises': 'error', |
| 39 | + '@typescript-eslint/no-inferrable-types': [ |
| 40 | + 'warn', |
41 | 41 | { |
42 | | - "ignoreParameters": true, |
43 | | - "ignoreProperties": true |
| 42 | + 'ignoreParameters': true, |
| 43 | + 'ignoreProperties': true |
44 | 44 | } |
45 | 45 | ], |
46 | | - "@typescript-eslint/no-namespace": "off", |
47 | | - "@typescript-eslint/no-non-null-assertion": "off", |
48 | | - "@typescript-eslint/no-unused-vars": [ |
49 | | - "warn", |
| 46 | + '@typescript-eslint/no-namespace': 'off', |
| 47 | + '@typescript-eslint/no-non-null-assertion': 'off', |
| 48 | + '@typescript-eslint/no-unused-vars': [ |
| 49 | + 'warn', |
50 | 50 | { |
51 | | - "args": "after-used", |
52 | | - "argsIgnorePattern": "^_", |
53 | | - "ignoreRestSiblings": true, |
54 | | - "varsIgnorePattern": "^_$" |
| 51 | + 'args': 'after-used', |
| 52 | + 'argsIgnorePattern': '^_', |
| 53 | + 'ignoreRestSiblings': true, |
| 54 | + 'varsIgnorePattern': '^_$' |
55 | 55 | } |
56 | 56 | ], |
57 | | - "@typescript-eslint/no-use-before-define": "error", |
58 | | - "@typescript-eslint/semi": "error", |
59 | | - "@typescript-eslint/unbound-method": "off", |
60 | | - "arrow-parens": ["error", "as-needed"], |
61 | | - "brace-style": [ |
62 | | - "warn", |
63 | | - "1tbs", |
| 57 | + '@typescript-eslint/no-use-before-define': 'error', |
| 58 | + '@typescript-eslint/semi': 'error', |
| 59 | + '@typescript-eslint/unbound-method': 'off', |
| 60 | + 'arrow-parens': ['error', 'as-needed'], |
| 61 | + 'brace-style': [ |
| 62 | + 'warn', |
| 63 | + '1tbs', |
64 | 64 | { |
65 | | - "allowSingleLine": true |
| 65 | + 'allowSingleLine': true |
66 | 66 | } |
67 | 67 | ], |
68 | | - "comma-dangle": ["error", "only-multiline"], |
69 | | - "complexity": "off", |
70 | | - "curly": "error", |
71 | | - "dot-notation": "error", |
72 | | - "eqeqeq": ["error", "smart"], |
73 | | - "eol-last": "error", |
74 | | - "import/no-dynamic-require": "error", |
75 | | - "import/no-default-export": "error", |
76 | | - "import/no-duplicates": "error", |
77 | | - "import/no-self-import": "error", |
78 | | - "import/no-unresolved": [ |
79 | | - "warn", |
| 68 | + 'comma-dangle': ['error', 'only-multiline'], |
| 69 | + 'complexity': 'off', |
| 70 | + 'curly': 'error', |
| 71 | + 'dot-notation': 'error', |
| 72 | + 'eqeqeq': ['error', 'smart'], |
| 73 | + 'eol-last': 'error', |
| 74 | + 'import/no-dynamic-require': 'error', |
| 75 | + 'import/no-default-export': 'error', |
| 76 | + 'import/no-duplicates': 'error', |
| 77 | + 'import/no-self-import': 'error', |
| 78 | + 'import/no-unresolved': [ |
| 79 | + 'warn', |
80 | 80 | { |
81 | | - "ignore": ["vscode"] |
| 81 | + 'ignore': ['vscode'] |
82 | 82 | } |
83 | 83 | ], |
84 | | - "max-classes-per-file": ["error", 1], |
85 | | - "max-len": [ |
86 | | - "error", |
| 84 | + 'max-classes-per-file': ['error', 1], |
| 85 | + 'max-len': [ |
| 86 | + 'error', |
87 | 87 | { |
88 | | - "code": 120 |
| 88 | + 'code': 120 |
89 | 89 | } |
90 | 90 | ], |
91 | | - "no-bitwise": "error", |
92 | | - "no-console": "off", |
93 | | - "no-duplicate-imports": "error", |
94 | | - "no-inner-declarations": "off", |
95 | | - "no-invalid-this": "error", |
96 | | - "no-trailing-spaces": "error", |
97 | | - "no-var": "error", |
98 | | - "prefer-arrow-callback": "error", |
99 | | - "prefer-const": "error", |
100 | | - "prefer-numeric-literals": "error", |
101 | | - "prefer-object-spread": "error", |
102 | | - "prefer-rest-params": "error", |
103 | | - "prefer-spread": "error", |
104 | | - "prefer-template": "error", |
105 | | - "prettier/prettier": "error", |
106 | | - "quotes": [ |
107 | | - "error", |
108 | | - "single", |
| 91 | + 'no-bitwise': 'error', |
| 92 | + 'no-console': 'off', |
| 93 | + 'no-duplicate-imports': 'error', |
| 94 | + 'no-inner-declarations': 'off', |
| 95 | + 'no-invalid-this': 'error', |
| 96 | + 'no-trailing-spaces': 'error', |
| 97 | + 'no-var': 'error', |
| 98 | + 'prefer-arrow-callback': 'error', |
| 99 | + 'prefer-const': 'error', |
| 100 | + 'prefer-numeric-literals': 'error', |
| 101 | + 'prefer-object-spread': 'error', |
| 102 | + 'prefer-rest-params': 'error', |
| 103 | + 'prefer-spread': 'error', |
| 104 | + 'prefer-template': 'error', |
| 105 | + 'prettier/prettier': 'error', |
| 106 | + 'quotes': [ |
| 107 | + 'error', |
| 108 | + 'single', |
109 | 109 | { |
110 | | - "avoidEscape": true |
| 110 | + 'avoidEscape': true |
111 | 111 | } |
112 | 112 | ], |
113 | | - "radix": "error", |
114 | | - "semi": ["error", "always"], |
115 | | - "semi-style": ["error", "last"], |
116 | | - "spaced-comment": ["error", "always"], |
117 | | - "space-in-parens": ["error", "never"], |
118 | | - "sort-imports": [ |
119 | | - "error", |
| 113 | + 'radix': 'error', |
| 114 | + 'semi': ['error', 'always'], |
| 115 | + 'semi-style': ['error', 'last'], |
| 116 | + 'spaced-comment': ['error', 'always'], |
| 117 | + 'space-in-parens': ['error', 'never'], |
| 118 | + 'sort-imports': [ |
| 119 | + 'error', |
120 | 120 | { |
121 | | - "ignoreCase": true, |
122 | | - "ignoreDeclarationSort": true, |
123 | | - "ignoreMemberSort": false, |
124 | | - "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] |
| 121 | + 'ignoreCase': true, |
| 122 | + 'ignoreDeclarationSort': true, |
| 123 | + 'ignoreMemberSort': false, |
| 124 | + 'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single'] |
125 | 125 | } |
126 | 126 | ], |
127 | | - "yoda": "error" |
| 127 | + 'yoda': 'error' |
128 | 128 | } |
129 | 129 | } |
0 commit comments