我的项目需要支持旧浏览器,我想找到使用let
,const
等潜在错误。如何配置ESLint?
这是我目前的eslinrrc.js
:
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": false,
},
"parserOptions": {
"ecmaVersion": 5,
},
//...
}
PS:是的,我知道我可以使用babel,但我不能。目前有可能重写构建过程。