Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.js]
curly_bracket_next_line = false
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
1. [ES5 Compatibility](#es5)
1. [Testing](#testing)
1. [Performance](#performance)
1. [Editorconfig Setup / Use](#editorconfig)
1. [Resources](#resources)
1. [In the Wild](#in-the-wild)
1. [The JavaScript Style Guide Guide](#guide-guide)
Expand Down Expand Up @@ -1195,6 +1196,22 @@
- Loading...

**[[⬆]](#TOC)**

## <a name='editorconfig'>Editorconfig Setup / Use</a>
- Usually for a project with more than one developer involved, it is essentially important for the project to define
and maintain a consistent coding style. Most code editors and IDEs, such as Vim, Emacs, Code::Blocks, provide settings
related to coding styles, such as the width of tab, the size of indentation, end of line, etc. However, it is hard to
provide the same settings for different Editors and IDEs: we have to maintain many config files for different editors
and IDEs, such as .vimrc for Vim, .emacs for Emacs. In order to solve this, EditorConfig was born. By defining coding
style in files named .editorconfig, the EditorConfig plugins for different editors and IDEs will automatically adjust
your coding style.
- To use EditorConfig, you have to download the corresponding [EditorConfig plugins](http://editorconfig.org/#download) for your Editor or IDE.
Follow the installation instructions to install them.
- The "base" .editorconfig file goes in the root directory. You can have other config files in specific folders if wanted.
The only difference would be at the top of the file to remove <code>root = true</code> from any file that isn't the root.


**[[⬆]](#TOC)**


## <a name='resources'>Resources</a>
Expand Down
Binary file added linters/webstorm-settings.jar
Binary file not shown.