-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
82 lines (82 loc) · 1.82 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true
},
plugins: ['react'],
extends: ['airbnb-base', 'eslint:all', 'plugin:react/recommended'],
parser: 'babel-eslint',
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
settings: {
react: {
createClass: 'createReactClass',
pragma: 'React',
version: 'detect',
flowVersion: '0.53'
}
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'comma-dangle': ['error', 'never'],
'no-param-reassign': [
'error',
{
props: false
}
],
'class-methods-use-this': 0,
'no-plusplus': 0,
'id-length': 0,
'no-invalid-this': 0,
'react/prop-types': 0,
'spaced-comment': 0,
'max-lines': 0,
'import/no-named-as-default': 0,
'import/no-extraneous-dependencies': 0,
'no-unused-expressions': 0,
'init-declarations': 0,
'no-shadow': 0,
'default-param-last': 0,
'import/prefer-default-export': 0,
'array-element-newline': 0,
'multiline-ternary': 0,
'no-magic-numbers': 0,
'arrow-body-style': 0,
'no-alert': 0,
'eslint(quotes)': 0,
'max-lines-per-function': 0,
'object-curly-newline': 0,
'no-confusing-arrow': 0,
'implicit-arrow-linebreak': 0,
'function-paren-newline': 0,
'no-useless-constructor': 0,
'object-shorthand': 0,
'no-ternary': 0,
'sort-keys': 0,
'max-len': 0,
'no-console': 0,
'no-return-assign': 0,
'linebreak-style': 0,
'no-nested-ternary': 0,
'sort-imports': [
'error',
{
ignoreCase: true,
ignoreDeclarationSort: true,
ignoreMemberSort: true,
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single']
}
]
}
};