@twofortyfive/eslint-plugin
v0.0.1
Published
ESLint rules enforcing architectural aspects and code style
Downloads
2
Maintainers
Readme
@twofortyfive/eslint-plugin
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 @twofortyfive/eslint-plugin
:
npm install @twofortyfive/eslint-plugin --save-dev
Usage
Add eslint-mathieu-eveillard
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"mathieu-eveillard"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"mathieu-eveillard/rule-name": 2
}
}
Rules
| Name | Description | | :----------------------------------------------------------- | :----------------------------------------------- | | no-restricted-imports | Forbid import of given packages into given paths |