|
1 | 1 | module.exports = {
|
2 |
| - "extends": [ |
3 |
| - "airbnb", |
4 |
| - "airbnb-typescript", |
5 |
| - "airbnb/hooks", |
6 |
| - "plugin:@typescript-eslint/recommended" |
| 2 | + extends: [ |
| 3 | + 'airbnb', |
| 4 | + 'airbnb-typescript', |
| 5 | + 'airbnb/hooks', |
| 6 | + 'plugin:@typescript-eslint/recommended', |
7 | 7 | ],
|
8 |
| - "env": { |
9 |
| - "browser": true, |
10 |
| - "es6": true, |
11 |
| - "node": true |
| 8 | + env: { |
| 9 | + browser: true, |
| 10 | + es6: true, |
| 11 | + node: true, |
12 | 12 | },
|
13 |
| - "parser": "@typescript-eslint/parser", |
14 |
| - "parserOptions": { |
15 |
| - "project": "./tsconfig.json" |
| 13 | + parser: '@typescript-eslint/parser', |
| 14 | + parserOptions: { |
| 15 | + project: './tsconfig.json', |
16 | 16 | },
|
17 |
| - "rules": { |
18 |
| - "react/function-component-definition": "off", |
19 |
| - "import/extensions": "off", |
20 |
| - "react/jsx-props-no-spreading": "off", |
21 |
| - "react/require-default-props": "off", |
22 |
| - "import/prefer-default-export": "warn", |
23 |
| - "max-len": "off", |
24 |
| - "no-param-reassign": "warn", |
25 |
| - "no-underscore-dangle": ["warn", { "allow": ["_env_"] }], |
26 |
| - "no-restricted-syntax": [ |
27 |
| - "error", |
28 |
| - "ForInStatement", |
29 |
| - "LabeledStatement", |
30 |
| - "WithStatement" |
| 17 | + rules: { |
| 18 | + 'react/function-component-definition': 'off', |
| 19 | + 'import/extensions': 'off', |
| 20 | + 'react/jsx-props-no-spreading': 'off', |
| 21 | + 'react/require-default-props': 'off', |
| 22 | + 'import/prefer-default-export': 'warn', |
| 23 | + 'max-len': 'off', |
| 24 | + 'no-param-reassign': 'warn', |
| 25 | + 'no-underscore-dangle': ['warn', { allow: ['_env_'] }], |
| 26 | + 'no-restricted-syntax': [ |
| 27 | + 'error', |
| 28 | + 'ForInStatement', |
| 29 | + 'LabeledStatement', |
| 30 | + 'WithStatement', |
31 | 31 | ],
|
32 |
| - "prefer-destructuring": ["error", { "object": true, "array": true }], |
| 32 | + 'prefer-destructuring': ['error', { object: true, array: true }], |
33 | 33 | },
|
34 |
| - "settings": { |
35 |
| - "import/resolver": { |
36 |
| - typescript: {} |
| 34 | + settings: { |
| 35 | + 'import/resolver': { |
| 36 | + typescript: {}, |
37 | 37 | },
|
38 | 38 | },
|
39 |
| -} |
| 39 | + overrides: [ |
| 40 | + { |
| 41 | + extends: ['plugin:@typescript-eslint/disable-type-checked'], |
| 42 | + files: ['./*.js'], |
| 43 | + }, |
| 44 | + ], |
| 45 | +}; |
0 commit comments