forked from usgs/waterdataui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
51 lines (51 loc) · 1.27 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
{
"env": {
"commonjs": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["jest"],
"extends": ["eslint:recommended", "plugin:jest/recommended"],
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error","1tbs", {}],
"comma-dangle": [2,"never"],
"curly": "error",
"linebreak-style": ["error", "unix"],
"no-console": "off",
"no-extra-parens": [2,"all"],
"no-use-before-define": 2,
"no-mixed-spaces-and-tabs": 2,
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"overrides": [
{
"files": ["src/scripts/**/*.test.js"],
"rules": {
"no-import-assign": "off"
}
}
],
"globals": {
"__dirname": true,
"console": true,
"document": true,
"Math": true,
"process": true,
"XMLHttpRequest": true,
"window": true
}
}