ESLint plugin that provides a rule to enforce explicit .js or .json extensions on imports.
yarn add @cloudy-ts/eslint-plugin -DExtend 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"
}
}Each rule has emojis denoting:
- ✅ if it belongs to the
recommendedconfiguration - 🔧 if some problems reported by the rule are automatically fixable by the
--fixcommand line option - 💡 if some problems reported by the rule are manually fixable by editor suggestions
| Name | Description | ✅ | 🔧 | 💡 |
|---|---|---|---|---|
| extensions | Enforce import and export file extensions. | ✅ | 🔧 | 💡 |