-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy path.eslintrc
More file actions
44 lines (44 loc) · 1.27 KB
/
.eslintrc
File metadata and controls
44 lines (44 loc) · 1.27 KB
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
{
"env": {
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-import"],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"eqeqeq": "error",
"no-var": "error",
"no-alert": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-use-before-define": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"import/no-anonymous-default-export": [
"warn",
{
"allowArray": false,
"allowArrowFunction": true,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowCallExpression": true,
"allowLiteral": false,
"allowObject": false
}
],
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error"
}
}