0.0.8 • Published 8 months ago
eslint-plugin-fsdm v0.0.8
eslint-plugin-fsdm
Plugin for fsd metodology
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fsdm
:
npm install eslint-plugin-fsdm --save-dev
Usage
Add fsd-plugin
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["fsd-plugin"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fsd-plugin/path-checker": ["error", { "alias": "@" }],
"fsdm/public-api-imports": [
"error",
{ "alias": "@", "testFilesPatterns": ["**/*.test.*", "**/*.story.*"] },
],
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.