Solved: Trailing spaces not allowed and Newline required at end of file but not found (ESlint)

1. Problem description:

First, the error message is:

Trailing spaces not allowedandNewline required at end of file but not found

Chinese is:
尾随空格不允许and文件末尾需要换行但未找到

Second, the error page is displayed as:

insert image description here

2. Problem analysis:

Warnings generated when using ESLintthe checksum projectVue

3. Problem solving:

1. Modify the code in the .editorconfig file to: insert_final_newline = false

insert image description here

2. Check the rule for canceling the last blank line in the .eslintrc.js file as: 'eol-last': 0

insert image description here

3. Recompile, there is ESLintno verification problem;

4. Summary:

First, where there is something wrong or inappropriate, please give me some pointers and exchanges!
Second, if you are interested, you can pay more attention to this column (Vue (Vue2+Vue3) interview must-have column):https://blog.csdn.net/weixin_43405300/category_11525646.html?spm=1001.2014.3001.5482

Guess you like

Origin blog.csdn.net/weixin_43405300/article/details/130965769