-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 1.53 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json",
"sourceType": "module"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "./tsconfig.json"
}
},
"import-x/resolver": {
"typescript": true,
"node": true
}
},
"plugins": ["import", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:import-x/recommended",
"plugin:import-x/typescript",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"airbnb",
"airbnb-typescript",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": ["error", { "allowDeclarations": true }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowNumber": true
}
],
"import/no-extraneous-dependencies": [
"error",
{
"optionalDependencies": true
}
],
"import/order": "off",
"import/prefer-default-export": "off",
"typescript-sort-keys/interface": "off"
},
"ignorePatterns": ["node_modules", "dist", "prettier.config.js"]
}