This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
111 lines (111 loc) · 4.53 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"root": true,
"parserOptions": {
"ecmaFeatures": {
"modules": true,
"impliedStrict": true
},
"ecmaVersion": 2020,
"project": "tsconfig.json",
"sourceType": "module"
},
"env": {
"commonjs": true,
"es2020": true,
"jquery": true,
"node": true
},
"rules": {},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"prettier",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"],
"rules": {
"capitalized-comments": "off",
"new-cap": "off",
"no-mixed-operators": "off",
"object-curly-spacing": ["error", "always"],
"prettier/prettier": ["error", { "tabWidth": 4, "printWidth": 120, "semi": false }],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"prefer-template": "error",
"no-irregular-whitespace": "off",
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"quotes": ["error", "double", { "allowTemplateLiterals": true, "avoidEscape": true }],
"semi": ["error", "never"],
"unicorn/no-await-expression-member": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/template-indent": "off",
"tsdoc/syntax": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "as" }],
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"@typescript-eslint/restrict-template-expressions": ["error", { "allowNullish": true }],
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "none",
"requireLast": false
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/ban-ts-ignore": "off"
}
},
{
"files": ["*.js", "*.[cm]js", "*.jsx"],
"env": {
"es2020": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:unicorn/recommended", "prettier", "plugin:prettier/recommended"],
"rules": {
"capitalized-comments": "off",
"new-cap": "off",
"no-mixed-operators": "off",
"object-curly-spacing": ["error", "always"],
"prettier/prettier": ["error", { "tabWidth": 4, "printWidth": 120, "semi": false }],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"prefer-template": "error",
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
"quotes": ["error", "double", { "allowTemplateLiterals": true, "avoidEscape": true }],
"semi": ["error", "never"],
"unicorn/prevent-abbreviations": "off"
}
}
]
}