
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-config-auto
Advanced tools
This config will automatically configure the airbnb esLint rules and a range of other plugins, based on the contents of your projects package.json
file.
To install this config, run the following command.
npm install eslint-config-auto --save-dev
Create an .eslintrc
file with the following contents.
{
"extends": ["auto"]
}
You can now include html
, json
and markdown
in the list of files passed to eslint
to lint any JavaScript contained.
{
"scripts": {
"eslint": "eslint --color --ext .html,.js,.json,.jsx,.md,.ts,.tsx *.* src",
"eslint:fix": "npm run eslint -- --fix"
}
}
* If you have TypeScript installed you may need to remove any unused filetypes from the above.
After you have configured eslint
to include this package, the first time you run eslint
it will output the npm
command to install the dependencies required for your project. Copy and paste this command into the console, and you are then ready to start linting.
The most appropreate version of the AirBNB eslint config will be automatically selected
The eslint-config-adjunct config is included, this will install a range of reasonable plugins based on your project's dependancies, that cover best practices, popular utility librarys, security and testing frameworks.
If the project includes Babel, then eslint-plugin-babel will be loaded and the parser will be set to babel-eslint
.
If no transpiler is detected and env.browser = true
in your .eslintrc
, then eslint-plugin-compat is loaded.
If env.node = true
in your .eslintrc
file, then eslint-plugin-node is loaded.
If a project contians React, then a React version of the AirBNB config will be used.
If prettier is installed, any rules that may conflict with Prettier will be disabled. The plugin should read you Prettier config from your project's root.
The prettier configs for different eslint plugins are also automatically included based on which eslint plugins have been installed into your project.
If the project includes TypeScript, then the rules will adapt to lint typescipt files and the parser will be set to @typescript-eslint/parser
for ts
and tsx
filetypes.
FAQs
Automatically configure esLint based on project dependancies
The npm package eslint-config-auto receives a total of 2,037 weekly downloads. As such, eslint-config-auto popularity was classified as popular.
We found that eslint-config-auto demonstrated a not healthy version release cadence and project activity because the last version was released 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.