Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
eslint-plugin-lean-imports
Advanced tools
Readme
Make sure your imports only import the bits you need
Install ESLint either locally or globally.
npm install eslint
If you installed ESLint
globally, you have to install lean-imports plugin globally too. Otherwise, install it locally.
npm install eslint-plugin-lean-imports
The rules are specifically written to target ES6 JavaScript, so you'll want to use the babel-eslint parser.
Add plugins
section and specify ESLint-plugin-lean-imports as a plugin.
{
"parser": "babel-eslint",
"plugins": [
"lean-imports"
]
}
Finally, enable all of the rules that you would like to use.
{
"rules": {
"lean-imports/import": [1, [
"lodash",
"react-bootstrap",
]]
}
}
The rules prevent from importing the whole library at once.
Here are the supported libraries:
PRs are welcome if you have ideas.
Just make sure your commit is prefixed by one of the following:
[added]
[changed]
[fixed]
[removed]
For changed or removed, just make sure to add an upgrade path in the commit message.
ESLint-plugin-lean-imports is licensed under the MIT License.
FAQs
ESLint Plugin to make sure your imports only import the bits you need
The npm package eslint-plugin-lean-imports receives a total of 3,300 weekly downloads. As such, eslint-plugin-lean-imports popularity was classified as popular.
We found that eslint-plugin-lean-imports demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.