- The
webpreset is renamed tojs. Anyone using--preset webfrom 2.1.0 must switch to--preset js.
- The
jspreset gains explicit[*.{js,jsx,ts,tsx,mjs,cjs,cts,mts,json,jsonc}],[*.{yml,yaml}], and[Makefile]sections. --detectrecognizes more Node/TypeScript markers (deno.json,bun.lockb,*.js,*.mjs,*.cjs,*.mts,*.cts) and reportsjsinstead ofweb.
<dir>positional argument — write.editorconfigto that directory.-f, --force— overwrite an existing file.-o, --output <path>— write to a specific path.--stdout— print to stdout instead of writing to disk.-p, --preset <name>— generate from a named preset (default,web,python,go).--detect— pick a preset by sniffing the target directory.-m, --merge— append new sections to an existing.editorconfig.
tab_width(positive integer, optional).max_line_length(positive integer,off, or blank).unsetis now accepted for every property in per-glob override sections.
indent_sizenow requires a positive integer or the literaltab.- Glob validation rejects unbalanced
[]/{}. format()no longer throws on unknown keys.- No leading blank line in the output when there is no
rootpreamble. - README typo:
create-editor→create-editorconfig.
- Now requires Node.js
>=18.3.0(needed fornode:util.parseArgs).
- Removed
command-line-argsdependency; argument parsing now usesnode:util.parseArgs. - Removed
is-valid-globdependency; glob validation is now an inline native check. - Converted source to ES modules (
"type": "module"). - Added a test suite using
node:test. Run withnpm test.
CLI behavior, prompts, and .editorconfig output are unchanged.
- Re-enable adding multiple
.editorconfigrules.
- Typo fixes.
- Add
-yflag for default.editorconfig. - Switch internal naming to camelCase; add default options object.
- Initial multi-section support.