Skip to content

Commit

Permalink
Add editor config
Browse files Browse the repository at this point in the history
  • Loading branch information
drubin committed Jun 9, 2019
1 parent 3886cbe commit aaebb47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{ts,js}]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ cd javascript

## Formatting

Run `npm run format` or install an editor plugin like https://github.com/prettier/prettier-vscode.
Run `npm run format` or install an editor plugin like https://github.com/prettier/prettier-vscode and https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

## Linting

Expand Down

0 comments on commit aaebb47

Please sign in to comment.