forked from henit/react-entity-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
99 lines (99 loc) · 2.69 KB
/
.eslintrc.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"plugins": [
"babel",
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.5"
},
"propWrapperFunctions": [ "forbidExtraProps" ]
},
"rules": {
"array-bracket-spacing": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"block-spacing": 2,
"brace-style": [2, "1tbs"],
"camelcase": 2,
"comma-dangle": [2, "never"],
"comma-spacing": 2,
"comma-style": [2, "last"],
"computed-property-spacing": 2,
"constructor-super": 2,
"curly": 2,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"func-call-spacing": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"jsx-quotes": 2,
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, { "before": true, "after": true }],
"linebreak-style": [2, "unix"],
"max-len": [1, 120, 4],
"max-lines": [1, 500],
"max-statements": [1, 50],
"new-parens": 2,
"no-alert": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-case-declarations": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-extend-native": 2,
"no-nested-ternary": 0,
"no-tabs": 2,
"no-trailing-spaces": 2,
"no-unused-vars": [2, { "args": "none" }],
"no-useless-constructor": 2,
"no-useless-rename": 2,
"no-var": 2,
"no-whitespace-before-property": 2,
"one-var": [2, { "var": "never", "let": "never", "const": "never" }],
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"quote-props": [2, "as-needed"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"valid-jsdoc": [2, { "requireReturn": false, "requireReturnDescription": false, "requireParamDescription": false }],
"yoda": 2,
"babel/no-invalid-this": 2
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"__dirname": false,
"clearInterval": false,
"clearTimeout": false,
"confirm": false, // window.confirm
"console": false,
"document": false,
"fetch": false, // fetch api
"global": false,
"Headers": false, // fetch api
"location": false,
"module": false,
"process": false,
"Promise": false,
"require": false,
"setInterval": false,
"setTimeout": false,
"URLSearchParams": false,
"window": false
},
"env": {
"es6": true,
"jest": true
}
}