eslint-plugin-lint-fsd-plugin

0.0.12 • Public • Published

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.

/eslint-plugin-lint-fsd-plugin/

    Package Sidebar

    Install

    npm i eslint-plugin-lint-fsd-plugin

    Weekly Downloads

    1

    Version

    0.0.12

    License

    ISC

    Unpacked Size

    8.15 kB

    Total Files

    7

    Last publish

    Collaborators

    • mr.scrpt