0.10.1 ⢠Published 1 year ago
eslint-plugin-workspaces v0.10.1
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.1
1 year ago
0.10.1-beta.0
1 year ago
0.10.0-rc.1
2 years ago
0.10.0-rc.0
2 years ago
0.10.0-alpha.3
2 years ago
0.10.0-alpha.2
2 years ago
0.10.0-alpha.1
2 years ago
0.10.0-alpha.0
2 years ago
0.10.0-debug.1
2 years ago
0.10.0-debug.2
2 years ago
0.10.0-debug.0
2 years ago
0.10.0
2 years ago
0.9.0-rc.0
2 years ago
0.9.0
2 years ago
0.8.0
2 years ago
0.8.0-rc.0
3 years ago
0.8.0-rc.1
3 years ago
0.8.0-rc4
3 years ago
0.8.0-rc5
3 years ago
0.8.0-rc3
3 years ago
0.8.0-rc2
4 years ago
0.8.0-rc1
4 years ago
0.8.0-c2
4 years ago
0.6.3-rc1
4 years ago
0.6.3
4 years ago
0.7.0
4 years ago
0.6.2
5 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.5
5 years ago
0.5.4
5 years ago
0.5.3
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.0
5 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.1
6 years ago