-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
52 lines (52 loc) · 1.5 KB
/
.eslintrc.cjs
File metadata and controls
52 lines (52 loc) · 1.5 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
45
46
47
48
49
50
51
52
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"airbnb-base",
"airbnb-typescript/base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parserOptions: { project: "./tsconfig.base.json" },
rules: {
"no-nested-ternary": "off",
"no-useless-escape": "off",
"no-console": "off",
"consistent-return": "off",
"import/prefer-default-export": "off",
"one-var": "off",
"no-restricted-syntax": [
"error",
{
selector: "LabeledStatement",
message:
"Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.",
},
{
selector: "WithStatement",
message:
"`with` is disallowed in strict mode because it makes code impossible to predict and optimize.",
},
],
"arrow-body-style": "off",
"no-await-in-loop": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/quotes": ["warn", "double", { avoidEscape: true }],
"@typescript-eslint/return-await": "off",
"@typescript-eslint/no-shadow": "off",
},
overrides: [
{
files: ["*.spec.ts"],
rules: {
"import/no-extraneous-dependencies": "off",
},
},
],
};