Skip to content

Instantly share code, notes, and snippets.

@erayalakese
Created May 22, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erayalakese/e6a4e0fa1e07a5c52e30a4e2dc33f237 to your computer and use it in GitHub Desktop.
Save erayalakese/e6a4e0fa1e07a5c52e30a4e2dc33f237 to your computer and use it in GitHub Desktop.
EditorConfig for npm packages
# 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
@erayalakese
Copy link
Author

erayalakese commented May 22, 2016

@kurtmilam
Copy link

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