When you create a Vue project, you may encounter this prompt, which literally means that the code is not allowed to have more than one blank line. However, when you write a lot of code and ask for the running result, it is impossible to remove the blank line all the time. The reason is that
There are two solutions to the problem caused by eslint check syntax.
1. Format code: Shift + Alt + F, which can remove redundant blank lines. However, other problems will arise. You will find that after formatting, your string ‘hello word’ will change from single quotation marks to double quotation marks, and you will be warned
2
Warning means that the string must use single quotation marks
we can set it like this and find webpack.base.conf.js in build
Then comment out this line of code, and do not use the eslint verification rule
instead
2. If you don’t format the code, you can use the second way
Find the file. Eslintrc. JS
Comment out standard and run it again
Read More:
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- ERROR Invalid options in vue.config.js: “plugins“ is not allowed
- Vue install reports an error operation not allowed
- The Vue mobile terminal cannot use string.replaceall, and the error message is blank
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- An error was reported on the command line of Vue when it first wrote a small project: expected indentation of 4 spaces but found 6
- Oracle ORA-00984:column not allowed here
- Three ways of single line and multi line comment in Python
- Annotations are not allowed here
- Because the computer is stuck, force to restart the computer and open idea idea to report an error on line 1: no content is allowed in the foreword.
- [Error][IntelliJ IDEA] Element XXX is not allowed here
- [How to Solve] ashx Http Delete method not allowed
- Solve the problem that the delete request is not available under SpringBoot. There was an unexpected error (type=Method Not Allowed, status=405).
- Pychar appears“ PEP:8 expected 2 blank lines ,found 1″
- Vscode Terminal Cannot Input & Blank [How to Solve]
- Array initializer is not allowed here
- Function definition is not allowed here
- yaml.scanner.ScannerError: mapping values are not allowed here
- db2 Database Error: table space access is not allowed
- Vs2017 create a blank solution