Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Heneise committed Nov 7, 2015
1 parent 802ea0a commit af0acf0
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

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

[package.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
12 changes: 12 additions & 0 deletions .jsbeautifyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"indent_size": 2,
"indent_char": " ",
"other": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"jslint_happy": false,
"indent_handlebars": true,
"js_space_before_conditional": true
}
20 changes: 20 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"preset": "google",
"fileExtensions": [".js", "jscs"],

"requireParenthesesAroundIIFE": true,
"maximumLineLength": 120,
"validateLineBreaks": "LF",
"validateIndentation": 2,
"disallowTrailingComma": true,
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",

"disallowSpacesInsideObjectBrackets": null,
"disallowImplicitTypeConversion": ["string"],

"safeContextKeyword": "ctx",

"excludeFiles": [
"tests/data/**"
]
}
12 changes: 12 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"node": true,
"bitwise": true,
"undef": true,
"eqeqeq": true,
"noarg": true,
"mocha": true,
"unused": true,
"indent": 2,
"smarttabs": true,
"esnext": true
}

0 comments on commit af0acf0

Please sign in to comment.