当前位置:网站首页>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
边栏推荐
- Leetcode notes - dynamic planning -day6
- Dlib detects blink times based on video stream
- How to write the bug report of software test?
- Thinking about three cups of tea
- Global and Chinese market of barrier thin film flexible electronics 2022-2028: Research Report on technology, participants, trends, market size and share
- 线程及线程池
- The maximum number of words in the sentence of leetcode simple question
- MySQL transactions
- 软件测试行业的未来趋势及规划
- C4D quick start tutorial - creating models
猜你喜欢

What are the commonly used SQL statements in software testing?
How to do agile testing in automated testing?

Portapack application development tutorial (XVII) nRF24L01 launch B

如何成为一个好的软件测试员?绝大多数人都不知道的秘密
Future trend and planning of software testing industry

The wechat red envelope cover designed by the object is free! 16888

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

Brief description of compiler optimization level

Crawling cat's eye movie review, data visualization analysis source code operation instructions

Threads et pools de threads
随机推荐
自动化测试中敏捷测试怎么做?
Sorting odd and even subscripts respectively for leetcode simple problem
Jupyter installation and use tutorial
Description of Vos storage space, bandwidth occupation and PPS requirements
Servlet
Mysql database (II) DML data operation statements and basic DQL statements
Future trend and planning of software testing industry
Which version of MySQL does php7 work best with?
MySQL development - advanced query - take a good look at how it suits you
LeetCode#19. Delete the penultimate node of the linked list
几款开源自动化测试框架优缺点对比你知道吗?
ucorelab4
Global and Chinese markets of PIM analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
Do you know the advantages and disadvantages of several open source automated testing frameworks?
A method and implementation of using VSTO to prohibit excel cell editing
CSAPP homework answers chapter 789
China's county life record: go upstairs to the Internet, go downstairs' code the Great Wall '
Introduction to variable parameters
LeetCode#2062. Count vowel substrings in strings
线程及线程池