0.10.0 ā¢ Published 5 months ago
eslint-plugin-workspaces v0.10.0
eslint-plugin-workspaces
An ESLint plugin for enforcing consistent imports across monorepo packages.
It supports:
Installation
# npm
npm install eslint-plugin-workspaces --save-dev
# yarn
yarn add eslint-plugin-workspaces --dev
Configuration
Enable the rules in your ESLint configuration file:
{
"plugins": ["workspaces"],
"rules": {
"workspaces/no-relative-imports": "error",
"workspaces/require-dependency": "warn"
}
}
Or add the "recommended" preset:
{
"extends": ["plugin:workspaces/recommended"]
}
Rules
ā included in the "recommended" preset
š§ fixable using the --fix
command line option
Name | Description | ||
---|---|---|---|
ā | š§ | no-absolute-imports | disallow absolute imports for files that are within the current package |
no-cross-imports | disallow imports of files that are inside another package | ||
ā | š§ | no-relative-imports | disallow relative imports of files that are outside of the current package |
ā | require-dependency | disallow importing from packages that are not listed as a dependency |
Presets
recommended
enables rules recommended for all usersall
enables all rules
License
0.10.0-rc.1
5 months ago
0.10.0-rc.0
5 months ago
0.10.0-alpha.3
5 months ago
0.10.0-alpha.2
5 months ago
0.10.0-alpha.1
5 months ago
0.10.0-alpha.0
5 months ago
0.10.0-debug.1
5 months ago
0.10.0-debug.2
5 months ago
0.10.0-debug.0
5 months ago
0.10.0
5 months ago
0.9.0-rc.0
11 months ago
0.9.0
11 months ago
0.8.0
1 year ago
0.8.0-rc.0
1 year ago
0.8.0-rc.1
1 year ago
0.8.0-rc4
2 years ago
0.8.0-rc5
2 years ago
0.8.0-rc3
2 years ago
0.8.0-rc2
3 years ago
0.8.0-rc1
3 years ago
0.8.0-c2
3 years ago
0.6.3-rc1
3 years ago
0.6.3
3 years ago
0.7.0
3 years ago
0.6.2
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.5.5
4 years ago
0.5.4
4 years ago
0.5.3
4 years ago
0.5.2
4 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.1
5 years ago
0.3.0
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.0.1
5 years ago