Skip to content

Commit 7b068b1

Browse files
committed
ci: update eslint and prettier
1 parent f4f3486 commit 7b068b1

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.eslintrc.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@ module.exports = {
99
sourceType: 'module',
1010
},
1111
rules: {
12-
"@typescript-eslint/explicit-function-return-type": "off",
13-
}
12+
"@typescript-eslint/explicit-function-return-type": 0,
13+
14+
},
15+
overrides: [
16+
{
17+
files: ['*.ts', '*.tsx'],
18+
parser: '@typescript-eslint/parser',
19+
plugins: ['@typescript-eslint'],
20+
extends: ['plugin:@typescript-eslint/recommended'],
21+
rules: {
22+
'@typescript-eslint/no-explicit-any': 0,
23+
'@typescript-eslint/ban-types': 0,
24+
'@typescript-eslint/consistent-type-imports': 'error',
25+
'@typescript-eslint/explicit-module-boundary-types': 0,
26+
'@typescript-eslint/no-empty-function': 0,
27+
'@typescript-eslint/no-non-null-assertion': 0,
28+
'@typescript-eslint/no-unused-vars': [
29+
'error',
30+
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true },
31+
],
32+
'@typescript-eslint/ban-ts-comment': 0,
33+
}
34+
},
35+
]
1436
};

0 commit comments

Comments
 (0)