-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (35 loc) · 931 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
plugins: ["react", "@typescript-eslint", "prettier"],
extends: [
"airbnb",
"airbnb/hooks",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
settings: {
react: { version: "detect" },
},
rules: {
"react/prop-types": "off",
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"no-console": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"import/no-unresolved": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/no-extraneous-dependencies": "off",
},
};