-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
37 lines (37 loc) · 1 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:jest-dom/recommended"
],
"overrides": [
{
"files": ["**/*.ts?(x)"],
"rules": {
"max-len": ["error", { "code": 120}],
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"consistent-return": ["off", { "treatUndefinedAsUnspecified": false }],
"import/no-extraneous-dependencies": ["error", {"devDependencies": [
"**/*.test.tsx", "**/*.spec.tsx", "**/test-utils.tsx", "**/setupTests.ts"
]}],
"react/require-default-props": "off",
"import/extensions": [
"error", {
"ts": "never",
"tsx": "never"
}],
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error"
}
},
{
"files": ["**/*.reducer.ts"],
"rules": {
"default-param-last": "off"
}
}
]
}