Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etc/no-deprecated: support detection within exports #43

Open
Hotell opened this issue Mar 16, 2022 · 0 comments
Open

etc/no-deprecated: support detection within exports #43

Hotell opened this issue Mar 16, 2022 · 0 comments

Comments

@Hotell
Copy link
Contributor

Hotell commented Mar 16, 2022

would it be possible to add export detection capabilities ?

context:
Currently we are using https://github.com/gund/eslint-plugin-deprecation which is terribly slow. etc plugin provides much better performance, but in order to be able to migrate we would need to add this functionality.

Current Behaviour

// src/foo.ts

// @deprecated use world instead
export const hello = 'world'

export const world = 'this one'

// src/index.ts

// 🚨 No error
export {hello} from './foo'
// ✅ No error
export {world} from './foo'

New Behaviour

// src/foo.ts

// @deprecated use world instead
export const hello = 'world'

export const world = 'this one'

// src/index.ts

// ✅ etc/no-deprecated Errors
export {hello} from './foo'
// ✅ No error
export {world} from './foo'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant