1.3.0 ā¢ Published 3 months ago
eslint-plugin-path v1.3.0
eslint-plugin-path
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
Name | Description | ||
---|---|---|---|
ā | š§ | no-relative-imports | disallow relative imports of files where absolute is preferred |
Presets
recommended
enables rules recommended for all usersall
enables all rules
License
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