Back to TIL
March 2025
posted on 03.19.2025

EditorConfig Glob Expressions

The sections in .editorconfig are filepath globs. They can be used to define config for certain files and directories:

root = true

[*]
indent_style = tab
indent_size = 2
insert_final_newline = true

# Match exact file package.json
[package.json]
indent_style = space

# Match .css files under test directory
[test/**/*.css]
insert_final_newline = false
No reactions yet

in Naperville, IL
Last visitor from Mitaka, Japan