Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
eslint-plugin-no-package-self-import
Advanced tools
An ESLint plugin for finding instances of a package importing from itself
An ESLint plugin for finding instances of a package importing from itself
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-no-package-self-import
:
npm install eslint-plugin-no-package-self-import --save-dev
Add no-package-self-import
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"no-package-self-import"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-package-self-import/rule-name": "warn"
}
}
Or use the recommended configuration:
{
"extends": [
"plugin:no-package-self-import/recommended"
]
}
Name | |
---|---|
✅ | recommended |
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
Name | Description | 💼 |
---|---|---|
no-package-self-import | Disallow importing from the same package | ✅ |
FAQs
An ESLint plugin for finding instances of a package importing from itself
The npm package eslint-plugin-no-package-self-import receives a total of 579 weekly downloads. As such, eslint-plugin-no-package-self-import popularity was classified as not popular.
We found that eslint-plugin-no-package-self-import demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.