2.0.0 ⢠Published 2 years ago
@dahazra/eslint-plugin v2.0.0
@dahazra/eslint-plugin
A personal plugin made by David Hazra
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @dahazra/eslint-plugin:
npm install @dahazra/eslint-plugin --save-devUsage
Add @dahazra to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"@dahazra"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"@dahazra/rule-name": 2
}
}Configurations
| Name | |
|---|---|
| ā | recommended |
Rules
š¼ Configurations enabled in.\
ā
Set in the recommended configuration.
| Name | Description | š¼ |
|---|---|---|
| next-image | Enforce required attributes on the Next.js Image component | ā |