@cloudy-ts/eslint-plugin
v0.0.394
Published
ESLint plugin that provides a rule to enforce explicit `.js` or `.json` extensions on imports.
Downloads
875
Readme
@cloudy-ts/eslint-plugin
ESLint plugin that provides a rule to enforce explicit .js
or .json
extensions on imports.
Installation
yarn add @cloudy-ts/eslint-plugin -D
Usage
Extend from the recommended configuration in your ESLint configuration file (ie, in your package.json
file):
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "plugin:@cloudy-ts/recommended"
}
}
Rules
Each rule has emojis denoting:
- ✅ if it belongs to the
recommended
configuration - 🔧 if some problems reported by the rule are automatically fixable by the
--fix
command line option - 💡 if some problems reported by the rule are manually fixable by editor suggestions
| Name | Description | ✅ | 🔧 | 💡 | | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------- | :-- | :-- | :-- | | extensions | Enforce import and export file extensions. | ✅ | 🔧 | 💡 |