|
1 | 1 | module.exports = { |
2 | | - parser: "@typescript-eslint/parser", |
| 2 | + parser: '@typescript-eslint/parser', |
3 | 3 | extends: [ |
4 | | - "eslint-config-airbnb-base", |
5 | | - "plugin:@typescript-eslint/recommended", |
6 | | - "prettier/@typescript-eslint", |
7 | | - "plugin:prettier/recommended", |
8 | | - "plugin:import/typescript" |
| 4 | + 'eslint-config-airbnb-base', |
| 5 | + 'plugin:@typescript-eslint/recommended', |
| 6 | + 'prettier/@typescript-eslint', |
| 7 | + 'plugin:prettier/recommended', |
| 8 | + 'plugin:import/typescript', |
9 | 9 | ], |
10 | 10 | parserOptions: { |
11 | 11 | ecmaVersion: 2018, |
12 | | - sourceType: "module" |
| 12 | + sourceType: 'module', |
13 | 13 | }, |
14 | 14 | rules: { |
15 | | - "@typescript-eslint/no-parameter-properties": [ |
16 | | - "error", |
| 15 | + '@typescript-eslint/no-parameter-properties': [ |
| 16 | + 'error', |
17 | 17 | { |
18 | | - allows: ["private readonly"] |
19 | | - } |
| 18 | + allows: ['private readonly'], |
| 19 | + }, |
20 | 20 | ], |
21 | | - "@typescript-eslint/explicit-function-return-type": "off", |
22 | | - "@typescript-eslint/interface-name-prefix": "off", |
23 | | - "@typescript-eslint/no-unused-vars": "error", |
24 | | - "import/prefer-default-export": "off", |
25 | | - "no-useless-constructor": "off", |
26 | | - "no-empty-function": "off", |
27 | | - "class-methods-use-this": "off", |
28 | | - "new-cap": "off", |
29 | | - "@typescript-eslint/camelcase": "off", |
30 | | - "no-underscore-dangle": "off", |
31 | | - "import/extensions": [ |
32 | | - "error", |
33 | | - "ignorePackages", |
| 21 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 22 | + '@typescript-eslint/interface-name-prefix': 'off', |
| 23 | + '@typescript-eslint/no-unused-vars': 'error', |
| 24 | + '@typescript-eslint/no-loss-of-precision': 'off', |
| 25 | + 'import/prefer-default-export': 'off', |
| 26 | + 'no-useless-constructor': 'off', |
| 27 | + 'no-empty-function': 'off', |
| 28 | + 'class-methods-use-this': 'off', |
| 29 | + 'new-cap': 'off', |
| 30 | + '@typescript-eslint/camelcase': 'off', |
| 31 | + 'no-underscore-dangle': 'off', |
| 32 | + 'import/extensions': [ |
| 33 | + 'error', |
| 34 | + 'ignorePackages', |
34 | 35 | { |
35 | | - js: "never", |
36 | | - jsx: "never", |
37 | | - ts: "never", |
38 | | - tsx: "never", |
39 | | - mjs: "never" |
40 | | - } |
41 | | - ] |
| 36 | + js: 'never', |
| 37 | + jsx: 'never', |
| 38 | + ts: 'never', |
| 39 | + tsx: 'never', |
| 40 | + mjs: 'never', |
| 41 | + }, |
| 42 | + ], |
42 | 43 | }, |
43 | 44 | overrides: [ |
44 | 45 | { |
45 | | - files: ["*.test.{ts,js}", "*.spec.{ts,js}", "test/**/*.{ts,js}"], |
| 46 | + files: ['*.test.{ts,js}', '*.spec.{ts,js}', 'test/**/*.{ts,js}'], |
46 | 47 | env: { |
47 | | - jest: true |
| 48 | + jest: true, |
48 | 49 | }, |
49 | 50 | rules: { |
50 | | - "no-console": "off", |
51 | | - "import/no-extraneous-dependencies": "off", |
52 | | - "@typescript-eslint/no-var-requires": "off", |
53 | | - "no-underscore-dangle": "off", |
54 | | - "no-restricted-syntax": "off", |
55 | | - "no-await-in-loop": "off", |
56 | | - "max-classes-per-file": "off" |
57 | | - } |
58 | | - } |
59 | | - ] |
| 51 | + 'no-console': 'off', |
| 52 | + 'import/no-extraneous-dependencies': 'off', |
| 53 | + '@typescript-eslint/no-var-requires': 'off', |
| 54 | + 'no-underscore-dangle': 'off', |
| 55 | + 'no-restricted-syntax': 'off', |
| 56 | + 'no-await-in-loop': 'off', |
| 57 | + 'max-classes-per-file': 'off', |
| 58 | + }, |
| 59 | + }, |
| 60 | + ], |
60 | 61 | }; |
0 commit comments