eslint-plugin-esm
Version:
ESLint plugin for linting ESM (import/export syntax)
30 lines (23 loc) • 487 B
Markdown
<!-- prettier-ignore-start -->
Disallow `export {}`.
```ts
export {};
console.log(123); export {};
export default {}; export {};
export {} from 'foo';
export {} from './foo';
```
```ts
var name = 123; export {name as age};
const name = {}; export {name};
export const name = {};
export default {};
var foo = 213; export {foo as default};
export {default} from 'foo';
export * as foo from 'foo';
```
<!-- prettier-ignore-end -->