-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
79 lines (77 loc) · 1.99 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
69
70
71
72
73
74
75
76
77
78
79
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["import", "@typescript-eslint", "prettier"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/order": ["warn", { "alphabetize": { "order": "asc" } }],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.jsx",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/*.spec.js",
"**/*.stories.jsx",
"**/*.stories.ts",
"**/*.stories.tsx",
"**/*.stories.js"
]
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// '@typescript-eslint/camelcase': 'off',
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": "off",
"no-unused-expressions": [
"error",
{ "allowShortCircuit": true, "allowTernary": true }
],
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-unused-vars": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"no-case-declarations": "off",
"no-param-reassign": "off",
"no-use-before-define": "off",
"radix": "off",
"consistent-return": "off",
"guard-for-in": "off"
}
}