-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.65 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['airbnb', 'plugin:react/recommended'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
semi: ['error', 'always'],
indent: 'off',
'function-paren-newline': 'off',
'react/jsx-indent': 'off',
'object-curly-newline': 'off',
'operator-linebreak': 'off',
'react/jsx-curly-newline': 'off',
'no-confusing-arrow': 'off',
'linebreak-style': 0,
'no-alert': 'off',
'no-console': 'off',
'unicode-bom': ['error', 'never'],
'react/no-children-prop': 1,
'react/jsx-one-expression-per-line': 0,
'react/react-in-jsx-scope': 'off',
'import/no-named-as-default': 0,
'global-require': 0,
'import/prefer-default-export': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'no-use-before-define': 'off',
'no-extra-semi': 'off',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-unused-vars': 'off',
'react/jsx-no-undef': 0,
'react/no-unstable-nested-components': 'off',
'react/no-array-index-key': 'off',
'import/no-extraneous-dependencies': 'off',
'implicit-arrow-linebreak': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
},
],
'react/prop-types': 0,
'react/jsx-wrap-multilines': 'off',
'no-shadow': 'off',
'react/jsx-props-no-spreading': ['off'],
},
};