-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.6 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:perfectionist/recommended-natural",
"prettier"
],
"overrides": [
{
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:jest-formatting/strict"
],
"files": ["**/*.{spec,test}.{js,ts}"],
"plugins": ["jest", "jest-formatting"],
"rules": {
"@typescript-eslint/unbound-method": "off"
}
}
],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "import", "perfectionist"],
"rules": {
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"format": ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"],
"leadingUnderscore": "allow",
"selector": "variable"
}
],
"@typescript-eslint/no-import-type-side-effects": "error",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-console": ["warn", { "allow": ["error"] }]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"typescript": true
}
}
}