@dahazra/eslint-plugin
v2.0.0
Published
A personal plugin made by David Hazra
Downloads
112
Maintainers
Readme
@dahazra/eslint-plugin
A personal plugin made by David Hazra
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @dahazra/eslint-plugin
:
npm install @dahazra/eslint-plugin --save-dev
Usage
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 | ✅ |