Permalink
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix #11777. Add EditorConfig support, closes gh-715.
- Loading branch information
1 parent
8cfdb5c
commit c4df0c9
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://EditorConfig.org | ||
|
||
root = true | ||
|
||
; All JavaScript files should use tabs unless specified otherwise | ||
[**.js] | ||
indent_style = tab | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
|
||
[speed/**.html] | ||
indent_style = tab | ||
|
||
[speed/**.css] | ||
indent_style = tab | ||
|
||
[speed/benchmarker.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
|
||
[test/**.xml] | ||
indent_style = tab | ||
|
||
[test/**.php] | ||
indent_style = tab | ||
|
||
[test/**.html] | ||
indent_style = tab | ||
|
||
[test/**.css] | ||
indent_style = space | ||
indent_size = 8 |
c4df0c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to npm/npm#3062,
package.json
will always use 2 spaces. Probably the editorconfig file should reflect that.