当前位置:网站首页>Eslint--- error: newline required at end of file but not found (EOL last) solution
Eslint--- error: newline required at end of file but not found (EOL last) solution
2022-07-06 15:23:00 【Cirrod】
1. stay eslint Of vue Appears when the project is compiled :
[ESLint] error: Newline required at end of file but not found (eol-last) terms of settlement
as a result of : There is no blank line at the end of the file code to indicate the end
Example :
Solution :
1. stay Edit the file code with a blank line at the end
( Not recommended , Because if you use vscode Of css-jss-formatter plug-in unit Words , The code will save the most Delete the blank line after )

2. Recommend the second solution
1. There is a configuration file in the project .editorconfig,insert_final_newline=true Change to false

2. .eslintrc.js Cancel the verification of the last rule in 'eol-last': 0
3. recompile
边栏推荐
- MySQL数据库(二)DML数据操作语句和基本的DQL语句
- Global and Chinese market for antiviral coatings 2022-2028: Research Report on technology, participants, trends, market size and share
- Mysql database (II) DML data operation statements and basic DQL statements
- Your wechat nickname may be betraying you
- How to do agile testing in automated testing?
- The wechat red envelope cover designed by the object is free! 16888
- LeetCode#62. Different paths
- Global and Chinese markets of PIM analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- 遇到程序员不修改bug时怎么办?我教你
- 基于485总线的评分系统双机实验报告
猜你喜欢

MySQL数据库(一)

ucore lab2 物理内存管理 实验报告

LeetCode#237. Delete nodes in the linked list

Brief introduction to libevent
Interview answering skills for software testing

Eigen User Guide (Introduction)

Practical cases, hand-in-hand teaching you to build e-commerce user portraits | with code

Visual analysis of data related to crawling cat's eye essays "sadness flows upstream into a river" | the most moving film of Guo Jingming's five years

ucore lab5

Heap, stack, queue
随机推荐
Global and Chinese market of barrier thin film flexible electronics 2022-2028: Research Report on technology, participants, trends, market size and share
The minimum number of operations to convert strings in leetcode simple problem
What are the software testing methods? Show you something different
Global and Chinese markets of PIM analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
Currently, mysql5.6 is used. Which version would you like to upgrade to?
UCORE LaB6 scheduler experiment report
ucore lab1 系统软件启动过程 实验报告
Practical cases, hand-in-hand teaching you to build e-commerce user portraits | with code
Global and Chinese markets for complex programmable logic devices 2022-2028: Research Report on technology, participants, trends, market size and share
pytest
ucore lab7
Collection集合与Map集合
LeetCode#412. Fizz Buzz
Servlet
Capitalize the title of leetcode simple question
Preface to the foundations of Hilbert geometry
UCORE lab5 user process management experiment report
Emqtt distribution cluster and node bridge construction
Brief description of compiler optimization level
Daily code 300 lines learning notes day 9