-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
33 lines (33 loc) · 876 Bytes
/
.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
module.exports = {
env: {
browser: true,
es6: true,
node: true
},
parser: 'babel-eslint',
extends: ['standard', 'standard-react'],
plugins: ['extra-rules', 'fp', 'no-null'],
rules: {
'no-console': 'error',
'no-inline-comments': 'error',
'multiline-comment-style': ['error', 'starred-block'],
'extra-rules/no-commented-out-code': 'error',
'fp/no-class': 'error',
'fp/no-delete': 'error',
'fp/no-loops': 'error',
'fp/no-mutation': ['error', {
commonjs: true,
exceptions: [
{ property: 'story' },
{ property: 'propTypes' },
{ property: 'defaultProps' }
]
}],
'fp/no-mutating-assign': 'error',
'fp/no-mutating-methods': 'error',
'no-var': 'error',
'no-undefined': 'error',
'no-null/no-null': 'error',
camelcase: ['error', { properties: 'always' }]
}
}