Skip to content

Instantly share code, notes, and snippets.

@grasGendarme
grasGendarme / .jshintrc
Last active December 17, 2015 19:08
A .jshintrc for node.js
{
"node": true,
"boss": false,
"newcap": false,
"undef": true,
"unused": true,
"onecase": true,
"indent": 2,
"noempty": true,
"quotmark": "single"
String.prototype.removeTrailing = function(what) {
if(this.slice(-what.length) === what) {
return this.slice(0, -what.length);
} else {
return this;
}
}
[color]
ui = true
status = auto
branch = auto
diff = auto
[help]
autocorrect = 1
[push]
default = simple
[interactive]