-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
49 lines (49 loc) · 1.29 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
45
46
47
48
49
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "react-hooks"],
"extends": [
"airbnb",
"prettier",
"prettier/react",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prettier/prettier": [1],
"react-hooks/rules-of-hooks": [2],
"react-hooks/exhaustive-deps": [0],
"react/jsx-filename-extension": [1, { "extensions": [".tsx"] }],
"react/jsx-props-no-spreading": [0],
"react/prop-types": [0],
"import/extensions": [0],
"jsx-a11y/anchor-is-valid": [0],
"@typescript-eslint/explicit-function-return-type": [0],
"@typescript-eslint/explicit-module-boundary-types": [0],
"@typescript-eslint/member-delimiter-style": [0],
"no-underscore-dangle": [0],
"no-param-reassign": [
2,
{
"props": true,
"ignorePropertyModificationsFor": ["draft", "draftState"]
}
],
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1]
},
"overrides": [
{
"files": ["api/**/*.*"],
"rules": {
"no-console": [0]
}
}
],
"ignorePatterns": [
"node_modules/**",
"gatsby-*",
"tailwind.config.js",
"_this_is_virtual_fs_path_/**"
]
}