sonarjs/no-wildcard-import
eslint-plugin-sonarjs
No autofix
eslint.config.js
export default [
{
rules: {
"sonarjs/no-wildcard-import": "error",
},
},
];import * as Imported from "aModule"; // NoncompliantThe documentation shows no correct example for this rule.
Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
sonarjs/no-wildcard-import
eslint-plugin-sonarjs
export default [
{
rules: {
"sonarjs/no-wildcard-import": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Variables declared with "var" should be declared before they are used
Arithmetic operators should only have numbers as operands
Unused function parameters should be removed
Arithmetic operations should not result in "NaN"
Local variables should not be declared and then immediately returned or thrown