Skip to content

Commit e331f97

Browse files
committed
test: don't test for prefer-const in .js files
Previously, the `prefer-const` rule is from '@typescript-eslint/recommended`, which is enabled for all files; In @typescript-eslint v3, '@typescript-eslint/recommended` inherits this rule by extending from `@typescript-eslint/eslint-recommended`, which, only applies to `.ts/.tsx` files
1 parent d0761f6 commit e331f97

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/index.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@ test('should not override eslint:recommended rules for normal js files', async (
4949
expect(stdout).toMatch('no-const-assign')
5050

5151
// errors in .js file
52-
expect(stdout).toMatch('prefer-const')
5352
expect(stdout).toMatch('no-undef')
5453
})

0 commit comments

Comments
 (0)