Browse Source

better settings

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

3
.vscode/settings.json

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

2
package.json

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

9
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> const Component: ReturnType<typeof defineComponent>
export default Component export default Component
} }

Loading…
Cancel
Save