-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
55 lines (55 loc) · 1.88 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"env": {
"node": true,
"es2021": true,
"browser": true
},
"globals": {
"React": true
},
"extends": [
"airbnb",
"prettier",
"eslint:recommended",
"next/core-web-vitals",
"next/typescript"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": { "jsx": true }
},
"plugins": ["prettier", "@typescript-eslint"],
"rules": {
"camelcase": "off",
"no-shadow": "off",
"arrow-body-style": "off",
"import/extensions": "off",
"curly": ["error", "multi"],
"react/button-has-type": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": "off",
"import/prefer-default-export": "off",
"semi": 0, // let it handle by prettier
"no-underscore-dangle": "off",
"react/function-component-definition": "off",
"indent": "off", // let it handle by prettier
"max-len": "off", // let it handle by prettier
"comma-dangle": "off", // let it handle by prettier
"no-redeclare": "off", // let it handle by TypeScript
"react/jsx-indent": "off", // let it handle by prettier
"no-unused-vars": "off", // let it handle by TypeScript
"prettier/prettier": ["error", { "endOfLine": "auto" }],
"operator-linebreak": "off", // let it handle by prettier
"react/jsx-props-no-spreading": "off",
"object-curly-newline": "off", // let it handle by prettier
"function-paren-newline": "off", // let it handle by prettier
"implicit-arrow-linebreak": "off", // let it handle by prettier
"react/require-default-props": "off", // let it handle by TypeScript
"nonblock-statement-body-position": "off", // let it handle by prettier
"react/jsx-one-expression-per-line": "off", // let it handle by prettier
"@typescript-eslint/no-explicit-any": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/no-array-index-key": "off"
}
}