Skip to content

Commit

Permalink
Implement jscs and jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
chdanielmueller committed Jun 9, 2015
1 parent 981db2e commit 79a0758
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

32 changes: 30 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
.DS_Store
node_modules/
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

# JSDoc
jsdoc
4 changes: 4 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset": "node-style-guide",
"excludeFiles": ["node_modules/**", "coverage/**"]
}
2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
coverage
63 changes: 63 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"forin": true,
"freeze": true,
"nocomma": true,
"noarg": true,
"nonbsp": true,
"nonew": true,
"singleGroups": true,
"plusplus": true,
"undef": true,
"unused": true,
"strict": true,
"latedef": true,
"asi": false,
"boss": false,
"debug": false,
"elision": false,
"eqnull": false,
"esnext": false,
"evil": false,
"expr": false,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"loopfunc": false,
"withstmt": false,
"moz": false,
"notypeof": false,
"proto": false,
"scripturl": false,
"shadow": false,
"supernew": false,
"validthis": false,
"noyield": false,
"browser": false,
"couch": false,
"devel": false,
"worker": false,
"node": true,
"nonstandard": false,
"phantom": false,
"rhino": false,
"wsh": false,
"yui": false,
"browserify": false,
"shelljs": false,
"jasmine": false,
"mocha": true,
"qunit": false,
"typed": false,
"dojo": false,
"jquery": false,
"mootools": false,
"prototypejs": false,
"maxparams": 4,
"maxdepth": 4,
"maxstatements": 12,
"maxcomplexity": 6
}
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.DS_Store
.git*
.js*
example/
swagger-example.json
swagger-example.yml

0 comments on commit 79a0758

Please sign in to comment.