0.0.2 • Published 11 months ago
eslint-plugin-mathieu-eveillard v0.0.2
eslint-plugin-mathieu-eveillard
Additional rules enforcing some architectural aspects as well as code style
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-mathieu-eveillard
:
npm install eslint-plugin-mathieu-eveillard --save-dev
Usage
Add eslint-mathieu-eveillard
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"eslint-mathieu-eveillard"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"eslint-mathieu-eveillard/rule-name": 2
}
}
Rules
Name | Description |
---|---|
no-restricted-imports | Forbid given imports from given packages into given paths. |