关于ESlint语法检查简单配置
在项目根目录里,创建以 .eslintrc.* 的文件名module.exports = { root: true, parser: 'babel-eslint', parserOptions: { //设置"script"(默认)或"module"如果你的代码是在ECMAScript中的模块。 sourceType: 'module', parser: 'babel-eslint', ecmaFeatures: { legacyDecorators:
原创
2020-06-22 14:33:41 ·
881 阅读 ·
0 评论