Skip to content

Commit a1b41b0

Browse files
Code style, linting
1 parent 5f6d9c4 commit a1b41b0

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.editorconfig

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
# editorconfig.org
1+
# Strider Editor/IDE Settings
2+
# This file is used to promote consistent source code standards
3+
# amongst all Strider-CD contributors.
4+
# More information can be found here: http://editorconfig.org/
5+
6+
# General Settings
27
root = true
38

9+
# Settings for all files
410
[*]
511
indent_style = space
612
indent_size = 2
713
end_of_line = lf
814
charset = utf-8
915
trim_trailing_whitespace = true
1016
insert_final_newline = true
11-
continuation_indent = 4
1217

13-
[package.json]
14-
indent_style = space
15-
indent_size = 2
18+
# Settings specific to Markdown files
19+
[*.md]
20+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 5,
4+
"sourceType": "script"
5+
},
6+
"env": {
7+
"node": true
8+
},
9+
"extends": "eslint:recommended",
10+
"rules": {
11+
"indent": [2, 2],
12+
"brace-style": [2, "1tbs"],
13+
"quotes": [2, "single"],
14+
"semi": [2, "always"],
15+
"no-console": 0,
16+
"no-use-before-define": [2, "nofunc"],
17+
"no-underscore-dangle": 0,
18+
"no-constant-condition": 0,
19+
"space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
20+
"func-style": [2, "declaration"]
21+
}
22+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"inline_icon": "git-square"
3939
},
4040
"devDependencies": {
41+
"eslint": "^3.1.1",
4142
"expect.js": "~0.3.1",
4243
"jshint": "~2.9.2",
4344
"mocha": "~2.5.1",

0 commit comments

Comments
 (0)