-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
44 lines (44 loc) · 1.31 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json", "./demo/tsconfig.json"]
},
"plugins": [
"react",
"import",
"@typescript-eslint",
"prettier"
],
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/recommended",
"airbnb-typescript",
// prettier must be last to avoid conflicts with "operator-linebreak", "no-confusing-arrow", "implicit-arrow-linebreak", etc.
"prettier"
],
"rules": {
"import/no-cycle": "warn",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"no-undef": "off",
"no-plusplus": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.stories.tsx", "**/*.test.ts", "**/*.test.tsx", "**/__tests__/*"]}],
// downgrade errors too warnings
"prettier/prettier": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"jsx-a11y/no-static-element-interactions": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}