Skip to content

ntnyq/no-duplicate-exports

Disallow duplicate exports statement.

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports multiple same export all statement.

ts
export * from './foobar'

export * as foobar from './foobar'

export { bar, foo } from './foobar'

export type * from './foobar'

export type * as Foobar from './foobar'
correct
ts













incorrect

🔧 Options

ts
export type Options = [
  {
    style?: 'inline' | 'separate'
  },
]

Default to separate.

🚀 Version

This rule was introduced in eslint-plugin-ntnyq v0.8.1

🔍 Implementation