Enforce default imports matching file names This makes default export more structured.
pnpm add -D eslint-plugin-default-import-name
Add to your eslint.config.js
import defaultImportNameConfig from "eslint-plugin-default-import-name/config";
export default [defaultImportNameConfig()];
🔧 Automatically fixable by the --fix
CLI option.
Name | Description | 🔧 |
---|---|---|
default-import-name | enforce default imports matching file names | 🔧 |