-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.cjs
61 lines (61 loc) · 2.73 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
"import",
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
"plugin:import/recommended",
"plugin:import/typescript"
],
rules: {
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-new-object": "error",
"no-new-wrappers": "error",
"no-array-constructor": "error",
"indent": ["error", 4],
"yield-star-spacing": "error",
"no-useless-return": "error",
"import/no-unresolved": "off",
"linebreak-style": ["error", "unix"],
"import/newline-after-import": ["error", { "count": 2 }],
"eol-last": ["error", "always"],
"quotes": ["error", "double", { "avoidEscape": true }],
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: ["const", "let", "var", "class", "export"], next: "*" },
{ blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"] },
// { blankLine: "never", prev: ["const", "let", "var"].flatMap(x => [x, "multiline-" + x]), next: ["block-like", "multiline-block-like"] },
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "always", prev: ["for", "while"], next: ["for", "while"] },
],
"spaced-comment": ["error", "always", { "markers": ["/"] }]
},
settings: {
"import/ignore": ["^tslib$"]
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": ["error", {
types: {
"object": false
}
}],
"@typescript-eslint/no-this-alias": ["error", { allowedNames: ["self"] }],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-member-accessibility": ["error"],
"prefer-rest-params": "off",
"no-var": "off",
"@typescript-eslint/no-explicit-any": "off" // FUCK THIS SHIT: MY CODE MERCILESSLY TURNED INTO SHITCODE BY THIS FUCKING BASTRADED RULE MAKES ME **EVERY**!!!!! TIME USE `as never` JUST TO ESCAPE "THE BIGGEST EVIL AMONG ALL OTHER EVILS" TYPE `any`!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK
}
}
]
};