Problem background
When using vscode to automatically save, it is found that there is a problem with each save format.
Solution:
There are only a few storage formats
The saving format of vscode itself uses the saving format configured by eslint
so after analysis, the problem is clear at a glance.
After investigation,
it was originally set in vscode settings.json
"editor.formatOnSave": true,
Also set
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
In this way, the first save takes effect, but the second save uses other configurations, resulting in inconsistency between the two
handle
"editor.formatOnSave": true,
Just delete this configuration. When saving, you can only format it according to the eslint configuration.
Read More:
- Vscode save Vue format eslint check error [How to Solve]
- Vue: How to Solve Eslint error
- ERROR in [eslint] ESLint is not a constructor (How to Solve)
- [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
- How to Solve Vue editor bridge error
- How to Solve VUE Error: Mixed spaces and tabs
- [Solved] Vue eslint Error: Component name “*****“ should always be multi-word
- How to Solve Vue loading 3D model Error
- How to Solve Vue3 Import lodash error
- [Solved] Vue Project startup error: no eslint configuration found
- How to Solve Vue3 using deep syntax Error
- How to Solve @Vue/cli3.X Using less Error
- How to Solve Vue cli configuration SCSS global variable error
- [Solved] Syntax Error: Error: No ESLint configuration found & TypeError: eslint.CLIEngine is not a constructor
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- How to Solve “Vue is not defined” Error
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- How to Solve Vue3 jweixin-module Error
- How to Solve Vue project Startup Error (Node Upgrade issue)