
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
eslint-config-gusto
Advanced tools
A shared code style and formatting config for Gusto's JS projects.
We use both eslint and prettier to lint our code:
Our eslint config is largely based on Airbnb's eslint config. This package also includes all relevant eslint plugins (e.g. eslint-plugin-import
) as dependencies so they don't need to be included manually in each project's package.json
.
We also include prettier as a dependency - see the notes for setting up the prettier plugin in your editor. We're using the eslint-config-prettier which turns off all eslint rules that are unnecessary or might conflict with prettier.
As of v16 of eslint-config-gusto, prettier should be run separately from eslint in order to improve performance and the developer experience.
yarn add --dev eslint-config-gusto
also add eslint
if not already added
yarn add --dev eslint
Extend the shared eslint config in your .eslintrc.js
:
// .eslintrc.js
module.exports = {
extends: 'eslint-config-gusto',
rules: {
// Your project-specific rules
},
};
Extend the shared prettier config in your .prettierrc.js
:
// .prettierrc.js
module.exports = require('eslint-config-gusto/.prettierrc');
Ideally each project will just use the shared config but there are some rules that are project-specific and can't be defined here. For some examples, see this thread about which rules communities tend to override.
Just use the shared config :) This is where we'll see the biggest benefits of consistency so let's just all use the same configuration.
16.0.0 - 2023-10-16
FAQs
A shared ESLint config for Gusto's JS projects
The npm package eslint-config-gusto receives a total of 837 weekly downloads. As such, eslint-config-gusto popularity was classified as not popular.
We found that eslint-config-gusto 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.