-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.39 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
module.exports = {
extends: ["eslint:recommended", "plugin:react/recommended"],
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
modules: true
}
},
env: {
browser: true,
node: true,
jasmine: true,
},
globals: {
shallow: true
},
rules: {
'react/prop-types': 0,
'no-multiple-empty-lines': ["error", { "max": 1, "maxEOF": 1 }],
'no-extra-parens': ["error", "all", { "nestedBinaryExpressions": false }],
'block-scoped-var': "error",
'eqeqeq': "error",
'object-curly-spacing': ["error", "always"],
'block-scoped-var': "error",
'no-alert': "error",
'no-else-return': "error",
'no-empty-function': "error",
'no-empty-pattern': "error",
'no-magic-numbers': "error",
'no-multi-spaces': "error",
'global-require': "error",
'handle-callback-err': "error",
'no-mixed-requires': "error",
'array-bracket-spacing': ["error", "always"],
'block-spacing': "error",
'camelcase': "error",
'comma-dangle': ["error", "always-multiline"],
'comma-spacing': ["error", { "before": false, "after": true }],
'implicit-arrow-linebreak': ["error", "beside"],
'indent': ["error", 2],
'jsx-quotes': ["error", "prefer-double"],
'react/jsx-closing-bracket-location': ['error', 'after-props'],
},
settings: {
react: {
version: "16.0",
}
},
};