Skip to content

Commit

Permalink
Scaffold: Add editorconfig & improve linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra authored and phated committed Nov 28, 2017
1 parent 93aceb6 commit aeb33b8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .editorconfig
@@ -0,0 +1,10 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
19 changes: 19 additions & 0 deletions .jshintrc
@@ -0,0 +1,19 @@
{
"camelcase": true,
"curly": true,
"eqeqeq": true,
"freeze": true,
"indent": 2,
"newcap": false,
"quotmark": "single",
"maxdepth": 3,
"maxstatements": 50,
"maxlen": 80,
"eqnull": true,
"funcscope": true,
"strict": true,
"undef": true,
"unused": true,
"node": true,
"mocha": true
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -30,7 +30,7 @@
"through2": "^0.5.1"
},
"scripts": {
"test": "mocha --reporter spec && jshint",
"test": "mocha --reporter spec && jshint lib",
"coveralls": "istanbul cover _mocha -- -R spec && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage"
},
"engines": {
Expand Down

0 comments on commit aeb33b8

Please sign in to comment.