forked from FastForwardTeam/FastForward
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EditorConfig to respect Code Style
I also updating the Code Style docs Signed-off-by: Bayu Satiyo <[email protected]>
- Loading branch information
1 parent
f4c8bdb
commit b4d040b
Showing
2 changed files
with
22 additions
and
2 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,17 @@ | ||
# VS Code user, install: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig | ||
# Sublime Text user, install: https://github.com/sindresorhus/editorconfig-sublime#readme | ||
# See https://editorconfig.org/ for more information. | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
indent_size = 2 | ||
trim_trailing_whitespace = false |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
### Code style: | ||
|
||
- [Standard JS](https://standardjs.com/rules.html) + [Prettier](https://prettier.io/) | ||
- Unix EOL (LF) | ||
- Newline at end of file | ||
|
||
### How to set this up on VScode/Codium: | ||
- Extension: [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=numso.prettier-standard-vscode) | ||
- Newline at end of file: [stackoverflow.com/a/44704969](https://stackoverflow.com/a/44704969) | ||
|
||
Install these extensions: | ||
- [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig "See on Visual Studio Code Marketplace") | ||
- [Prettier-Standard - JavaScript formatter](https://marketplace.visualstudio.com/items?itemName=numso.prettier-standard-vscode "See on Visual Studio Code Marketplace") |