12
12
███████████████████████████████████████████████████████████████████████████████
13
13
███████████████████████████████████████████████████████████████████████████████
14
14
*/
15
- // @ts -check
16
15
17
16
import eslint from '@eslint/js'
18
17
import tseslint from 'typescript-eslint'
19
18
20
19
export default tseslint . config (
20
+ // ===== ESLINT RULES =====
21
21
{
22
22
...eslint . configs . recommended ,
23
23
rules : {
@@ -53,5 +53,29 @@ export default tseslint.config(
53
53
'guard-for-in' : 0
54
54
}
55
55
} ,
56
- ...tseslint . configs . recommended
56
+
57
+ // ===== TSESLINT RULES =====
58
+ ...tseslint . configs . stylisticTypeChecked ,
59
+ ...tseslint . configs . recommendedTypeChecked ,
60
+ {
61
+ languageOptions : {
62
+ parserOptions : {
63
+ projectService : true ,
64
+ tsconfigRootDir : import . meta. dirname
65
+ }
66
+ }
67
+ } ,
68
+ // ...tseslint.configs.recommended,
69
+ // ...tseslint.configs.strictTypeChecked,
70
+ //...tseslint.configs.stylisticTypeChecked
71
+
72
+ {
73
+ rules : {
74
+ // '@typescript-eslint/no-explicit-any': 'off',
75
+ // '@typescript-eslint/no-unused-vars': 'off',
76
+ // '@typescript-eslint/no-var-requires': 'off',
77
+ // '@typescript-eslint/explicit-module-boundary-types': 'off',
78
+ // '@typescript-eslint/no-empty-function ': 'off',
79
+ }
80
+ }
57
81
)
0 commit comments