-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
113 lines (113 loc) · 3.08 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"env": {
"browser": true,
"es2022": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": true,
"tsconfigRootDir": "__dirname"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"plugins": [
"react",
"prettier",
"tailwindcss",
"jsx-a11y",
"promise",
"import",
"unicorn",
"react-refresh",
"simple-import-sort"
],
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"standard-with-typescript",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/stylistic",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:unicorn/recommended",
"plugin:security/recommended",
"plugin:import/typescript",
"plugin:tailwindcss/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/default": "off",
"import/named": "off",
"import/namespace": "off",
"import/no-cycle": "off",
"import/no-deprecated": "off",
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"import/no-unused-modules": "off",
"import/no-unresolved": "off",
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "warn",
"n/no-missing-import": "off",
"n/no-extraneous-import": [
"error",
{
"allowModules": [
"next-auth"
]
}
],
"no-unused-vars": "warn",
"no-unused-expressions": [
"error",
{
"allowTernary": true
}
],
"prettier/prettier": "warn",
"promise/catch-or-return": "error",
"promise/no-new-statics": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/avoid-new": "warn",
"promise/no-callback-in-promise": "warn",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"promise/always-return": "off",
"promise/no-native": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-refresh/only-export-components": "off",
"simple-import-sort/imports": "off",
"simple-import-sort/exports": "off",
"unicorn/expiring-todo-comments": "off",
"unicorn/filename-case": "off",
"unicorn/no-useless-undefined": "warn",
"unicorn/prevent-abbreviations": "warn",
"unicorn/no-negated-condition": "off",
"tailwindcss/no-custom-classname": "off"
}
}