Created
May 22, 2016 16:35
-
-
Save erayalakese/e6a4e0fa1e07a5c52e30a4e2dc33f237 to your computer and use it in GitHub Desktop.
EditorConfig for npm packages
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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
[*.js] | |
charset = utf-8 | |
max_line_length = 80 | |
indent_style = space | |
indent_size = 2 | |
curly_bracket_next_line = false | |
quote_type = single | |
trim_trailing_whitespace = false | |
insert_final_newline = false | |
end_of_line = lf |
This editorconfig doesn't help with the rules specified in the Comma First section of npm's Coding Style document.
I mention that purely as an FYI to anyone who may think that using this editorconfig will help them follow code style guidelines with no gaps.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm Coding Style Guide: https://docs.npmjs.com/misc/coding-style