-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
89 lines (89 loc) · 3.45 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
80
81
82
83
84
85
86
87
88
89
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"extraFileExtensions": [".mjs"],
"project": "./tsconfig.eslint.json",
"sourceType": "module",
"ecmaVersion": 2020,
"warnOnUnsupportedTypeScriptVersion": false
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": [
"jsdoc",
"jest"
],
"rules": {
"prefer-destructuring": 1,
"require-unicode-regexp": 1,
"no-return-await": 1,
"no-trailing-spaces": 1,
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"curly": ["error", "all"],
"padded-blocks": ["error", "never", {"allowSingleLineBlocks": false}],
"indent": ["error", 4, {"SwitchCase": 1}],
"handle-callback-err": ["error"],
"no-multi-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"brace-style": ["error", "1tbs"],
"max-len": ["error", { "code": 120, "ignoreStrings": true, "ignoreTemplateLiterals": true }],
"quotes": "off",
"@typescript-eslint/quotes": ["error", "single", { "allowTemplateLiterals": true }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"padding-line-between-statements": [
"error",
{"blankLine": "always", "prev": "*", "next": "return"},
{"blankLine": "always", "prev": ["const", "let", "var"], "next": "*"},
{"blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
{"blankLine": "always", "prev": "directive", "next": "*" },
{"blankLine": "any", "prev": "directive", "next": "directive"},
{"blankLine": "always", "prev": ["case", "default"], "next": "*" },
{"blankLine": "always", "prev": ["block", "if", "for", "try"], "next": "*" },
{"blankLine": "always", "prev": "*", "next": ["block", "if", "for", "try"] }
],
"jsdoc/check-access": 1,
"jsdoc/check-alignment": 1,
"jsdoc/check-line-alignment": 1,
"jsdoc/check-param-names": 1,
"jsdoc/check-property-names": 1,
"jsdoc/check-syntax": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 1,
"jsdoc/check-values": 1,
"jsdoc/empty-tags": 1,
"jsdoc/implements-on-classes": 1,
"jsdoc/match-description": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/no-bad-blocks": 1,
"jsdoc/no-defaults": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-name": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-property": 1,
"jsdoc/require-property-name": 1,
"jsdoc/require-property-type": 1,
"jsdoc/require-returns": 1,
"jsdoc/require-returns-check": 1,
"jsdoc/require-returns-type": 1,
"jsdoc/require-yields": 1,
"jsdoc/valid-types": 1
}
}