eslint-plugin-default-import-name
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

eslint-plugin-default-import-name

npm version npm downloads

Enforce default imports matching file names This makes default export more structured.

default-import-name-demo.gif

Rules List

Configuration

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()];

Supported Rules

🔧 Automatically fixable by the --fix CLI option.

Name Description 🔧
default-import-name enforce default imports matching file names 🔧

License

MIT License © 2024-PRESENT Nir Tamir

Package Sidebar

Install

npm i eslint-plugin-default-import-name

Weekly Downloads

23

Version

0.5.1

License

MIT

Unpacked Size

24 kB

Total Files

13

Last publish

Collaborators

  • nirtamir2