0.0.12 • Published 7 months ago

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

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months 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

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago