Skip to content

Commit

Permalink
Update .editorconfig JSON rules (#2063)
Browse files Browse the repository at this point in the history
Last week I ran into yet another time when something added a BOM to one of our json files and broke things. This adds some .editorconfig rules for .json to try and prevent such things.

While I was at it, I also wanted to switch the indent size for src/tools/*.json to be '2' so that it is consistent with other json schema files the debugger owns.
  • Loading branch information
gregg-miskelly authored Feb 27, 2018
1 parent 0342385 commit 91bb533
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# 2 space indentation for .travis.yml and package.json
[{.travis.yml},package.json]
indent_style = space
# 2 space indentation and utf-8 for for .travis.yml, package.json, and .json files under src
[{.travis.yml,package.json,src/**/*.json}]
indent_size = 2

[syntaxes/csharp.json]
indent_style = space
indent_size = 2
charset = utf-8

0 comments on commit 91bb533

Please sign in to comment.