1.3.0 ā€¢ Published 3 months ago

eslint-plugin-path v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

eslint-plugin-path code style: prettier

An ESLint plugin for enforcing consistent imports across project. In other words, it helps to replace all relatives import with absolutes dependinng on settings.

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

NameDescription
āœ”šŸ”§no-relative-importsdisallow relative imports of files where absolute is preferred

Presets

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

License

MIT

1.3.0

3 months ago

1.2.4

4 months ago

1.2.3

5 months ago

1.2.0

11 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0-beta.0

11 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.4

2 years ago

0.1.0-rc.3

2 years ago

0.1.0-rc.2

2 years ago

0.1.0-rc.1

2 years ago

0.1.0-rc.0

2 years ago