1001Ferramentas
📏Dev

ESLint Standard Config Generator

Build a ready-to-paste .eslintrc.json using the Standard preset — no semicolons, single quotes, two-space indent. Runs in your browser, nothing to install.



  

An eslintrc file using the Standard preset

The team settled on Standard and somebody has to write the file. Then the small doubts start: does env belong at the top level or inside parserOptions? Is ecmaVersion a number or a string? Does sourceType module apply to browser code too? That is five minutes of docs to produce ten lines of JSON you will write exactly once per project.

The page prints that JSON ready to use, with no fields, visible on load. Four keys: extends with standard, env covering browser, node and es2022, parserOptions with ecmaVersion 2022 and sourceType module, and an empty rules object. Here is the confusing part: the no-semicolon, single-quote and two-space rules come from the preset package, not from this file. rules is left empty on purpose, for your exceptions.

Pasting the file is not enough on its own. Install eslint-config-standard along with the peer plugins it expects: eslint-plugin-import, eslint-plugin-n and eslint-plugin-promise. Note as well that this is the eslintrc format, now considered legacy. ESLint 9 looks for a flat eslint.config.js by default and ignores .eslintrc.json unless you set ESLINT_USE_FLAT_CONFIG=false. TypeScript needs a different parser. The JSON is built in your browser.

Frequently asked questions

Does it work on ESLint 9?
Not by default, since version 9 uses flat config. Either stay on ESLint 8, run with ESLINT_USE_FLAT_CONFIG=false, or port the file to eslint.config.js.
Where are the single-quote and no-semicolon rules?
Inside the eslint-config-standard package that extends pulls in. This file only references it by name.
How do I make an exception to one rule?
Fill in the rules object, which ships empty. For example, "space-before-function-paren": "off" disables just that rule while keeping the rest of the preset.

Related Tools