0.0.8 • Published 11 months ago

eslint-plugin-fsd-imports-checker v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

eslint-plugin-fsd-imports-checker

Checking import paths according to a Feature-Sliced Design

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-fsd-imports-checker:

npm install eslint-plugin-fsd-imports-checker --save-dev

Usage

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

{
    "plugins": [
        "fsd-imports-checker"
    ]
}

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

{
    rules: {
    'fsd-imports-checker/relative-path-checker': ['error', { alias: '@' }],
    'fsd-imports-checker/imports-between-layers': [
      'error',
      {
        alias: '@',
        ignoreImportPatterns: [''], //add files
        },
      ],      
    'fsd-imports-checker/public-api-imports': [
      'error',
      {
        alias: '@', 
        testFilesPatterns: ['**/*.test.*', '**/*.stories.*', '**/StoreDecorator.tsx'],
      },
    }
}

Rules

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

0.0.8

11 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago