|
在执行npm run serve时,报如下错误:
ESLint “Unexpected tab character” when “indent” rule set to “tab” 解决方案: 1. 找到文件.eslintrc , 在rules中添加"no-tabs": 0, 代码如下: {
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules":{
"indent": [2, "tab"],
"no-tabs": 0
}
}参考:https://stackoverflow.com/questions/40893518/eslint-unexpected-tab-character-when-indent-rule-set-to-tab |
|
|