-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
58 lines (58 loc) · 1.38 KB
/
.eslintrc
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
{
//"parser": "babel-eslint", // https://github.com/babel/babel-eslint,
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"pragma": "React", // Pragma to use, default to "React"
"version": "17.0", // React version, default to the latest React stable release
},
},
"globals": {
"$p": true,
"global": true,
"moment": true,
"alasql": true,
"process": true,
"paper": true,
"expect": true,
"sinon": true,
"__DEV__": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"strict": [2, "global"],
"max-len": [1, 160, 2],
"no-empty": 1,
"no-undef": 1,
"no-unused-vars": 1,
"semi": [1, "always"],
"semi-spacing": [1, {"before": false, "after": true}],
"no-case-declarations": 1,
"no-console": 0,
"no-extra-semi": 1,
"no-prototype-builtins": 0,
"no-unexpected-multiline": 1,
"no-useless-escape": 1,
"no-mixed-spaces-and-tabs": 1,
"quotes": [0, "single", "avoid-escape"],
"indent": [0, 2, { "SwitchCase": 1 }],
"react/prop-types": 1,
"react/display-name": 1,
"react/no-find-dom-node": 1,
"react/jsx-key": 1,
}
}