quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.75k stars 3.5k forks source link

Bad template in PWA when use Prettier Eslint #6259

Closed MrJmpl3 closed 4 years ago

MrJmpl3 commented 4 years ago

Describe the bug The template of PWA generate error when compile, because has problem with Eslint - Prettier.

https://github.com/quasarframework/quasar/blob/dev/app/templates/pwa/register-service-worker.js

Related: https://github.com/quasarframework/quasar-starter-kit/pull/72/files

To Reproduce

Expected behavior Compile correct and open browser

pdanpdan commented 4 years ago

Hello. The template files use the standard profile. In case you are using some other profile:

"scripts": {
  "lint": "eslint --ext .js,.vue src src-pwa",
  ...
},          
MrJmpl3 commented 4 years ago

@pdanpdan I say, The cli need make a pwa template with config of prettier.

I wish this is added in the roadmap.