Skip to content

Commit

Permalink
feat(create-quasar/docs): update tsconfig vue-tsc file name
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Mar 8, 2024
1 parent 15db98b commit 65c2c7b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
}]<% } %><% if (preset.lint) { %><% if (preset.i18n) { %>,<% } %>
['vite-plugin-checker', {
vueTsc: {
tsconfigPath: 'tsconfig-vue-tsc.json'
tsconfigPath: 'tsconfig.vue-tsc.json'
},
eslint: {
lintCommand: 'eslint "./**/*.{js,ts,mjs,cjs,vue}"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = configure(function (/* ctx */) {
}]<% } %><% if (preset.lint) { %><% if (preset.i18n) { %>,<% } %>
['vite-plugin-checker', {
vueTsc: {
tsconfigPath: 'tsconfig-vue-tsc.json'
tsconfigPath: 'tsconfig.vue-tsc.json'
},
eslint: {
lintCommand: 'eslint "./**/*.{js,ts,mjs,cjs,vue}"'
Expand Down
14 changes: 5 additions & 9 deletions docs/quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,11 @@ export default ctx => ({
vitePlugins: [
mdPlugin,
examplesPlugin(ctx.prod),
[
'vite-plugin-checker',
{
eslint: {
lintCommand: 'eslint --report-unused-disable-directives "./**/*.{js,mjs,cjs,vue}"'
}
},
{ server: false }
]
[ 'vite-plugin-checker', {
eslint: {
lintCommand: 'eslint --report-unused-disable-directives "./**/*.{js,mjs,cjs,vue}"'
}
}, { server: false } ]
],

extendViteConf (viteConf, { isClient }) {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/quasar-cli-vite/linter.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ $ bun add --dev vite-plugin-checker vue-tsc@^1.0.0 typescript@~5.3.0
Notice the `typescript` dependency is <= 5.3. There is currently an issue with ESLint and newer TS (5.4+). This is only a temporary thing until upstream fixes it.
:::

Create a file called `tsconfig-vue-tsc.json` in the root of your project folder:
Create a file called `tsconfig.vue-tsc.json` in the root of your project folder:

```json /tsconfig-vue-tsc.json
```json /tsconfig.vue-tsc.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
Expand All @@ -112,7 +112,7 @@ build: {
vitePlugins: [
['vite-plugin-checker', {
vueTsc: {
tsconfigPath: 'tsconfig-vue-tsc.json'
tsconfigPath: 'tsconfig.vue-tsc.json'
},
eslint: {
lintCommand: 'eslint "./**/*.{js,ts,mjs,cjs,vue}"'
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/quasar-cli-vite/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ Notice the `typescript` dependency is <= 5.3. There is currently an issue with E
/quasar.config.*.temporary.compiled*
```

Create a new file called `tsconfig-vue-tsc.json` in the root of your project folder:
Create a new file called `tsconfig.vue-tsc.json` in the root of your project folder:

```json /tsconfig-vue-tsc.json
```json /tsconfig.vue-tsc.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
Expand All @@ -230,7 +230,7 @@ Create a new file called `tsconfig-vue-tsc.json` in the root of your project fol
vitePlugins: [
+ ['vite-plugin-checker', {
+ vueTsc: {
+ tsconfigPath: 'tsconfig-vue-tsc.json'
+ tsconfigPath: 'tsconfig.vue-tsc.json'
+ },
+ eslint: {
+ lintCommand: 'eslint "./**/*.{js,ts,mjs,cjs,vue}"'
Expand Down

0 comments on commit 65c2c7b

Please sign in to comment.