1
jsonline 2014-04-26 18:45:44 +08:00
{
"-W070": true, "asi": true, "bitwise": false, "browser": true, "camelcase": true, "curly": true, "eqeqeq": true, "es3": true, "esnext": true, "expr": true, "forin": false, "immed": true, "jquery": true, "latedef": true, "laxcomma": true, "newcap": false, "noarg": true, "node": true, "noempty": true, "plusplus": true, "smarttabs": true, "strict": true, "sub": true, "trailing": true, "undef": true, "unused": "var", "globals": { "define": true, "requirejs": true, "require": true } } |
2
jsonline 2014-04-26 18:46:18 +08:00
不同项目,配置不同
|
4
chemzqm 2014-04-27 04:46:58 +08:00
▽
{ "sub":true, "regexp":true, "asi": true, "browser": true, "loopfunc":true, "expr":true, "node": true, "es5": true, "esnext": true, "bitwise": true, "curly": true, "latedef": false, "expr": true, "eqeqeq": false, "eqnull": false, "newcap": true, "noarg": true, "undef": true, "proto": true, "strict": false, "-W124": false, // A generator function shall contain a yield statement "-W014": false, // Bad line breaking before ? (in tertiary operator) "-W065": false, // Missing radix parameter to parseInt (defaults to 10) "-W069": false, // Literal accessor is better written in dot notation "globals": { "describe": true, "it": true, "beforeEach": true, "afterEach": true } } 这个配置跟个人习惯关系很大,我还改了一些jshint源码,因为有些不想看到的错误没有提供选项。 另外最好及时更新jshint项目获得更好的es6支持,如果需要的话 |