-
-
Notifications
You must be signed in to change notification settings - Fork 315
/
eslint.config.js
73 lines (72 loc) · 1.39 KB
/
eslint.config.js
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
const jsdoc = require('eslint-plugin-jsdoc');
module.exports = [
// configuration included in plugin
//jsdoc.configs['flat/recommended'],
{
"languageOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"plugins": {jsdoc: jsdoc},
"rules": {
"no-trailing-spaces": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
"no-tabs": 2,
"no-extra-bind": 2,
"eqeqeq": 2,
"indent": [
2,
4,
{
"SwitchCase": 1
}
],
"semi-spacing": [
2,
{
"before": false,
"after": true
}
],
"semi": [
2,
"always"
],
"comma-spacing": [
2,
{
"after": true
}
],
"keyword-spacing": ["error", { "before": true }],
"key-spacing": ["error", { "afterColon": true, "beforeColon": false }],
"space-infix-ops": 2,
"prefer-arrow-callback": 2,
"jsdoc/require-return": "off",
"jsdoc/require-returntype": "off",
"object-curly-spacing": ["error", "never"],
"no-console": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-extra-semi": 2,
"no-fallthrough": 2,
"use-isnan": 2,
"valid-typeof": 2,
"no-var": 2
}
},
{
files: ["build-config/**/*.js"],
rules: {
"no-console": "off"
}
},
{
files: ["test-*.js", "*.spec.js", "test-helpers.js"],
rules: {
"no-console": "off",
"require-jsdoc": "off"
}
}
];