
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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.
yarn add eslint-config-auto --dev
Create an .eslintrc
file with the following contents.
{
"extends": ["eslint-config-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 *.{html,js,json,jsx,md,ts,tsx} src/*.{html,js,json,jsx,md,ts,tsx}",
"eslint:fix": "npm run eslint -- --fix"
}
}
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. Cut'n'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 plugins based on your project's dependancies.
If you project includes TypeScript, then the rules will adapt to lint typescipt files.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.