-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
46 lines (46 loc) · 1.07 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx", ".d.ts"],
"moduleDirectory": ["node_modules", "./src"]
}
}
},
"plugins": ["testing-library"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:import/typescript",
"prettier"
],
"rules": {
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".tsx", ".jsx"] }],
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-bind": "off",
"react/prop-types": "off",
"react/function-component-definition": "off"
},
"overrides": [
{
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"]
}
]
}