-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.33 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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
jsx: true,
experimentalObjectRestSpread: true
}
},
plugins: ['react'],
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:prettier/recommended'],
env: {
browser: true,
node: true,
es6: true
},
rules: {
'brace-style': 2,
camelcase: 2,
'class-methods-use-this': 2,
'comma-dangle': 2,
'comma-spacing': 2,
'dot-notation': 2,
eqeqeq: 2,
indent: [2, 'tab', { SwitchCase: 1 }],
'key-spacing': 2,
'lines-between-class-members': 2,
'max-len': [2, 200, 2],
'newline-per-chained-call': [2, { ignoreChainWithDepth: 3 }],
'no-console': [2, { allow: ['error'] }],
'no-multiple-empty-lines': 2,
'no-shadow': 2,
'no-unneeded-ternary': [2, { defaultAssignment: false }],
'no-unused-expressions': 2,
'no-var': 2,
'object-shorthand': 2,
'padded-blocks': [2, 'never'],
'prefer-const': 2,
'prefer-arrow-callback': 2,
'quote-props': [2, 'as-needed'],
quotes: [2, 'single'],
'require-await': 2,
semi: [2, 'always'],
'space-before-function-paren': [2, { anonymous: 'always', named: 'never' }],
'space-infix-ops': 2,
strict: 2,
yoda: 2,
'react/jsx-curly-spacing': [2, { when: 'never', children: true }],
'react/no-unescaped-entities': 0
}
};