When verifying Vue projects with eslint, the following warnings were found:
error: Newline required at end of file but not found (eol-last)
The results are as follows:
I found that the online solution is to insert a blank line after the warning code. I think this is very bad.
[solution]
1. Insert a configuration file .Editorconfig
, in the project_final_Newline = true
is changed to false
2. Cancel the verification of the last rule in . Eslintrc. JS
recompile without warning.
Read More:
- Vue Project Error: Expected indentation of 2 spaces but found 4,Newline required at end of file but not found
- Newline required at end of file but not found eol-last [How to Solve]
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- [Solved] Vue3.0 Error: The component has been registered but not used vue/no-unused-components, Close eslint
- [Solved] Vue Project startup error: no eslint configuration found
- How to Solve Vscode save Vue file eslint error
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- [Solved] ESlint Create New File Error: Component name “Home” should always be multi-word.
- [Solved] Vue2.0 Error: Syntax Error: TypeError: eslint.CLIEngine is not a constructor
- vue eslint error ‘process‘ is not defined no-undef [How to Solve]
- ERROR in [eslint] ESLint is not a constructor (How to Solve)
- Vue Error: component has been registered but not used [Two Methods to Solve]
- How to Solve JS error: Unexpected end of JSON input,Unexpected token u in JSON at position 0
- [Solved] ESLint:TypeError: this.CliEngine is not a constructor
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- [Solved] Vue Less error: Webpack project report expected indentation of 0 spaces but found 2
- [Solved] Failed to load resource: net::ERR_FILE_NOT_FOUND
- [Solved] Errors: 1 http://eslint.org/docs/rules/quotes…elementUI Import Error
- eslint Error: Delete `␍` [How to Solve]