Code formatting ?
-
Hello,
I’m still starting on quasar and vue, and I face new problem as I don’t have a lot of time…
It’s about code formatting !
Everything was fine for me since a long time and after a VSC update, all my code formatting is modified.
As I want more to focus on dev as tool configurations, do you have a good tuto to configure VSC + Eslint + Vetur + PrettierI followed https://quasar.dev/start/vs-code-configuration
but I don’t find answers for my problems.
in my .vue files (not .js) :console.log( "onPwdChange/refreshToken - error.config", error.config );
after save appears as :
console.log( "onPwdChange/refreshToken - error.config", error.config );
and this.$q.notify() appears on many lines…
Do you have some clues to solve this ?
I’m wondering if all modules are necesserally : Eslint + Vetur + Prettier ?
Thanks -
You could disable code formatting entirely as a beginner. It can be quite a mess to setup exactly what you want. Can’t help you with VSC because I am using Intellij.
Btw this is not a bad code format style. Very common to stack params horizontally like this.
console.log( "onPwdChange/refreshToken - error.config", error.config );
-
If this can help :
- VSC parameters could be overiden by project config files,
- I just changed : “prettier.printWidth”: 250,
- VSC parameters could be overiden by project config files,
-
But don’t work on
setTimeout(() => { this.anim_update_pwd = false; }, 3000);