0.0.14 • Published 9 months ago

eslint-plugin-adiy-dev-plugin v0.0.14

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

eslint-plugin-adiy-dev-plugin

plugin for production project with FSD Architecture

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-adiy-dev-plugin:

npm install eslint-plugin-adiy-dev-plugin --save-dev

Usage

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

{
    "plugins": [
        "adiy-dev-plugin"
    ]
}

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

{
    "rules": {
        "adiy-dev-plugin/rule-name": 2
    }
}

Rules Example

{
    "rules": {
        "adiy-dev-plugin/path-checker": ["error", { "alias": "@" }]
    }
}
{
    "rules": {
        "adiy-dev-plugin/public-api-imports": ["error", { 
            "alias": "@",
             "testFilesPatterns": ["**/*.test.ts", "**/SomeFileName.tsx"],
            }]
    }
}
{
    "rules": {
        "adiy-dev-plugin/layer-imports": ["error", { 
            "alias": "@",
             "ignoreImportPatterns": ["**/StoreProvider", "**/AnyIgnore"],
            }]
    }
}

Rules

NameDescription
layer-importscontrol layers import on lvls
path-checkerfeature sliced relative path checker
public-api-importsonly imports from public api
0.0.14

9 months ago

0.0.13

9 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago