2015-02-05 31 views
1

错误在终端上抛出jshint验证,我有空的js文件仍然会抛出错误。错误jshint验证es5

f.js: line 0, col 0, ES5 option is now set per defaul 
1 error 

回答

1

在主目录中创建.jshintrc文件并将es5设置为FALSE。

{ 
    "es5"   : false,  // true: Allow ES5 syntax (ex: getters and setters) 
}