-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (41 loc) · 1.01 KB
/
.eslintrc
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
{
'ecmaFeatures': {
'jsx': true,
'modules': true
},
'env': {
'browser': true,
'node': true
},
'extends': 'airbnb',
'parser': 'babel-eslint',
'rules': {
'babel/arrow-parens': 'off',
'babel/generator-star-spacing': 'warn',
'babel/no-await-in-loop': 'warn',
'babel/object-shorthand': 'warn',
'comma-dangle': ['error', 'never'],
'import/no-extraneous-dependencies': ['error', {
devDependencies: ["**/*.test.js", "**/*.spec.js"]
}],
'max-len': ['error', {
code: 80,
tabWidth: 2,
ignoreUrls: true,
ignoreComments: false,
ignoreStrings: false,
ignoreTemplateLiterals: true,
ignoreTrailingComments: true
}],
'no-prototype-builtins': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'quotes': ['error', 'single'],
'react/jsx-filename-extension': 'off',
'react/no-unused-prop-types': ['error', { skipShapeProps: true }],
'strict': ['error', 'never']
},
'plugins': [
'babel',
'react'
]
}