Comments (5)
We might want to include this in the template should the generated code keep following this style, to avoid formatting errors. Although it is kind of opinionated.
from create-vue.
Single and double quotes are supported in the JS/ES spec. This doesn't have anything to do with Vue, Create Vue, Vite, ESLint, or Prettier.
from create-vue.
It's prettiers default config to prefer double quotes. It can be configured but this project doesn't do that ATM.
from create-vue.
Please refer to
https://github.com/vuejs/core/blob/main/.prettierrc#L2
https://github.com/vuejs/create-vue/blob/main/.prettierrc#L4
prettier options
https://prettier.io/docs/en/options.html
prettier Configuration File
https://prettier.io/docs/en/configuration.html
my config .prettierrc.yaml
semi: false
singleQuote: true
endOfLine: auto
from create-vue.
Please refer to https://github.com/vuejs/core/blob/main/.prettierrc#L2 https://github.com/vuejs/create-vue/blob/main/.prettierrc#L4
prettier options https://prettier.io/docs/en/options.html prettier Configuration File https://prettier.io/docs/en/configuration.html
my config
.prettierrc.yaml
semi: false singleQuote: true endOfLine: auto
This can be solved by adding a Prettier configuration file to the root of the Vue project, which you want to include when you create a Vue project and select Prettier
.prettierrc
{
"singleQuote": true,
"semi": false,
"trailingComma": "none"
}
from create-vue.
Related Issues (20)
- Use Pinia in an app created with Pinia HOT 2
- How is this different from `npm create vite@latest -- --template vue`? HOT 2
- Module generates eslint config with the old commonJS syntax HOT 8
- Remove “Vue.vscode-typescript-vue-plugin” HOT 1
- Vite Plugin I Vue DevTools HOT 4
- How to set up TS configuration to use ES2021 features ? HOT 4
- regression: flags are not interpreted correctly in v3.10 when creating project HOT 2
- cannot find module using @ absolute path syntax Visual Studio Code HOT 5
- Add ESLint run-on-save VSCode settings HOT 3
- create vue project error . TypeError: (0 , import_node_util.parseArgs) is not a function HOT 5
- vue template script buggy HOT 2
- TS2307: Cannot find module '@/components/echarts' or its corresponding type declarations. HOT 8
- Add Issue templates HOT 1
- Add PR template HOT 1
- Cannot find base config file "@vue/tsconfig/tsconfig.dom.json" [tsconfig.json] HOT 14
- The e2e tests in the subfolders under e2e/ are being executed by vitest
- ESLint v9 support HOT 1
- Windows 10 bun type error HOT 1
- typescript .vue file include @types/node when include some package HOT 2
- 升级vue3小版本后 切换路由页面空白,控制台报错! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-vue.