Skip to content

Commit 459c56b

Browse files
committed
Enable a few eslint rules
1 parent fcb1ac8 commit 459c56b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

eslint.config.mjs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import preferArrow from 'eslint-plugin-prefer-arrow';
55

66
export default [
77
{ ignores: ['**/*.js', '**/*.mjs', '**/*.cjs', '.vscode-test/'] },
8-
...tsPlugin.configs['flat/recommended'],
98
...tsPlugin.configs['flat/recommended-type-checked'],
9+
// TODO: Consider extending from `strict-type-checked` and/or `stylistic-type-checked`
1010
{
1111
files: ['**/*.ts'],
1212
plugins: {
@@ -30,8 +30,6 @@ export default [
3030
'@typescript-eslint/ban-ts-comment': 'error',
3131
'@typescript-eslint/consistent-type-assertions': 'error',
3232
'@typescript-eslint/dot-notation': 'error',
33-
'@typescript-eslint/explicit-function-return-type': 'off',
34-
'@typescript-eslint/explicit-module-boundary-types': 'off',
3533
'@typescript-eslint/naming-convention': [
3634
'error',
3735
{
@@ -81,7 +79,6 @@ export default [
8179
'@typescript-eslint/no-unsafe-return': 'error',
8280
'@typescript-eslint/no-unused-expressions': 'error',
8381
'@typescript-eslint/no-unused-vars': 'off',
84-
'@typescript-eslint/no-use-before-define': 'off',
8582
'@typescript-eslint/no-var-requires': 'error',
8683
'@typescript-eslint/prefer-as-const': 'error',
8784
'@typescript-eslint/prefer-for-of': 'error',

0 commit comments

Comments
 (0)