WebPack / NPM / Vue-Cli ... etc error, configuration and other finishing ...

EDITORIAL ----- -----

Really terror, and with time webpack npm these things, since there is no system to learn it again, but what used to learn about the place, leading to often have no idea how to fix the error.

Therefore, a blog dedicated to being given full and recording solutions encountered.

 

-----2019.08.18-----

Eslint error "Extra semicolon":

Scenario: vue-cli build the project template is webpack, eslint default configuration is standard, it is not required to use a semicolon.

But I used Prettier plug-in, will simply plug a semicolon is automatically saved when you (very strange, but not in another project)

Two solutions:

1. Modify Eslint configure, modify .eslintrc.js file, add the rules:

2. Modify Prettier configuration (I use here is a plug-in)

Found this one in the settings, uncheck

 

Guess you like

Origin www.cnblogs.com/linbudu/p/11375259.html