Skip to content

Run the format script on project creation and add a .prettierrc file to JS templates #17100

Open
@laoshaw

Description

@laoshaw

What happened?

after created the initial quasar v2 project without typescript, there is not .prettierrc(which is fine, the default prettier config will be used), and run prettier against src/ will modify nearly all the code, so the initial code base is not prettier clean

What did you expect to happen?

initial code is prettier clean

Reproduction URL

https://codepen.io/rstoenescu/pen/xxEvBLRx

How to reproduce?

yarn create quasar (do not turn on typescript)
cd src
prettier -w (will modify most of the vue files)

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

Chrome

Quasar info output

Operating System - Linux(6.2.0-37-generic) - linux/x64
NodeJs - 20.12.0

Global packages
  NPM - 10.5.0
  yarn - 1.22.19
  @quasar/cli - 2.4.0
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.15.2 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app-vite - 1.8.0 -- Quasar Framework App CLI with Vite
  @quasar/extras - 1.16.11 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.4.21 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.3.0
  pinia - Not installed
  vuex - Not installed
  vite - 2.9.18 -- Native-ESM powered web dev build tool
  eslint - 8.57.0 -- An AST-based pattern checker for JavaScript.
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  @capacitor/core - Not installed
  @capacitor/cli - Not installed
  @capacitor/android - Not installed
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - xps8300
  enp3s0 - 192.168.0.167
  wlp2s0b1 - 192.168.0.229

Relevant log output

none

Additional context

none

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions