-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
93 lines (93 loc) · 2.76 KB
/
.eslintrc
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"project": "./tsconfig.json",
"ecmaFeatures": { "jsx": true }
},
"env": { "es2021": true, "browser": true },
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:eslint-comments/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"plugin:@next/next/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/consistent-type-imports": ["error", { "disallowTypeAnnotations": false }],
"consistent-return": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"],
"pathGroupsExcludedImportTypes": ["react"],
"pathGroups": [
{
"group": "builtin",
"pattern": "react",
"position": "before"
},
{
"pattern": "@/**",
"group": "internal"
}
],
"alphabetize": { "order": "asc" },
"newlines-between": "always"
}
],
"max-len": [
"warn",
{
"code": 100,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreTemplateLiterals": true
}
],
"no-shadow": "error",
"no-param-reassign": "warn",
"no-restricted-exports": "off",
"no-template-curly-in-string": "off",
"no-console": ["warn", { "allow": ["info", "warn", "error"] }],
"react/prop-types": "off",
"react/jsx-indent": "off",
"react/button-has-type": "off",
"react/react-in-jsx-scope": "off",
"react/no-array-index-key": "warn",
"react/no-unused-prop-types": "off",
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-no-useless-fragment": ["error", { "allowExpressions": true }],
"react/function-component-definition": [
"error",
{ "namedComponents": ["arrow-function"], "unnamedComponents": "arrow-function" }
],
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "off",
"unicorn/no-null": "off",
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-var-requires": "off",
"unicorn/prefer-module": "off"
}
}
]
}