ESlint specification error in VUE Block must not be padded by blank lines padded-blocks
When using VUE to write an async login method, it runs normally. After some simple newline modification and editing, it finds an error:
error Block must not be padded by blank lines padded-blocks
error Trailing spaces not allowed no-trailing-
spacesI No content modification has been carried out. See the prompt that the block cannot be filled with blank lines. It turns out that the error Block must not be padded by blank lines padded-blocks error is a reminder that there are too many blank lines and needs to be deleted. The reason is the format problem that occurs when using the ESlint specification. It is good to have a specification, but it also adds a lot of trouble! Or if there are few team members, delete this module. If there are many team members, follow it together. In the ESlint specification, I also encountered the following errors. The content of the error message and the solution are recorded here.
#There is a blank line in the code, delete this blank line
error Trailing spaces not allowed no-trailing-spaces
error Extra semicolon semi
#Characters must use single quotes
error Strings must use singlequote quotes
#There must be spaces after double slash comments
error Expected space or tab after '//' in comment spaced-comment
The company's network control prohibits some video-related protocols, which will cause this error.
The media could not be loaded, either because the server or network failed or because the format is not supported.