From 142b5e070d0438171560fbc5265e94f5b73b4587 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 10 Aug 2015 22:58:33 -0700 Subject: [PATCH] add .jshintrc and .jscsrc. --- .jscsrc | 15 +++++++++++++++ .jshintrc | 41 +++++++++++++++++++++++++++++++++++++++++ .npmignore | 2 ++ lib/alias.js | 4 ++++ 4 files changed, 62 insertions(+) create mode 100644 .jscsrc create mode 100644 .jshintrc diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..3b1bc6a --- /dev/null +++ b/.jscsrc @@ -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 +} diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..51cb648 --- /dev/null +++ b/.jshintrc @@ -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 +} diff --git a/.npmignore b/.npmignore index 2f7f2f6..17e536a 100644 --- a/.npmignore +++ b/.npmignore @@ -2,3 +2,5 @@ test/ img/ node_modules/ +.jshintrc +.jscsrc diff --git a/lib/alias.js b/lib/alias.js index 528796a..656ffcd 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -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: