Skip to content

Commit ea4ac41

Browse files
committed
test(prefer-const): correct tests
1 parent 88ffc22 commit ea4ac41

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/eslint-plugin-svelte/tests/src/rules/prefer-const.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type InvalidTestCases = ReturnType<typeof loadTestCases>['invalid'];
88
const tester = new RuleTester({
99
languageOptions: {
1010
ecmaVersion: 2020,
11-
sourceType: 'module'
11+
sourceType: 'script'
1212
},
1313
plugins: {
1414
custom: {
@@ -73,8 +73,7 @@ const ESLINT_RULE_TEST_CASES = {
7373
'foo();'
7474
].join('\n'),
7575
'/*exported a*/ let a; function init() { a = foo(); }',
76-
// TODO: Skipping this test until https://github.com/typescript-eslint/typescript-eslint/issues/10426
77-
// '/*exported a*/ let a = 1',
76+
'/*exported a*/ let a = 1',
7877
'let a; if (true) a = 0; foo(a);',
7978
`
8079
(function (a) {

0 commit comments

Comments
 (0)