forked from qunitjs/qunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
79 lines (79 loc) · 2.21 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
{
"root": true,
"env": {
"es6": true
},
"extends": ["eslint:recommended", "jquery"],
"parserOptions": {
"sourceType": "module"
},
"rules": {
"arrow-spacing": ["error", { "before": true, "after": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"constructor-super": "error",
"indent": ["error", "tab", {
"CallExpression": {
"arguments": 1
},
"MemberExpression": 1,
"SwitchCase": 0,
"outerIIFEBody": 1
}],
"no-console": "off",
"no-const-assign": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"no-this-before-super": "error",
"no-useless-constructor": "error",
"no-useless-rename": "error",
"prefer-const": "error",
"rest-spread-spacing": ["error", "never"],
"wrap-iife": ["error", "any"]
},
"ignorePatterns": [
"__codeorigin/**",
"coverage/**",
"docs/_site/**",
"lib/**",
"qunit/**",
"test/integration/*/**",
"temp/**"
],
"overrides": [
{
"files": [
"bin/*.js",
"build/**/*.js",
"src/cli/*.js",
"Gruntfile.js",
"rollup.config.js"
],
"excludedFiles": [
"build/coverage-bridge.js"
],
"parserOptions": {
"sourceType": "script",
"ecmaVersion": 2020
},
"env": {
"node": true
},
"extends": ["plugin:node/recommended"],
"rules": {
"no-process-exit": "off"
}
},
{
"files": [
"test/**/*.html"
],
"extends": ["eslint:recommended", "jquery"],
"rules": {
"wrap-iife": ["error", "any"],
"indent": "off"
}
}
]
}