-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
50 lines (50 loc) · 1.21 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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
mocha: true
},
globals: {
expect: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: 'module'
},
plugins: ['react'],
extends: ['eslint:recommended', 'plugin:react/recommended'],
rules: {
'arrow-spacing': 'error',
'block-spacing': 'error',
'comma-dangle': 'off',
'comma-spacing': 'error',
'comma-style': 'error',
curly: 'error',
'dot-notation': 'error',
eqeqeq: ['error', 'smart'],
'eol-last': 'error',
'key-spacing': 'error',
'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'no-console': 'off',
'no-param-reassign': 'error',
'no-tabs': 'error',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'error',
'no-var': 'error',
'no-whitespace-before-property': 'error',
'prefer-const': 'error',
semi: ['error', 'always'],
'semi-spacing': 'error',
'space-before-blocks': 'error',
'space-before-function-paren': ['error', 'never'],
'space-in-parens': 'error',
'react/display-name': 'off'
}
};