-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
36 lines (36 loc) · 1.04 KB
/
.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 = {
parser: "@babel/eslint-parser",
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:prettier/recommended", "airbnb", "preact"],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"prettier/prettier": "error",
"linebreak-style": ["error", "unix"],
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"object-curly-spacing": ["error", "always"],
quotes: ["error", "double"],
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"max-len": ["error", { code: 120, tabWidth: 2 }],
"comma-dangle": "off",
"react/jsx-props-no-spreading": "off",
"react/static-property-placement": "off",
"react/no-unused-prop-types": "off",
"react/forbid-foreign-prop-types": "off",
"react-hooks/rules-of-hooks": "off",
"react/jsx-key": "off",
"react/prefer-stateless-function": "off",
},
};