Solution to the error of eslint “extra semicolon”

With multi-dimensional model as the core, let the factory digital transformation and upgrading “within reach”>>>

How to make money from mobile phones?I recommend a mobile app summary platform: finger music( http://www.szhile.com/ )You can earn hundreds of yuan a day by moving your fingers in your spare time

for projects built with Vue cli, the template is webpack, the default eslint configuration is based on standard, and the requirement is not to use semicolon

if we want to use a semicolon, add a configuration in the rules field:

'semi': ["error", "always"]


in this way, every expression in your JS code should end with a semicolon, otherwise eslint will give an error prompt

if you want eslint not to check the semicolon, the semicolon at the end of this time can be added or not. Configure in the rules field: if you want eslint not to check the semicolon, you can add it or not

'semi': 0

Similar Posts: