Skip to content

Commit

Permalink
Update ESLint to v8.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 5, 2022
1 parent bd6c163 commit ed333f6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 44 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"ava": "^3.15.0",
"chalk": "^5.0.0",
"enquirer": "^2.3.6",
"eslint": "^8.5.0",
"eslint": "^8.6.0",
"eslint-ava-rule-tester": "^4.0.0",
"eslint-plugin-eslint-plugin": "^4.1.0",
"eslint-remote-tester": "^2.0.1",
Expand Down
83 changes: 40 additions & 43 deletions test/prefer-export-from.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -274,50 +274,47 @@ test.snapshot({
export {namespace};
export default namespace;
`,
// TODO: Use default parser when it supports
// String literal specifier
...[
outdent`
import {'foo' as foo} from 'foo';
export default foo;
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo};
`,
outdent`
import {'foo' as foo} from 'foo';
export const bar = foo;
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo as 'foo'};
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo as "foo"};
`,
outdent`
import {'fo\\u{20}o' as foo} from 'foo';
export {foo as "fo o"};
`,
outdent`
import {'fo\\no' as foo} from 'foo';
export {foo as "fo\\u000ao"};
`,
outdent`
import {'default' as foo} from 'foo';
export {foo};
`,
outdent`
import {'default' as foo} from 'foo';
export default foo;
`,
outdent`
import {'*' as foo} from 'foo';
export {foo};
`,
].map(code => ({code, parser: parsers.babel})),
outdent`
import {'foo' as foo} from 'foo';
export default foo;
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo};
`,
outdent`
import {'foo' as foo} from 'foo';
export const bar = foo;
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo as 'foo'};
`,
outdent`
import {'foo' as foo} from 'foo';
export {foo as "foo"};
`,
outdent`
import {'fo\\u{20}o' as foo} from 'foo';
export {foo as "fo o"};
`,
outdent`
import {'fo\\no' as foo} from 'foo';
export {foo as "fo\\u000ao"};
`,
outdent`
import {'default' as foo} from 'foo';
export {foo};
`,
outdent`
import {'default' as foo} from 'foo';
export default foo;
`,
outdent`
import {'*' as foo} from 'foo';
export {foo};
`,
],
});

Expand Down

0 comments on commit ed333f6

Please sign in to comment.