-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.eslintrc.js
67 lines (67 loc) · 1.48 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
module.exports = {
env: {
browser: true,
'jest/globals': true
},
globals: {
$: true,
__: true,
n__: true,
sprintf: true,
ManageIQ: true
},
extends: [
'standard',
'standard-react',
'standard-jsx',
'airbnb',
'plugin:jest/recommended',
'prettier',
'prettier/react'
],
plugins: ['prettier', 'jest', 'react'],
rules: {
'prettier/prettier': 'error',
camelcase: 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/label-has-for': [
2,
{
required: {
some: ['nesting', 'id']
},
allowChildren: true
}
],
'import/prefer-default-export': 'off',
'import/no-named-as-default': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'none'
}
],
'import/no-extraneous-dependencies': [
'error',
{
// Allow importing devDependencies like @storybook
devDependencies: true
}
],
'no-nested-ternary': 'off',
'react/no-array-index-key': 'off',
'react/jsx-filename-extension': 'off',
'react/prefer-stateless-function': 'warn',
'react/forbid-prop-types': 'off',
'react/require-default-props': 'off',
'react/sort-comp': 'off',
'standard/computed-property-even-spacing': 'off',
'react/no-danger': 'error'
},
parser: 'babel-eslint'
};