Vue removes the eslint syntax restriction

Li Yangyong 2021-11-25 16:27:25

  start-up vue A lot of mistakes are often reported during the project 、 However, it does not affect the operation of the project 、

This is because vue Too strict restrictions on grammar


> [email protected] dev /Users/bianlifeng/my-project
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
95% emitting
WARNING Compiled with 1 warnings 5:00:12 PM
* http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
src/components/Message.vue:46:1
export default {
^
* http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
src/components/Message.vue:47:1
data() {
^
* http://eslint.org/docs/rules/indent Expected indentation of 2 spaces but found 4
src/components/Message.vue:65:1
}
^
* http://eslint.org/docs/rules/indent Expected indentation of 0 spaces but found 2
src/components/Message.vue:66:1
}
^
* 23 problems (23 errors, 0 warnings)

resolvent :

stay build/webpack.base.conf.js In file , Delete comment out ...(config.dev.useEslint ? [createLintingRule()] : []), This line of data .

 

Please bring the original link to reprint ,thank
Similar articles

2021-11-25

2021-11-25

2021-11-25

2021-11-25

2021-11-25

2021-11-25

2021-11-25