cccicl
cccicl
发布于 1个月前

vue项目报错:Unexpected tab character (no-tabs)

首先在项目的根目录下.eslintrc.js中加入一行代码:"no-tabs":"off"

module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/essential',
    '@vue/standard'
  ],
  rules: {
    "semi": [0],
    'indent': 'off',
      "no-tabs":"off",
  .
  .
    .

然后在router.js文件中添加:/ eslint-disable /

/* eslint-disable */
import index from './modules/index';
import product from './modules/product';
import order from './modules/order';
©2020 edoou.com   京ICP备16001874号-3