Neovictorian Paisley Menswear

    eslint-plugin-path

    1.0.1 • Public • Published

    eslint-plugin-path code style: prettier

    An ESLint plugin for enforcing consistent imports across project.

    Installation

    # npm
    npm install eslint-plugin-path --save-dev
    
    # yarn
    yarn add eslint-plugin-path --dev

    Configuration

    Enable the rules in your ESLint configuration file:

    {
      "plugins": ["path"],
      "rules": {
        "path/no-relative-imports": "error",
      }
    }

    Or add the "recommended" preset:

    {
      "extends": ["plugin:path/recommended"]
    }

    Rules

    included in the "recommended" preset

    🔧 fixable using the --fix command line option

    Name Description
    🔧 no-relative-imports disallow relative imports of files where absolute is preferred

    Presets

    • recommended enables rules recommended for all users
    • all enables all rules

    License

    MIT

    Install

    npm i eslint-plugin-path

    DownloadsWeekly Downloads

    366

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • qdanik