[Vue3] Fixed Components with components options definied. Fixed config files.

This commit is contained in:
Ferdinand Thiessen 2021-01-31 17:06:52 +01:00
parent ba0696c3c0
commit 6be07b1001
4 changed files with 21 additions and 8 deletions

View File

@ -25,5 +25,7 @@
} }
}, },
"vetur.format.defaultFormatter.ts": "prettier-tslint", "vetur.format.defaultFormatter.ts": "prettier-tslint",
"typescript.format.enable": false "typescript.format.enable": false,
"prettier.packageManager": "yarn",
"prettier.configPath": "./package.json"
} }

View File

@ -6,8 +6,8 @@
"author": "Tim Gröger <tim@groeger-clan.de>", "author": "Tim Gröger <tim@groeger-clan.de>",
"private": true, "private": true,
"scripts": { "scripts": {
"lint": "eslint --ext .js,.ts,.vue ./", "format": "prettier --config ./package.json --write '{,!(node_modules)/**/}*.ts'",
"test": "echo \"No test specified\" && exit 0" "lint": "eslint --ext .js,.ts,.vue ./"
}, },
"dependencies": { "dependencies": {
"@quasar/extras": "^1.9.10", "@quasar/extras": "^1.9.10",
@ -20,7 +20,8 @@
"prettier": { "prettier": {
"singleQuote": true, "singleQuote": true,
"semi": true, "semi": true,
"printWidth": 100 "printWidth": 100,
"arrowParens": "always"
}, },
"devDependencies": { "devDependencies": {
"@quasar/app": "^3.0.0-alpha.8", "@quasar/app": "^3.0.0-alpha.8",

View File

@ -7,10 +7,11 @@
// https://quasar.dev/quasar-cli/quasar-conf-js // https://quasar.dev/quasar-cli/quasar-conf-js
/* eslint-env node */ /* eslint-env node */
import ESLintPlugin from 'eslint-webpack-plugin'; /* eslint-disable @typescript-eslint/no-var-requires */
import { configure } from 'quasar/wrappers'; const ESLintPlugin = require('eslint-webpack-plugin')
const { configure } = require('quasar/wrappers');
export default configure(function (/* ctx */) {
module.exports = configure(function (/* ctx */) {
return { return {
// https://quasar.dev/quasar-cli/supporting-ts // https://quasar.dev/quasar-cli/supporting-ts
// https://quasar.dev/quasar-cli/supporting-ts // https://quasar.dev/quasar-cli/supporting-ts

9
src/shims-vue.d.ts vendored
View File

@ -1,5 +1,14 @@
//https://github.com/vuejs/vue-next/issues/3130
declare module '*.vue' {
import { ComponentOptions } from 'vue';
const component: ComponentOptions;
export default component;
}
/*
// Mocks all files ending in `.vue` showing them as plain Vue instances // Mocks all files ending in `.vue` showing them as plain Vue instances
declare module '*.vue' { declare module '*.vue' {
import Vue from 'vue'; import Vue from 'vue';
export default Vue; export default Vue;
} }
*/