eslint-plugin-esm
Version:
ESLint plugin for linting ESM (import/export syntax)
30 lines (23 loc) • 472 B
Markdown
<!-- prettier-ignore-start -->
Disallow renaming the named-exports.
```ts
let foo=1; export {foo as bar}
let foo=1; export {foo as default}
export {foo as bar} from './foo'
export {default as foo} from './foo'
export {type Foo as Bar}
export type {Foo as Bar}
```
```ts
let foo=1; export {foo}
export let foo
export const foo = bar
export default foo
export default {}
export {}
```
<!-- prettier-ignore-end -->