eslint-config-standard: ESLint Config for Standard Style
eslint-config-standard is the ESLint configuration that carries JavaScript Standard Style's rules into your own lint setup. The README is upfront that it targets people who already run ESLint themselves, not newcomers. Reach for it if you want Standard's rules as one entry in your eslint.config.js array you can layer overrides on top of. Skip it if you'd rather run one command and be done, since that's what standard is built for.
What is eslint-config-standard?
eslint-config-standard is an npm package that turns JavaScript Standard Style's rules into a single ESLint flat config object. You install it next to ESLint itself, drop it into the array inside eslint.config.js, and it applies Standard's rules without writing out each rule by hand. The README frames it as the configuration piece behind JavaScript Standard Style, aimed at people already comfortable wiring their own ESLint pipeline.
Core Style Rules Provided
- โThis package's own README doesn't list individual rules; it sends you to standardjs.com for the full rule set, editor plugins, and FAQ.
- โIt exports Standard's rules as a single flat ESLint configuration object, the array-based format eslint.config.js expects rather than an old-style .eslintrc file.
- โThe README frames this as the manual-integration option: people who just want a linter to run are pointed at the standard package instead.
- โIts own eslint.config.js example shows the config sitting in an array next to a plain object, so overrides live right beside it with no extends syntax needed.
- โShips alongside a shields.io-style badge for the 'standard' code style that projects can display once they pass.
- โTagged on GitHub under topics like eslint, javascript, linter, style-guide, and static-code-analysis, which matches its narrow job: rules only, no bundler or formatter included.
Installation Steps
The README gives one command: npm install --save-dev eslint eslint-config-standard, which pulls in ESLint itself alongside the shareable config. There's no separate binary here. Installing it doesn't give you a runnable linter by itself, only the rule definitions you wire in next. If manual wiring isn't what you're after, the README points to the standard package, which installs a runnable command instead.
Configuring ESLint with Standard Style
Open eslint.config.js, require the package with const standard = require('eslint-config-standard'), and export an array with standard listed first. Add a plain object after it for any rule changes you want, matching the pattern shown in the README. Because ESLint resolves flat-config arrays in order, whatever you set in that second object wins over Standard's defaults, so there's no separate extends field to learn. The README only documents this flat-config setup; older .eslintrc-based projects aren't covered here.
Strengths
- โOne install command adds Standard's whole rule set to a project: npm install --save-dev eslint eslint-config-standard.
- โOverriding a rule is just a plain object placed after standard in the array, no extends syntax to remember.
- โMIT licensed, so it drops into commercial projects without licensing friction.
- โSmall and single-purpose: it's a config, not a bundled CLI, formatter, and linter rolled into one install.
- โThe standard package and standardjs.com sit right behind it for anyone who wants the same rules with less setup.
When to Choose the Full Standard Package
- โณThe README doesn't enumerate which rules are actually on; you have to visit standardjs.com to see the list, an extra step for what's otherwise a self-contained config package.
- โณIt's deliberately not the beginner path. The README repeatedly points people who just want to lint their code toward the standard package instead.
- โณOnly the flat eslint.config.js format is documented here; there's no example for the older .eslintrc setup some projects still use.
- โณNo changelog, version history, or notes on how the rule set has evolved appear in the README.
- โณUsage coverage stops at one array-plus-overrides example, nothing about combining it with TypeScript rule sets, other shareable configs, or plugin-specific presets.
Other JavaScript Style Guides
Frequently Asked Questions
JavaScript Standard Style is the style guide this package's rules come from. eslint-config-standard's README doesn't describe the guide itself in detail; it sends readers to standardjs.com for the full rule set, FAQ, and editor plugins.
eslint-config-standard is the raw configuration, meant for people who already run their own ESLint setup, per the README. standard wraps the same rules inside a runnable command-line tool, so you install a program instead of wiring a config file.
eslint-config-standard is released under the MIT license, credited to Feross Aboukhadijeh in the repository.
The README's own eslint.config.js example shows how: list standard first in the exported array, then add a plain object with your rule changes right after it, and those changes take precedence.
eslint-config-standard's README doesn't list the rules itself; it points to the main JavaScript Standard Style project at standardjs.com for the complete rule set, editor plugins, and FAQ.
The problem it solves
A team that already runs ESLint through its own config file can't just bolt on the standard CLI, because that tool bundles rule definitions and rule-running into one program rather than exposing the rules on their own. eslint-config-standard exists for that specific gap: it hands over Standard's rule set as a plain ESLint config object so it can sit inside an existing eslint.config.js next to whatever else a project's lint setup already does.
Best use cases
- โขProjects that already call ESLint directly through eslint.config.js and want Standard's rules as one array entry instead of picking individual rules by hand.
- โขTeams layering other overrides or plugin rules on top of a base style, since the README's own example adds a plain object right after standard.
- โขCI pipelines that invoke eslint directly, where a plain config is simpler to script than wrapping a second CLI.
- โขAnyone building a custom preset who wants Standard's rules as a starting point rather than adopting the standard package wholesale.
Who should try it โ and who should skip
Try eslint-config-standard if you already run ESLint through eslint.config.js and want Standard's rules as one array entry you can override, matching how the README frames this package. Skip it if you don't want to touch a config file at all: install standard instead, since the README says that's the package built for people who just want to lint their code without setup.
Related repositories
Curious whether eslint-config-standard is right for you?
Let ChatGPT, Claude, or Perplexity look into it โ click below and see what AI actually says about eslint-config-standard.
