forked from rvion/CushyStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
31 lines (31 loc) · 1006 Bytes
/
.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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/semi": "off",
"curly": "off",
"eqeqeq": "off",
"no-throw-literal": "warn",
"semi": "off",
"@typescript-eslint/prefer-as-const": "off",
// https://typescript-eslint.io/rules/no-floating-promises
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-this-alias": "off", // sometimes, we need to preserve this.
"@typescript-eslint/explicit-function-return-type": "error",
"consistent-this": [2, "self", "that"] // as a paliative solution to above permissive rule
},
"ignorePatterns": [
//
"out",
"dist",
"release",
"**/*.d.ts"
]
}