import/no-amd
eslint-plugin-import
No autofix
eslint.config.js
import importPlugin from "eslint-plugin-import";
export default [
{
plugins: { import: importPlugin },
rules: {
"import/no-amd": "error",
},
},
];define(["a", "b"], function (a, b) { /* ... */ })
require(["b", "c"], function (b, c) { /* ... */ })The documentation shows no correct example for this rule.
Examples from the ESLint documentation.
import/no-amd
eslint-plugin-import
import importPlugin from "eslint-plugin-import";
export default [
{
plugins: { import: importPlugin },
rules: {
"import/no-amd": "error",
},
},
];import/no-amd
import plugin · restriction
{
"plugins": [
"import"
],
"rules": {
"import/no-amd": "error"
}
}Biome does not have this rule.
Forbid import of modules using absolute paths.
Forbid the use of mutable exports with var or let.
Forbid the use of extraneous packages.
Forbid webpack loader syntax in imports.
Ensure all imports appear before other statements.