-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
36 lines (36 loc) · 918 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
36
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: ["airbnb", "airbnb/hooks", "plugin:prettier/recommended"],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react", "prettier"],
rules: {
"no-plusplus": ["error", { allowForLoopAfterthoughts: true }],
semi: "warn",
"no-unused-vars": "warn",
"import/no-extraneous-dependencies": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/self-closing-comp": "off",
"react/jsx-filename-extension": ["warn", { extensions: [".js"] }],
"no-param-reassign": 0,
"react-hooks/exhaustive-deps": "off",
"react/function-component-definition": [
2,
{ namedcomponents: "arrow-function" },
],
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
},
};