-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
72 lines (72 loc) · 2.44 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"overrides": [
{
"files": ["*.ts", "*.tsx"], // Your TypeScript files extension
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/warnings",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"project": ["./tsconfig.json"] // Specify it only for TypeScript files
},
"rules": {
"no-case-declarations": "off",
"no-async-promise-executor": "off",
"no-constant-condition": "off",
"no-extra-boolean-cast": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-this-alias": "off",
"no-func-assign": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-submodule-imports": "off",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/jsx-no-lambda": "off",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/prop-types": "off",
"no-console": "off",
"sort-keys": "off",
"sort-imports": "off",
"jsx-quotes": [2, "prefer-single"],
"react/react-in-jsx-scope": "off",
"import/no-named-as-default": "off",
"@next/next/no-page-custom-font": "off",
"react/display-name": "off"
}
}
],
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"es6": true
}
}