Available Rules
The --fix option on the command line automatically fixes problems reported by rules which have a wrench 🔧 below.
The rules with the following star ⭐ are included in the plugin.configs.recommended config.
Module Interop Rules
| Rule ID | Description | Fixable | RECOMMENDED |
|---|---|---|---|
| module-interop/no-import-cjs | disallow importing CommonJS modules | ||
| module-interop/no-require-esm | disallow require(esm) | ||
| module-interop/prefer-json-modules | enforce json imports to have the {type: "json"} attribute. | ⭐ |