Skip to content

Commit d9fd664

Browse files
authored
Update ESLint to v8.6.0 (#1681)
1 parent 7a4bc97 commit d9fd664

File tree

2 files changed

+42
-45
lines changed

2 files changed

+42
-45
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"ava": "^3.15.0",
7272
"chalk": "^5.0.0",
7373
"enquirer": "^2.3.6",
74-
"eslint": "^8.5.0",
74+
"eslint": "^8.6.0",
7575
"eslint-ava-rule-tester": "^4.0.0",
7676
"eslint-plugin-eslint-plugin": "^4.1.0",
7777
"eslint-remote-tester": "^2.0.1",

test/prefer-export-from.mjs

Lines changed: 41 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import outdent from 'outdent';
2-
import {getTester, parsers} from './utils/test.mjs';
2+
import {getTester} from './utils/test.mjs';
33

44
const {test} = getTester(import.meta);
55

@@ -274,50 +274,47 @@ test.snapshot({
274274
export {namespace};
275275
export default namespace;
276276
`,
277-
// TODO: Use default parser when it supports
278277
// String literal specifier
279-
...[
280-
outdent`
281-
import {'foo' as foo} from 'foo';
282-
export default foo;
283-
`,
284-
outdent`
285-
import {'foo' as foo} from 'foo';
286-
export {foo};
287-
`,
288-
outdent`
289-
import {'foo' as foo} from 'foo';
290-
export const bar = foo;
291-
`,
292-
outdent`
293-
import {'foo' as foo} from 'foo';
294-
export {foo as 'foo'};
295-
`,
296-
outdent`
297-
import {'foo' as foo} from 'foo';
298-
export {foo as "foo"};
299-
`,
300-
outdent`
301-
import {'fo\\u{20}o' as foo} from 'foo';
302-
export {foo as "fo o"};
303-
`,
304-
outdent`
305-
import {'fo\\no' as foo} from 'foo';
306-
export {foo as "fo\\u000ao"};
307-
`,
308-
outdent`
309-
import {'default' as foo} from 'foo';
310-
export {foo};
311-
`,
312-
outdent`
313-
import {'default' as foo} from 'foo';
314-
export default foo;
315-
`,
316-
outdent`
317-
import {'*' as foo} from 'foo';
318-
export {foo};
319-
`,
320-
].map(code => ({code, parser: parsers.babel})),
278+
outdent`
279+
import {'foo' as foo} from 'foo';
280+
export default foo;
281+
`,
282+
outdent`
283+
import {'foo' as foo} from 'foo';
284+
export {foo};
285+
`,
286+
outdent`
287+
import {'foo' as foo} from 'foo';
288+
export const bar = foo;
289+
`,
290+
outdent`
291+
import {'foo' as foo} from 'foo';
292+
export {foo as 'foo'};
293+
`,
294+
outdent`
295+
import {'foo' as foo} from 'foo';
296+
export {foo as "foo"};
297+
`,
298+
outdent`
299+
import {'fo\\u{20}o' as foo} from 'foo';
300+
export {foo as "fo o"};
301+
`,
302+
outdent`
303+
import {'fo\\no' as foo} from 'foo';
304+
export {foo as "fo\\u000ao"};
305+
`,
306+
outdent`
307+
import {'default' as foo} from 'foo';
308+
export {foo};
309+
`,
310+
outdent`
311+
import {'default' as foo} from 'foo';
312+
export default foo;
313+
`,
314+
outdent`
315+
import {'*' as foo} from 'foo';
316+
export {foo};
317+
`,
321318
],
322319
});
323320

0 commit comments

Comments
 (0)