Skip to content

Commit 9c7e3d3

Browse files
committed
chore(eslint): comments in config
1 parent 7471d0a commit 9c7e3d3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

eslint.config.mjs

+7-3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const config = tseslint.config(
6262
},
6363

6464
rules: {
65+
// fix no-unused-vars errors based on `noUnusedVarsPattern`
6566
'@typescript-eslint/no-unused-vars': [
6667
'error',
6768
{
@@ -75,22 +76,24 @@ const config = tseslint.config(
7576
},
7677
],
7778

78-
'@typescript-eslint/only-throw-error': 'off',
79-
79+
// override functional rules
8080
'functional/immutable-data': [
8181
'error',
8282
{
8383
ignoreImmediateMutation: true,
8484
},
8585
],
86-
8786
'functional/prefer-immutable-types': 'off',
8887
'functional/type-declaration-immutability': 'off',
88+
89+
// eslint rules
8990
'no-var': 'error',
9091
'no-param-reassign': 'error',
9192
'no-sequences': 'error',
9293
'no-console': 'error',
9394
'prefer-const': 'error',
95+
96+
// disabled @guardian/eslint-config rules, we should enable some of them later
9497
'import/order': 'off',
9598
'@typescript-eslint/consistent-type-imports': 'off',
9699
'@typescript-eslint/no-unsafe-assignment': 'off',
@@ -108,6 +111,7 @@ const config = tseslint.config(
108111
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
109112
'import/no-named-as-default-member': 'off',
110113
'import/no-cycle': 'off',
114+
'@typescript-eslint/only-throw-error': 'off',
111115
},
112116
},
113117
{

0 commit comments

Comments
 (0)