Skip to content

mvodyanov/eslint-plugin-relative-path-fsd-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-relative-path-fsd-checker

This plugin provides several rules for enforcing consistent import and export syntax and behavior in JavaScript\Typescript code.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-relative-path-fsd-checker:

npm install eslint-plugin-relative-path-fsd-checker --save-dev

Usage

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

{
    "plugins": [
        "relative-path-fsd-checker"
    ]
}

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

{
    "rules": {
        "relative-path-fsd-checker/rule-name": 2
    }
}

Rules

Feature-Sliced Design (FSD) is an architectural methodology for scaffolding front-end applications. Simply put, it's a compilation of rules and conventions on organizing code. The main purpose of this methodology is to make the project more understandable and structured in the face of ever-changing business requirements.

Github

https://github.com/mvodyanov/eslint-plugin-relative-path-fsd-checker

About

Enforce correct usage of relative paths in FSD directory structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published