forked from withspectrum/spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 803 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 = {
extends: ['eslint:recommended', 'plugin:react/recommended'],
parser: 'babel-eslint',
env: {
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: ['eslint-plugin-flowtype'],
rules: {
'no-undef': 0,
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-unused-vars': 1,
'no-empty': 0,
'no-useless-escape': 1,
'no-fallthrough': 1,
'no-extra-boolean-cast': 1,
'react/prop-types': 0,
'react/no-deprecated': 0,
'react/display-name': 0,
'react/no-find-dom-node': 1,
'react/no-unescaped-entities': 'warn',
'react/no-string-refs': 'warn',
'react/jsx-no-target-blank': 'warn',
'react/no-children-prop': 0,
},
};