Skip to content

Commit a9f02eb

Browse files
committed
updated eslint config file
1 parent 408798b commit a9f02eb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

eslint.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export default [
4646
},
4747
rules: {
4848
...reactHooks.configs.recommended.rules,
49-
'@typescript-eslint/no-unused-expressions':['error',{ 'allowShortCircuit': true , 'allowTernary': true,}],
49+
'@typescript-eslint/no-empty-object-type': "off",
50+
'@typescript-eslint/no-unsafe-function-type': 'off',
51+
'@typescript-eslint/no-unused-expressions':['error',{ allowShortCircuit: true , allowTernary: true }],
5052
'@typescript-eslint/ban-ts-comment': 'off',
5153
'@typescript-eslint/adjacent-overload-signatures': 'error',
5254
'@typescript-eslint/array-type': 'error',
@@ -66,11 +68,12 @@ export default [
6668
'@typescript-eslint/no-unused-vars': [
6769
'error',
6870
{
69-
argsIgnorePattern: '^_'
71+
argsIgnorePattern: '^_',
72+
caughtErrors: 'none'
7073
}
7174
],
7275
'@typescript-eslint/no-use-before-define': 'off',
73-
'@typescript-eslint/no-var-requires': 'off',
76+
'@typescript-eslint/no-require-imports': 'off',
7477
'@typescript-eslint/prefer-for-of': 'error',
7578
'@typescript-eslint/prefer-function-type': 'error',
7679
'@typescript-eslint/prefer-namespace-keyword': 'error',

0 commit comments

Comments
 (0)