1.4.0-beta.0 ⢠Published 12 months ago
eslint-plugin-path v1.4.0-beta.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.4.0-beta.0
12 months ago
1.3.0
1 year ago
1.2.4
1 year ago
1.2.3
2 years ago
1.2.0
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0-beta.0
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.3
2 years ago
1.1.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.0.0-rc.6
3 years ago
1.0.0-rc.5
3 years ago
1.0.0-rc.4
3 years ago
0.1.0-rc.3
3 years ago
0.1.0-rc.2
3 years ago
0.1.0-rc.1
3 years ago
0.1.0-rc.0
3 years ago