|
1 | 1 | module.exports = {
|
2 |
| - env: { |
3 |
| - browser: true, |
4 |
| - es6: true, |
5 |
| - node: true, |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es6: true, |
| 5 | + node: true, |
| 6 | + }, |
| 7 | + extends: [ |
| 8 | + 'eslint:recommended', |
| 9 | + 'plugin:react/recommended', |
| 10 | + 'plugin:import/errors', |
| 11 | + 'plugin:import/warnings', |
| 12 | + 'plugin:jsx-a11y/recommended', |
| 13 | + 'plugin:react-hooks/recommended', |
| 14 | + 'next', |
| 15 | + 'prettier', |
| 16 | + 'plugin:prettier/recommended', |
| 17 | + ], |
| 18 | + parser: 'babel-eslint', |
| 19 | + parserOptions: { |
| 20 | + ecmaVersion: 2018, |
| 21 | + sourceType: 'module', |
| 22 | + ecmaFeatures: { |
| 23 | + jsx: true, |
6 | 24 | },
|
7 |
| - extends: [ |
8 |
| - "eslint:recommended", |
9 |
| - "plugin:react/recommended", |
10 |
| - "plugin:import/errors", |
11 |
| - "plugin:import/warnings", |
12 |
| - "plugin:jsx-a11y/recommended", |
13 |
| - "plugin:react-hooks/recommended", |
14 |
| - "next", |
15 |
| - "prettier", |
16 |
| - "plugin:prettier/recommended", |
17 |
| - ], |
18 |
| - parser: "babel-eslint", |
19 |
| - parserOptions: { |
20 |
| - ecmaVersion: 2018, |
21 |
| - sourceType: "module", |
22 |
| - ecmaFeatures: { |
23 |
| - jsx: true, |
24 |
| - }, |
25 |
| - }, |
26 |
| - settings: { |
27 |
| - react: { |
28 |
| - version: "detect", |
29 |
| - }, |
30 |
| - }, |
31 |
| - plugins: ["eslint-plugin-import", "eslint-plugin-react", "eslint-plugin-jsdoc", "eslint-plugin-prefer-arrow"], |
32 |
| - rules: { |
33 |
| - "react/prop-types": 0, |
34 |
| - "react/react-in-jsx-scope": 0, |
35 |
| - "comma-dangle": ["error", "always-multiline"], |
36 |
| - "jsx-quotes": ["error", "prefer-double"], |
37 |
| - "react-native/no-inline-styles": 0, |
38 |
| - "space-before-function-paren": 0, |
39 |
| - "react-hooks/exhaustive-deps": 0, |
40 |
| - "no-duplicate-imports": "off", |
41 |
| - "react/display-name": 0, |
42 |
| - "prettier/prettier": 0, |
43 |
| - camelcase: 0, |
44 |
| - "max-len": [ |
45 |
| - 1, |
46 |
| - { |
47 |
| - code: 120, |
48 |
| - }, |
49 |
| - ], |
50 |
| - "no-use-before-define": 0, |
51 |
| - "default-param-last": 0, |
52 |
| - "multiline-ternary": 0, |
53 |
| - "key-spacing": ["error"], |
54 |
| - "object-curly-spacing": ["error", "always"], |
55 |
| - "jsx-a11y/alt-text": ["warn"], |
56 |
| - "jsx-a11y/no-noninteractive-element-interactions": ["warn"], |
57 |
| - "jsx-a11y/click-events-have-key-events": ["warn"], |
58 |
| - "import/no-unresolved": ["warn"], |
59 |
| - "jsx-a11y/no-static-element-interactions": ["warn"], |
60 |
| - "jsx-a11y/anchor-is-valid": ["warn"], |
61 |
| - semi: ["error", "never"], |
62 |
| - "no-multiple-empty-lines": [ |
63 |
| - "error", |
64 |
| - { |
65 |
| - max: 1, |
66 |
| - maxEOF: 0, |
67 |
| - maxBOF: 0, |
68 |
| - }, |
69 |
| - ], |
70 |
| - quotes: [ |
71 |
| - "error", |
72 |
| - "single", |
73 |
| - { |
74 |
| - avoidEscape: true, |
75 |
| - allowTemplateLiterals: true, |
76 |
| - }, |
77 |
| - ], |
| 25 | + }, |
| 26 | + settings: { |
| 27 | + react: { |
| 28 | + version: 'detect', |
78 | 29 | },
|
79 |
| -}; |
| 30 | + }, |
| 31 | + plugins: ['eslint-plugin-import', 'eslint-plugin-react', 'eslint-plugin-jsdoc', 'eslint-plugin-prefer-arrow'], |
| 32 | + rules: { |
| 33 | + 'react/prop-types': 0, |
| 34 | + 'react/react-in-jsx-scope': 0, |
| 35 | + 'comma-dangle': ['error', 'always-multiline'], |
| 36 | + 'jsx-quotes': ['error', 'prefer-double'], |
| 37 | + 'react-native/no-inline-styles': 0, |
| 38 | + 'space-before-function-paren': 0, |
| 39 | + 'react-hooks/exhaustive-deps': 0, |
| 40 | + 'no-duplicate-imports': 'off', |
| 41 | + 'react/display-name': 0, |
| 42 | + 'prettier/prettier': 0, |
| 43 | + camelcase: 0, |
| 44 | + 'max-len': [ |
| 45 | + 1, |
| 46 | + { |
| 47 | + code: 120, |
| 48 | + }, |
| 49 | + ], |
| 50 | + 'no-use-before-define': 0, |
| 51 | + 'default-param-last': 0, |
| 52 | + 'multiline-ternary': 0, |
| 53 | + 'key-spacing': ['error'], |
| 54 | + 'object-curly-spacing': ['error', 'always'], |
| 55 | + 'jsx-a11y/alt-text': ['warn'], |
| 56 | + 'jsx-a11y/no-noninteractive-element-interactions': ['warn'], |
| 57 | + 'jsx-a11y/click-events-have-key-events': ['warn'], |
| 58 | + 'import/no-unresolved': ['warn'], |
| 59 | + 'jsx-a11y/no-static-element-interactions': ['warn'], |
| 60 | + 'jsx-a11y/anchor-is-valid': ['warn'], |
| 61 | + semi: ['error', 'never'], |
| 62 | + 'no-multiple-empty-lines': [ |
| 63 | + 'error', |
| 64 | + { |
| 65 | + max: 1, |
| 66 | + maxEOF: 0, |
| 67 | + maxBOF: 0, |
| 68 | + }, |
| 69 | + ], |
| 70 | + quotes: [ |
| 71 | + 'error', |
| 72 | + 'single', |
| 73 | + { |
| 74 | + avoidEscape: true, |
| 75 | + allowTemplateLiterals: true, |
| 76 | + }, |
| 77 | + ], |
| 78 | + }, |
| 79 | +} |
0 commit comments