-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
57 lines (57 loc) · 1.4 KB
/
index.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
module.exports = {
env: {
"browser": true,
"es2021": true
},
extends: [
"eslint-config-standard",
"eslint:recommended",
"plugin:require-extensions/recommended",
"plugin:sonarjs/recommended",
"plugin:ecmascript-compat/recommended"
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module"
},
plugins: [
"import",
"require-extensions",
"sonarjs",
"ecmascript-compat"
],
rules: {
"quotes": ["error", "double"],
"semi": ["error", "always"],
"comma-dangle": ["error", "only-multiline"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"no-await-in-loop": "error",
"no-template-curly-in-string": "error",
"arrow-body-style": ["error", "as-needed"],
"no-floating-decimal": "error",
"max-lines": ["error", {
"max": 500,
"skipBlankLines": true,
"skipComments": true
}],
"max-lines-per-function": ["error", {
"max": 250,
"skipBlankLines": true,
"skipComments": true
}],
"no-unneeded-ternary": "error",
"no-script-url": "error",
"no-sequences": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"indent": ["error", 2]
}
}