add .jshintrc and .jscsrc.
This commit is contained in:
parent
a79e8106ea
commit
142b5e070d
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"preset": "airbnb",
|
||||
|
||||
"esnext": false,
|
||||
"requireTrailingComma": null,
|
||||
"requireCommaBeforeLineBreak": null,
|
||||
"requireCamelCaseOrUpperCaseIdentifiers": null,
|
||||
"requirePaddingNewLinesBeforeLineComments": null,
|
||||
"requirePaddingNewLinesAfterBlocks": null,
|
||||
"safeContextKeyword": "self",
|
||||
|
||||
"maximumLineLength": 110,
|
||||
"maxErrors": 1000,
|
||||
"requireSpaceAfterLineComment": true
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"bitwise": false,
|
||||
"curly": false,
|
||||
"eqeqeq": true,
|
||||
"freeze": true,
|
||||
"latedef": "nofunc",
|
||||
"maxparams": 7,
|
||||
"noarg": true,
|
||||
"shadow": "inner",
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"boss": true,
|
||||
"expr": true,
|
||||
"eqnull": true,
|
||||
"evil": true,
|
||||
"loopfunc": true,
|
||||
"proto": true,
|
||||
"supernew": true,
|
||||
|
||||
"-W018": true,
|
||||
"-W064": true,
|
||||
"-W086": true,
|
||||
"+W032": true,
|
||||
|
||||
"browser": false,
|
||||
"browserify": false,
|
||||
"node": true,
|
||||
"nonstandard": true,
|
||||
"typed": true,
|
||||
"worker": false,
|
||||
|
||||
"camelcase": false,
|
||||
"indent": 2,
|
||||
"maxlen": 110,
|
||||
"newcap": true,
|
||||
"quotmark": "single",
|
||||
|
||||
"laxbreak": true,
|
||||
"laxcomma": true
|
||||
}
|
|
@ -2,3 +2,5 @@
|
|||
test/
|
||||
img/
|
||||
node_modules/
|
||||
.jshintrc
|
||||
.jscsrc
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
* Taken from terminfo(5) man page.
|
||||
*/
|
||||
|
||||
/* jshint maxlen: 300 */
|
||||
// jscs:disable maximumLineLength
|
||||
// jscs:disable
|
||||
|
||||
var alias = exports;
|
||||
|
||||
// These are the boolean capabilities:
|
||||
|
|
Loading…
Reference in New Issue