-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
51 lines (51 loc) · 1.14 KB
/
.eslintrc.cjs
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
50
51
module.exports = {
root: true,
env: {
browser: true,
es2022: true,
},
extends: [
"airbnb",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier",
],
ignorePatterns: ["dist", ".eslintrc.cjs"],
overrides: [
{
files: ["eslintrc.{js, cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react-refresh", "prettier", "react-hooks"],
rules: {
semi: "warn",
"no-unused-vars": "warn",
"import/no-extraneous-dependencies": "off",
"react/button-has-type": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-bind": "off",
"react/self-closing-comp": "off",
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": "off",
"react/jsx-filename-extension": ["warn", { extensions: [".js", ".jsx"] }],
"no-param-reassign": 0,
"no-underscore-dangle": "off",
},
settings: {
react: {
version: "detect",
},
},
};