-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (64 loc) · 1.78 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["import", "jsdoc"],
"rules": {
"arrow-spacing": "error",
"camelcase": "off",
"comma-spacing": "error",
"comma-dangle": ["error", "always-multiline"],
"eol-last": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
},
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"]
}
],
"indent": ["error", 2],
"jsdoc/check-param-names": "error",
"jsdoc/check-property-names": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-type": "error",
"jsdoc/require-returns": "error",
"jsdoc/require-returns-type": "error",
"jsdoc/sort-tags": "error",
"no-constant-condition": "off",
"no-extra-parens": "warn",
"no-multi-spaces": "error",
"no-trailing-spaces": "error",
"no-useless-concat": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"prefer-destructuring": ["warn", {"object": true, "array": false}],
"prefer-promise-reject-errors": "error",
"quotes": ["error", "single"],
"require-await": "warn",
"semi": ["error", "never"],
"sort-imports": ["error", {
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"space-infix-ops": "error"
}
}