-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
55 lines (54 loc) · 1.25 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
const config = {
extends: ['eslint:recommended', 'plugin:flowtype/recommended', 'prettier'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
sourceType: 'module',
},
env: {
browser: true,
node: true,
jest: true,
jasmine: true,
es6: true,
},
plugins: ['flowtype', 'react'],
rules: {
'array-callback-return': 2,
'comma-dangle': 0,
'eol-last': 2,
'no-console': 0,
'no-empty-pattern': 2,
'no-lone-blocks': 2,
'no-lonely-if': 2,
'no-multi-spaces': 2,
'no-negated-condition': 2,
'no-trailing-spaces': 2,
'no-unused-vars': [2, { args: 'none' }],
'no-useless-call': 2,
'no-useless-concat': 2,
'no-useless-escape': 2,
'no-whitespace-before-property': 2,
'prefer-template': 2,
'react/jsx-no-undef': 0,
'react/jsx-uses-react': 1,
'react/jsx-uses-vars': 1,
'react/no-deprecated': 2,
'react/no-string-refs': 1,
'react/react-in-jsx-scope': 2,
'react/jsx-boolean-value': 2,
'react/jsx-equals-spacing': [2, 'never'],
'react/jsx-no-duplicate-props': 2,
'react/jsx-pascal-case': 2,
'react/jsx-uses-react': 2,
semi: 2,
'space-in-parens': [2, 'never'],
'spaced-comment': [2, 'always'],
strict: 0,
},
};
module.exports = config;