The vue runtime always prompts for this error

vue runtime always has the following problems

http://eslint.org/docs/rules/. Expected indentation of 0 spaces but found 2
how to solve

Mar.07,2021

close eslint, and delete the following from webpack.base.conf.js:
preLoaders: [

  {
    test: /\.vue$/,
    loader: 'eslint',
    include: projectRoot,
    exclude: [/node_modules/, /ignore_lib/]
  },
  {
    test: /\.js$/,
    loader: 'eslint',
    include: projectRoot,
    exclude: [/node_modules/, /ignore_lib/]
  }
]

in the final analysis, the first line is indented incorrectly, then click eslint to write, otherwise why use eslint detection.
what do you think?! Turn off the indentation test if you don't like it.

your first line indentation is supposed to be 2 or 4 spaces, why zero!

Menu