The solution to the "error Extra semicolon semi" error reported by Eslint syntax check

1、 5:35 error Extra semicolon semi
6:25 error Extra semicolon semi

✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix option.

The reason for this error is that we used quotation marks at the end of the statement. After removing the semicolon, it can run smoothly. This is why? This is because of the vscode plugin ESlint. ESlint will automatically add semicolons when formatting documents. This may make us feel uncomfortable and feel that it is not the norm. Is there any way to do it? some. We can remove ESlint's inspection rules.

Guess you like

Origin blog.csdn.net/qq_39598825/article/details/127720121