eslint-plugin-sim-only
v1.0.1
Published
Custom ESLint rules for enforcing coding conventions in SIM Only Angular projects
Downloads
3
Maintainers
Readme
eslint-plugin-sim-only
Custom ESLint rules for enforcing coding conventions in SIM Only Angular projects.
Installation
You'll first need to install ESLint:
yarn add --dev eslint
Next, install eslint-plugin-sim-only
by simply running:
yarn add eslint-plugin-sim-only
Usage
Add sim-only
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"sim-only"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sim-only/class-empty-line": "error"
}
}
Rules
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 🔧 | | :------------------------------------------------- | :------------------------------------------------------------------------------------------ | :- | | class-empty-line | Ensure that class declarations begin with an empty line when the class contains properties. | 🔧 |