-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.json
59 lines (59 loc) · 1.65 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
{
"root": true,
"parserOptions": {
"parser": "babel/eslint-parser",
"sourceType": "module"
},
"env": {
"browser": true
},
"plugins": [
"mocha"
],
"extends": [
"plugin:mocha/recommended",
"airbnb-base"
],
"ignorePatterns": ["**", "!src", "!src/**"],
"rules": {
"max-len": [2, {
"code": 125,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"import/extensions": ["error", "always", {
"js": "never",
"vue": "never"
}],
"indent": [2, 4, {
"SwitchCase": 1
}],
"no-console": ["error", {
"allow": ["warn", "error", "info", "debug"]
}],
"no-param-reassign": ["error", {
"props": false
}],
"no-mixed-operators": ["error", {
"allowSamePrecedence": true
}],
"no-return-assign": ["error", "except-parens"],
"import/no-cycle": 0,
"prefer-destructuring": ["error", { "object": false, "array": false }],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"no-unused-expressions": ["error", {
"allowShortCircuit": true,
"allowTernary": true
}],
"prefer-arrow-callback": 0,
"mocha/prefer-arrow-callback": 2,
"import/no-unresolved": [2, { "ignore": ["\\/gdal3.coverage$", "\\/gdal3WebAssembly.js$"] }]
},
"globals": {
"window": false,
"initGdalJs": true,
"chai": false
}
}