Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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 your 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()
break
default:
defaultThing()
}
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 2,705 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.