@scrumble-nl/eslint-plugin-scrumble-rules
v2.2.2
Published
Sort imports
Readme
Eslint plugin scrumble rules
Eslint plugin for custom rules used by Scrumble.
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @scrumble-nl/eslint-plugin-scrumble-rules:
npm i @scrumble-nl/eslint-plugin-scrumble-rules --save-devUsage
Add @scrumble-nl/scrumble-rules to the plugins section of your .eslintrc or eslint.config.mjs configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"@scrumble-nl/scrumble-rules"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@scrumble-nl/scrumble-rules/sort-imports": "warn",
"@scrumble-nl/scrumble-rules/ignore-comment": "warn",
"@scrumble-nl/scrumble-rules/enforce-whitespace-above-return": "warn"
}
}Supported Rules
- sort-imports
- ignore-comment
- enforce-whitespace-above-return
