-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
76 lines (76 loc) · 2.4 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
73
74
75
76
{
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["tsconfig.json"]
},
"plugins": ["import", "simple-import-sort"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"import/prefer-default-export": "off",
"simple-import-sort/imports": [
"error",
{
"groups": [
// Side effect imports.
["^\\u0000"],
// Node.js builtins prefixed with `node:`.
["react", "^next"],
["ui-core"],
// Packages.
// Things that start with a letter (or digit or underscore), or `@` followed by a letter.
["^@?\\w"],
// Absolute imports and other imports such as Vue-style `@/foo`.
// Anything not matched in another group.
["^"],
// Relative imports.
// Anything that starts with a dot.
["^\\."]
]
}
],
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/no-array-index-key": "off",
"react-hooks/exhaustive-deps": "warn",
"import/extensions": "off",
"consistent-return": "warn",
"no-else-return": 1,
"space-unary-ops": 2,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"no-tabs": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["function", "variable"],
"format": ["camelCase", "PascalCase", "snake_case", "UPPER_CASE"],
"leadingUnderscore": "allowSingleOrDouble"
}
],
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-confusing-void-expression": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"eqeqeq": "warn"
}
}