-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.77 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 = {
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
},
extends: ['airbnb', 'prettier/react'],
plugins: ['autofix', 'import-order-alphabetical'],
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true
},
rules: {
'no-continue': 'off',
'guard-for-in': 'off',
'jsx-a11y/href-no-hash': ['off'],
'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
'react/jsx-props-no-spreading': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'jsx-quotes': ['warn', 'prefer-single'],
'import-order-alphabetical/order': 'warn',
'no-param-reassign': ['error', { props: false }],
'import/no-extraneous-dependencies': ['error', {
'devDependencies': true,
'optionalDependencies': false,
'peerDependencies': false
}],
'sort-imports': ['warn', {
'ignoreCase': false,
'ignoreDeclarationSort': true,
'ignoreMemberSort': false,
'memberSyntaxSortOrder': ['none', 'all', 'multiple', 'single']
}],
'max-len': [
'warn',
{
code: 80,
tabWidth: 2,
comments: 80,
ignoreComments: false,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true
},
],
'semi': ['error', 'never'],
'autofix/no-debugger': 'error',
'max-classes-per-file': ['error', 2],
'import/no-extraneous-dependencies': ['error', { peerDependencies: true }],
'class-methods-use-this': 'off',
'prefer-const': ['error', {
"destructuring": 'all',
}],
}
}