eslint-plugin-no-penetrating-import
v0.0.1
Published
Forbid importing from subpaths of another package in monorepos.
Downloads
3,776
Maintainers
Readme
eslint-plugin-no-penetrating-import
Forbid importing from barrel index.ts files.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-no-penetrating-import
:
npm install eslint-plugin-no-penetrating-import --save-dev
Usage
Add no-penetrating-import
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-penetrating-import"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"<import-name>/no-penetrating-import": 2
}
}