@@ -62,6 +62,7 @@ const config = tseslint.config(
62
62
} ,
63
63
64
64
rules : {
65
+ // fix no-unused-vars errors based on `noUnusedVarsPattern`
65
66
'@typescript-eslint/no-unused-vars' : [
66
67
'error' ,
67
68
{
@@ -75,22 +76,24 @@ const config = tseslint.config(
75
76
} ,
76
77
] ,
77
78
78
- '@typescript-eslint/only-throw-error' : 'off' ,
79
-
79
+ // override functional rules
80
80
'functional/immutable-data' : [
81
81
'error' ,
82
82
{
83
83
ignoreImmediateMutation : true ,
84
84
} ,
85
85
] ,
86
-
87
86
'functional/prefer-immutable-types' : 'off' ,
88
87
'functional/type-declaration-immutability' : 'off' ,
88
+
89
+ // eslint rules
89
90
'no-var' : 'error' ,
90
91
'no-param-reassign' : 'error' ,
91
92
'no-sequences' : 'error' ,
92
93
'no-console' : 'error' ,
93
94
'prefer-const' : 'error' ,
95
+
96
+ // disabled @guardian /eslint-config rules, we should enable some of them later
94
97
'import/order' : 'off' ,
95
98
'@typescript-eslint/consistent-type-imports' : 'off' ,
96
99
'@typescript-eslint/no-unsafe-assignment' : 'off' ,
@@ -108,6 +111,7 @@ const config = tseslint.config(
108
111
'@typescript-eslint/no-unsafe-enum-comparison' : 'off' ,
109
112
'import/no-named-as-default-member' : 'off' ,
110
113
'import/no-cycle' : 'off' ,
114
+ '@typescript-eslint/only-throw-error' : 'off' ,
111
115
} ,
112
116
} ,
113
117
{
0 commit comments