-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
80 lines (80 loc) · 2.33 KB
/
.eslintrc
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
80
{
"extends": ["prettier", "react-app", "react-app/jest"],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier", "react", "react-hooks", "@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx", ""]
}
}
},
"overrides": [
{
"files": [
"**/*.stories.*"
],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
],
"rules": {
"import/no-unresolved": [1, {"ignore": [""] }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"": "never"
}
],
"prettier/prettier": [
"warn",
{
"singleQuote": true
}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".ts"] }],
"indent": ["error", 2, { "SwitchCase": 1, "ObjectExpression": 1, "ImportDeclaration": 1 }],
"jsx-quotes": ["error", "prefer-double"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/indent": ["error", 2],
"no-case-declarations": 0,
"@typescript-eslint/camelcase": 0,
"no-trailing-spaces": ["error"],
"curly": ["error"],
"eqeqeq": ["error"],
"no-alert": ["error"],
"no-eq-null": ["error"],
"jsx-a11y/anchor-is-valid": ["error"],
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_", "args": "all" }],
"@typescript-eslint/no-explicit-any": ["error", { "ignoreRestArgs": true }],
"object-curly-spacing": ["error", "always"],
"space-before-blocks": ["error"],
"arrow-spacing": ["error"],
"array-callback-return": "error",
"spaced-comment": ["error", "always"],
"no-console": "error",
"no-mixed-operators": "error",
"max-len": ["error", { "code": 200 }],
"one-var": ["error", "never"],
"no-unreachable": "error",
"semi": "error",
"react-hooks/exhaustive-deps": "error",
"default-param-last": "off"
},
"ignorePatterns": ["node_modules", "*.d.ts", "*.test.ts", "service-worker.js"]
}