0.0.12 • Published 12 months ago

eslint-plugin-galilia-plugin v0.0.12

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

Feature-Sliced Path Checker

A custom ESLint plugin that ensures proper relative import paths within the same feature slice according to Feature-Sliced Design methodology.

Overview

The Feature-Sliced Path Checker enforces a consistent pattern for import paths within the same feature slice in your project. It helps maintain proper structure and improves the readability of the codebase.

Feature-Sliced Design is a frontend project structure methodology that organizes code based on the following layers:

  • Shared
  • Entities
  • Features
  • Widgets
  • Pages

This plugin verifies that all imports within the same layer and slice use relative paths, making your code more maintainable and easier to understand.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-galilia-plugin:

npm install eslint-plugin-galilia-plugin --save-dev

Usage

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

{
    "plugins": [
        "galilia-plugin"
    ]
}

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

{
    "rules": {
        "galilia-plugin/rule-name": 2
    }
}

Rules

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

0.0.12

12 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago