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
export { default } from ...
As the title states. Fails when re-exporting the default from another module.
export { default } from 'another-module';
This feels like it should pass, since this is not a named export. https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js#L67
The text was updated successfully, but these errors were encountered:
You're right, it definitely should be acceptable. This seems like a bug in eslint itself, given https://eslint.org/docs/rules/no-restricted-exports#default-exports
Can you file that on eslint?
Sorry, something went wrong.
no-restricted-exports
export { default, ... } from ...
Filed! :) eslint/eslint#15617
just FTR, a quick workaround for me was adding
"no-restricted-exports": ["error", { "restrictedNamedExports": [ "then" ] }],
to rules object in my .eslintrc.json file
rules
.eslintrc.json
it would have been quicker to just add
"no-restricted-exports": "off"
but I just wanted to remove the default keyword and keep the rest of the restricted
default
No branches or pull requests
As the title states. Fails when re-exporting the default from another module.
This feels like it should pass, since this is not a named export. https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js#L67
The text was updated successfully, but these errors were encountered: