-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
28 lines (26 loc) · 1.04 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["airbnb", "airbnb/hooks", "eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:@next/next/recommended"],
"plugins": ["import", "react", "jsx-a11y"],
"rules": {
// Using underscores is a common Javascript convention and for certain databases it might be overly strict
"no-underscore-dangle":"off",
// Helps avoid conflicts and allow flexibility
"linebreak-style": "off",
// This choice is a matter of personal or team preference
"double-quoted": "off",
// Allows flexibility in the use for string literals
"quotes":"off",
// Prefer JSDoc notation
"react/prop-types": "off",
// For react hooks to not assume dependencies, mount/unmount
"react-hooks/exhaustive-deps": "off",
// Allowing Arrow functions Components
"react/function-component-definition": "off",
// For Arrow functions do not always return a value.
"consistent-return": "off"
}
}