.editorconfig: two spaces for .js files

Most other scripting languages we use in tree have the same.
This commit is contained in:
Wolfgang Walther 2025-06-21 21:29:50 +02:00
parent d543504ef8
commit 3d4c1c0d26
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1
5 changed files with 217 additions and 221 deletions

View File

@ -24,7 +24,7 @@ insert_final_newline = false
# see https://nixos.org/nixpkgs/manual/#chap-conventions # see https://nixos.org/nixpkgs/manual/#chap-conventions
# Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces # Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
[*.{bash,json,lock,md,nix,pl,pm,py,rb,sh,xml}] [*.{bash,js,json,lock,md,nix,pl,pm,py,rb,sh,xml}]
indent_style = space indent_style = space
# Match docbook files, set indent width of one # Match docbook files, set indent width of one
@ -32,7 +32,7 @@ indent_style = space
indent_size = 1 indent_size = 1
# Match json/lockfiles/markdown/nix/ruby files, set indent width of two # Match json/lockfiles/markdown/nix/ruby files, set indent width of two
[*.{json,lock,md,nix,rb}] [*.{js,json,lock,md,nix,rb}]
indent_size = 2 indent_size = 2
# Match all the Bash code in Nix files, set indent width of two # Match all the Bash code in Nix files, set indent width of two

View File

@ -1,4 +0,0 @@
# TODO: Move to top-level via staging PR
[*.js]
indent_style = space
indent_size = 2