.editorconfig: two spaces for .js files
Most other scripting languages we use in tree have the same.
This commit is contained in:
parent
d543504ef8
commit
3d4c1c0d26
@ -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
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
# TODO: Move to top-level via staging PR
|
|
||||||
[*.js]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
Loading…
x
Reference in New Issue
Block a user