-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.js
34 lines (34 loc) · 984 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
34
module.exports = {
'env': {
'mocha': true
},
'extends': [
'standard',
'standard-react'
],
'parser': 'babel-eslint',
'rules': {
'comma-dangle': ['error', 'only-multiline'],
'no-console': 'warn',
'no-debugger': 'error',
'no-unused-expressions': 0,
'react/default-props-match-prop-types': 'warn',
'react/jsx-equals-spacing': ['warn', 'never'],
'react/jsx-no-duplicate-props': ['warn', { 'ignoreCase': true }],
'react/jsx-no-undef': 'warn',
'react/jsx-pascal-case': ['warn', {
'allowAllCaps': true,
'ignore': []
}],
'react/jsx-uses-react': 'warn',
'react/jsx-uses-vars': 'warn',
'react/no-deprecated': 'warn',
'react/no-direct-mutation-state': 'error',
'react/no-is-mounted': 'warn',
'react/no-multi-comp': ['warn', { 'ignoreStateless': true }],
'react/no-unused-prop-types': 1,
'react/react-in-jsx-scope': 'warn',
'react/require-render-return': 'warn',
'strict': 0
}
}