n/no-missing-import
eslint-plugin-n
No autofixRecommended
eslint.config.js
import typoFile from "./typo-file"; /*ERROR: "./typo-file" is not found.*/
import typoModule from "typo-module"; /*ERROR: "typo-module" is not found.*/import existingFile from "./existing-file";
import existingModule from "existing-module";Examples from the ESLint documentation.
Disallow require() expressions which import extraneous modules
Disallow require() expressions which import missing modules
Disallow import declarations which import private modules
Disallow require() expressions which import private modules
n/no-missing-import
eslint-plugin-n
Oxlint does not have this rule.
Biome does not have this rule.
import n from "eslint-plugin-n";
export default [
{
plugins: { n },
rules: {
"n/no-missing-import": "error",
},
},
];