-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
68 lines (68 loc) · 1.87 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
{
"env": {
"es2021": true,
"node": true
},
"overrides": [
{
"files": ["*.test.ts"],
"rules": {
"import/no-extraneous-dependencies": "off",
"max-len": "off"
}
}
],
"extends": [
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"max-len": ["error", { "code": 80, "ignoreComments": true }],
"no-console": "off",
"import/prefer-default-export": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/require-await": "off",
"implicit-arrow-linebreak": "off",
"operator-linebreak": "off",
"no-restricted-exports": "off",
"no-nested-ternary": "off",
"@typescript-eslint/unbound-method": "off",
"prefer-template": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/ban-types": "off",
"max-classes-per-file": "off",
"no-restricted-syntax": "off",
"newline-per-chained-call": "off",
"indent": ["error", 2, {
"flatTernaryExpressions": true,
"FunctionExpression": {
"parameters": 1,
"body": 1
}
}],
"no-plusplus": "off"
},
"ignorePatterns": [
"examples/**/*",
"lib/**/*",
"esm/**/*",
"dist/**/*"
]
}