-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.27 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
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next/core-web-vitals",
"plugin:react/recommended",
"prettier",
"plugin:prettier/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["react", "prettier", "@typescript-eslint"],
"rules": {
"react/react-in-jsx-scope": 0,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-explicit-any": "off",
"react/jsx-props-no-spreading": 0,
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/require-default-props": "off",
"radix": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"no-unsafe-optional-chaining": "off",
"@typescript-eslint/ban-ts-comment": "off",
"consistent-return": 1,
"no-void": 1,
"no-return-assign": 1,
"react/jsx-no-useless-fragment": "off",
"no-continue": "off",
"react/no-array-index-key": "off"
},
"globals": {
"React": "writable"
}
}