|
1 | 1 | module.exports = { |
2 | 2 | extends: [ |
3 | | - "eslint:recommended", |
4 | | - "plugin:@typescript-eslint/strict-type-checked", |
5 | | - "plugin:import/recommended", |
6 | | - "plugin:import/typescript", |
7 | | - "plugin:prettier/recommended" |
| 3 | + 'eslint:recommended', |
| 4 | + 'plugin:@typescript-eslint/strict-type-checked', |
| 5 | + 'plugin:import/recommended', |
| 6 | + 'plugin:import/typescript', |
| 7 | + 'plugin:prettier/recommended' |
8 | 8 | ], |
9 | | - parser: "@typescript-eslint/parser", |
| 9 | + parser: '@typescript-eslint/parser', |
10 | 10 | parserOptions: { |
11 | 11 | project: true, |
12 | 12 | tsconfigRootDir: __dirname, |
13 | | - sourceType: "module", |
| 13 | + sourceType: 'module', |
14 | 14 | ecmaVersion: 2020 |
15 | 15 | }, |
16 | | - root: true, |
17 | 16 | env: { |
18 | 17 | node: true, |
19 | 18 | browser: true, |
20 | 19 | es6: true, |
21 | 20 | commonjs: true |
22 | 21 | }, |
23 | | - plugins: ["@typescript-eslint"], |
| 22 | + plugins: ['@typescript-eslint'], |
24 | 23 | settings: { |
25 | 24 | react: { |
26 | | - version: "detect" |
| 25 | + version: 'detect' |
27 | 26 | }, |
28 | | - "import/resolver": { |
| 27 | + 'import/resolver': { |
29 | 28 | node: { |
30 | | - paths: ["./"] |
| 29 | + paths: ['./'] |
31 | 30 | } |
32 | 31 | } |
33 | 32 | }, |
34 | 33 | rules: { |
35 | | - "react-hooks/rules-of-hooks": "error", |
36 | | - "react-hooks/exhaustive-deps": "error", |
37 | | - "@typescript-eslint/no-unused-vars": [ |
38 | | - "error", |
| 34 | + 'react-hooks/rules-of-hooks': 'error', |
| 35 | + 'react-hooks/exhaustive-deps': 'error', |
| 36 | + '@typescript-eslint/no-unused-vars': [ |
| 37 | + 'error', |
39 | 38 | { |
40 | 39 | ignoreRestSiblings: true, |
41 | | - varsIgnorePattern: "^[iI]gnored", |
42 | | - argsIgnorePattern: "^_", |
43 | | - caughtErrorsIgnorePattern: "^ignore" |
| 40 | + varsIgnorePattern: '^[iI]gnored', |
| 41 | + argsIgnorePattern: '^_', |
| 42 | + caughtErrorsIgnorePattern: '^ignore' |
44 | 43 | } |
45 | 44 | ], |
46 | | - "@typescript-eslint/member-delimiter-style": "off", |
47 | | - "@typescript-eslint/explicit-function-return-type": "off", |
48 | | - "import/order": [ |
49 | | - "error", |
| 45 | + '@typescript-eslint/member-delimiter-style': 'off', |
| 46 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 47 | + 'import/order': [ |
| 48 | + 'error', |
50 | 49 | { |
51 | | - groups: ["builtin", "external", "unknown", "parent", "sibling", "index"] |
| 50 | + groups: ['builtin', 'external', 'unknown', 'parent', 'sibling', 'index'] |
52 | 51 | } |
53 | 52 | ], |
54 | | - "no-console": [ |
55 | | - "error", |
| 53 | + 'no-console': [ |
| 54 | + 'error', |
56 | 55 | { |
57 | | - allow: ["warn", "error", "assert"] |
| 56 | + allow: ['warn', 'error', 'assert'] |
58 | 57 | } |
59 | 58 | ], |
60 | | - "@typescript-eslint/strict-boolean-expressions": [ |
61 | | - "error", |
| 59 | + '@typescript-eslint/strict-boolean-expressions': [ |
| 60 | + 'error', |
62 | 61 | { |
63 | 62 | allowNullableBoolean: true |
64 | 63 | } |
|
0 commit comments