unicorn/no-useless-re-export
eslint-plugin-unicorn
No autofix
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-useless-re-export": "error",
},
},
];export * from './foo.js';
export {foo} from './foo.js';export * from './foo.js';export * from './foo.js';
export {foo as bar} from './foo.js';
export {default} from './foo.js';Examples from the ESLint documentation.
unicorn/no-useless-re-export
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-useless-re-export": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow returning or exporting resources declared with using, including through capturing functions.
Disallow unnecessary operands in logical expressions involving boolean literals.
Prefer an options object over a boolean in .addEventListener().
Disallow unnecessary existence checks before deletion.
Prefer AggregateError when throwing collected errors.