Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
eslint-config-adjunct
Advanced tools
A midly opinionated collection of the best lesser known esLint plugins that every project should include
A mildly opinionated collection of the best lesser known esLint plugins to use alongside you main eslint configuration.
This config is designed to be used alongside any of the major esLint configs, such as airbnb or standard. It provides a range of extra rules to enhance the linting of your code.
To run this config you will need to install it along with it's peerDependancies
.
npx install-peerdeps --dev eslint-config-adjunct
If you have problems with the above command, then you will need to run install-peerdeps
locally.
npm install -g install-peerdeps
install-peerdeps --dev eslint-config-adjunct
Extend your .eslintrc
, with adjunct
, which should be the last item in the extends
array. For example if your using eslint-config-airbnb
as your main rule set, your .eslintrc
should look like this:
{
"extends": ["airbnb", "adjunct"]
}
You can now include html
and markdown
in the list of files passed to esLint to have any contained JavaScript linted.
This configuration contains the following esLint plugins.
In the most part the default rules are used for the plugins listed above, with the following exceptions.
When linting code snippets in Markdown files, a few rules relating to globals and unused vars are disabled.
Adds thes fallthrough: 'never'
option to the the newlint-between-switch-case
rule.
// Good
switch (foo) {
case: 1
something()
break
case: 2
case: 3
somethingElse()
default:
anotherThing()
}
Copyright © 2019 David J. Bradshaw. Licensed under the MIT License.
FAQs
A reasonable collection of plugins to use alongside your main esLint configuration
The npm package eslint-config-adjunct receives a total of 3,016 weekly downloads. As such, eslint-config-adjunct popularity was classified as popular.
We found that eslint-config-adjunct demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.