-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
39 lines (39 loc) · 1.04 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json",
"./demo/tsconfig.json"
]
},
"plugins": [
"react",
"import",
"@typescript-eslint"
],
"extends": [
"airbnb-typescript-prettier",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint"
],
"rules": {
// "import/no-unused-modules": [1, {"unusedExports": true}],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["**/*.test.js", "**/*.spec.js", "src/setupTests.ts"]}],
// don't need this because typescript takes care of it
"import/no-unresolved": "off",
// warn instead of error
"prettier/prettier": "warn",
// rules that I don't like
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"no-plusplus": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
}