0.0.12 • Published 2 years ago

eslint-plugin-lint-fsd-plugin v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-lint-fsd-plugin

plugin for linting fsd rules

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-lint-fsd-plugin:

npm install eslint-plugin-lint-fsd-plugin --save-dev

Usage

Add lint-fsd-plugin to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["lint-fsd-plugin"]
}

Rules

import-checker - Checks if you are using a relative path within a layers.

List of layers to be checked by linter, your catalogues will be checked if they have names from the list:

  • entity
  • entities
  • feature
  • features
  • shared
  • shareds
  • page
  • pages
  • widget
  • widgets

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "lint-fsd-plugin/import-checker": "error"
  }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago