diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..f46b547 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,53 @@ +{ + "bitwise": true, + "camelcase": true, + "curly": false, + "eqeqeq": true, + "es3": false, + "forin": true, + "immed": true, + "indent": 2, + "latedef": "nofunc", + "newcap": true, + "noarg": true, + "noempty": true, + "nonew": false, + "plusplus": false, + "quotmark": true, + "regexp": false, + "undef": true, + "unused": true, + "strict": false, + "trailing": true, + "maxparams": 4, + "maxdepth": 2, + "maxstatements": 30, + "maxcomplexity": 10, + "maxlen": 110, + + "asi": false, + "boss": false, + "debug": false, + "eqnull": true, + "esnext": true, + "evil": false, + "expr": false, + "funcscope": false, + "globalstrict": false, + "iterator": false, + "lastsemic": false, + "laxbreak": false, + "laxcomma": false, + "loopfunc": false, + "moz": false, + "multistr": true, + "proto": false, + "scripturl": false, + "smarttabs": false, + "shadow": false, + "sub": false, + "supernew": false, + "validthis": true, + + "node": true +} diff --git a/test/.jshintrc b/test/.jshintrc new file mode 100644 index 0000000..6519203 --- /dev/null +++ b/test/.jshintrc @@ -0,0 +1,78 @@ +{ + "bitwise": true, + "camelcase": false, + "curly": false, + "eqeqeq": true, + "es3": false, + "forin": true, + "immed": true, + "indent": 2, + "latedef": "nofunc", + "newcap": true, + "noarg": true, + "noempty": true, + "nonew": true, + "plusplus": false, + "quotmark": true, + "regexp": false, + "undef": true, + "unused": true, + "strict": false, + "trailing": true, + "maxparams": false, + "maxdepth": 2, + "maxstatements": false, + "maxcomplexity": 10, + "maxlen": 110, + "globals": { + "describe": false, + "it": false, + "after": false, + "afterEach": false, + "before": false, + "beforeEach": false, + "context": false, + "define": false, + "context": false, + "xit": false, + "xdescribe": false, + "window": false, + "document": false, + "inject": false, + "mocha": false, + "sinon": true, + "expect": true, + "chai": true, + "e2e": true, + "cms": true, + "localStorage": false, + "by": true, + "element": true, + "browser": true, + }, + "asi": false, + "boss": false, + "debug": false, + "eqnull": true, + "esnext": true, + "evil": false, + "expr": true, + "funcscope": false, + "globalstrict": false, + "iterator": false, + "lastsemic": false, + "laxbreak": false, + "laxcomma": false, + "loopfunc": false, + "moz": false, + "multistr": true, + "proto": false, + "scripturl": false, + "smarttabs": false, + "shadow": false, + "sub": false, + "supernew": false, + "validthis": false, + "node": true, + "-W024": false +}