forked from labelflow/labelflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
54 lines (54 loc) · 1.31 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
{
"extends": [
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"func-names": ["error", "always"],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/no-array-index-key": "warn",
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "always"],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"setup-tests.ts",
"cypress/**/*.ts",
"**/*.@(test|stories|fixtures).ts?(x)",
"**/@(__tests__|__stories__|tests|stories|scripts)/**/*.ts?(x)"
]
}
]
},
"overrides": [
{
"files": ["cypress/**/*.ts"],
"rules": {
"import/no-extraneous-dependencies": "off"
}
},
{
"files": ["**/*.stories.ts?(x)", "**/__stories__/**/*.ts?(x)"],
"rules": {
"no-console": "off",
"no-alert": "off"
}
},
{
"files": ["**/*.test.ts?(x)", "**/__tests__/**/*.ts?(x)"],
"rules": {
"import/first": "off",
"import/order": "off"
}
}
],
"parserOptions": {
"project": "./tsconfig.json"
}
}