0.0.13 • Published 2 years ago
eslint-plugin-ulbitv-fsd v0.0.13
eslint-plugin-ulbitv-fsd
Plugin for production project
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-ulbitv-fsd
:
npm install eslint-plugin-ulbitv-fsd --save-dev
Usage
Add ulbitv-fsd
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"ulbitv-fsd"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"ulbitv-fsd/rule-name": 2
}
}
Rules
Name | Description |
---|---|
path-validator | Validates that path works as described in FSD |
public-api-validator | Check that imports come only from public api on FSD architecture |