@d-dev/eslint-plugin
v1.2.0
Published
plugin for enforcing esm or cjs file extensions in imports.
Downloads
12
Readme
eslint-plugin-esm
A collection of eslint rules for esm modules.
Install
$ npm install @d-dev/eslint-plugin -D
Configure
.eslintrc.json
{
"plugins": ["@d-dev"],
"rules": {
"@d-dev/extensions": "error"
}
}
Rules
- extensions - Enforce the use of file extensions in import/export paths within esm modules or prevent the use of file extensions in import/export paths within commonjs modules.