Browse Source

better settings

master
pvincent 4 years ago
parent
commit
6552c68428
  1. 3
      .vscode/settings.json
  2. 2
      package.json
  3. 11
      src/shims-vue.d.ts

3
.vscode/settings.json

@ -1,5 +1,6 @@
{
"cSpell.enabled": false,
"eslint.enable": true,
"vetur.validation.template": false,
"cSpell.enabled": false,
"editor.formatOnSave": true
}

2
package.json

@ -7,7 +7,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"linter": "eslint --ext .js,.ts,.vue --ignore-pattern \"*.d.ts\" src"
"linter": "eslint --ext .js,.ts,.vue src"
},
"engines": {
"npm": "^7"

11
src/shims-vue.d.ts

@ -1,10 +1,5 @@
/*
this is a defintion typescript file
unvalid for eslint, ie: --ignore-pattern \"*.d.ts\" in package.json
*/
declare module "*.vue" {
import { defineComponent } from "vue"
declare module '*.vue' {
import { defineComponent } from 'vue'
const Component: ReturnType<typeof defineComponent>
export default Component
}
@ -13,4 +8,4 @@ declare module "*.vue" {
declare const APP_VERSION: string
declare const APP_TITLE: string
declare const APP_REPOSITORY: string
declare const APP_LICENSE: string
declare const APP_LICENSE: string
Loading…
Cancel
Save