
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-recommended
Advanced tools
Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override
In your js project directory:
npm install --save-dev eslint-config-recommended
Choose the configs you want to include in your .eslintrc.yaml
:
extends:
- recommended/esnext
- recommended/esnext/style-guide
- recommended/node
- recommended/node/style-guide
- recommended/react-native
- recommended/react-native/style-guide
Alternatively, in your .eslintrc.js
or .eslintrc.json
:
{
"extends": ["esnext", "esnext/style-guide", "node", "node/style-guide", "react-native", "react-native/style-guide"]
}
node
and react-native
extend esnext
node/style-guide
and react-native/style-guide
extend esnext/style-guide
If you don't need all these configs, you can also install them individually:
To add a git-hook to your commits, consider using husky
npm install --save-dev husky
And in your package.json
:
"scripts": {
"precommit": "eslint ."
}
These configs are biased and opinionated, and err on the side of too many rules instead of too few. Think of them as a superset of your repo's lint config, and discard what you don't like in them. It's easy to override and disable the rules you find inconvenient.
FAQs
Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override
The npm package eslint-config-recommended receives a total of 9,458 weekly downloads. As such, eslint-config-recommended popularity was classified as popular.
We found that eslint-config-recommended 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
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.