chore: lint

This commit is contained in:
braks
2023-05-20 09:40:01 +02:00
committed by Braks
parent 0e5a678a7b
commit 94b43a68d6
6 changed files with 17 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "vite --open",
"lint": "eslint --ext .js,.ts,.vue ./"
"lint": "eslint --ext .js,.ts,.vue ./ && vue-tsc --noEmit"
},
"dependencies": {
"@vue-flow/background": "workspace:*",
@@ -26,6 +26,7 @@
"vite": "^4.3.5",
"vite-svg-loader": "^3.6.0",
"vue": "^3.2.45",
"vue-router": "^4.1.6"
"vue-router": "^4.1.6",
"vue-tsc": "^1.6.5"
}
}

View File

@@ -1,8 +1,9 @@
<script setup>
<script lang="ts" setup>
import type { Elements } from '@vue-flow/core'
import { VueFlow } from '@vue-flow/core'
import ConnectionLine from './ConnectionLine.vue'
const elements = ref([
const elements = ref<Elements>([
{
id: '1',
type: 'input',

View File

@@ -1,5 +1,6 @@
<script lang="ts" setup>
import { useVueFlow } from '@vue-flow/core'
const { nodesSelectionActive, addSelectedNodes, getNodes, viewport } = useVueFlow()
function selectAll() {

View File

@@ -5,6 +5,8 @@
"noEmit": true,
"declaration": false,
"resolveJsonModule": true,
"emitDeclarationOnly": false,
"allowJs": true,
"types": [
"vite/client"
],

11
pnpm-lock.yaml generated
View File

@@ -201,7 +201,7 @@ importers:
version: link:../../packages/node-toolbar
pinia:
specifier: ^2.0.35
version: 2.0.35(vue@3.2.47)
version: 2.0.35(typescript@4.9.5)(vue@3.2.47)
vueflow:
specifier: workspace:*
version: link:../../packages/vue-flow
@@ -236,6 +236,9 @@ importers:
vue-router:
specifier: ^4.1.6
version: 4.1.6(vue@3.2.47)
vue-tsc:
specifier: ^1.6.5
version: 1.6.5(typescript@4.9.5)
packages/background:
devDependencies:
@@ -3691,7 +3694,7 @@ packages:
/@vue/compiler-sfc@3.3.2:
resolution: {integrity: sha512-jG4jQy28H4BqzEKsQqqW65BZgmo3vzdLHTBjF+35RwtDdlFE+Fk1VWJYUnDMMqkFBo6Ye1ltSKVOMPgkzYj7SQ==}
dependencies:
'@babel/parser': 7.21.4
'@babel/parser': 7.21.8
'@vue/compiler-core': 3.3.2
'@vue/compiler-dom': 3.3.2
'@vue/compiler-ssr': 3.3.2
@@ -9230,7 +9233,7 @@ packages:
engines: {node: '>=6'}
dev: true
/pinia@2.0.35(vue@3.2.47):
/pinia@2.0.35(typescript@4.9.5)(vue@3.2.47):
resolution: {integrity: sha512-P1IKKQWhxGXiiZ3atOaNI75bYlFUbRxtJdhPLX059Z7+b9Z04rnTZdSY8Aph1LA+/4QEMAYHsTQ638Wfe+6K5g==}
peerDependencies:
'@vue/composition-api': ^1.4.0
@@ -9243,6 +9246,7 @@ packages:
optional: true
dependencies:
'@vue/devtools-api': 6.5.0
typescript: 4.9.5
vue: 3.2.47
vue-demi: 0.14.0(vue@3.2.47)
dev: false
@@ -11069,7 +11073,6 @@ packages:
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
engines: {node: '>=4.2.0'}
hasBin: true
dev: true
/ufo@0.8.6:
resolution: {integrity: sha512-fk6CmUgwKCfX79EzcDQQpSCMxrHstvbLswFChHS0Vump+kFkw7nJBfTZoC1j0bOGoY9I7R3n2DGek5ajbcYnOw==}

View File

@@ -91,6 +91,7 @@ function connect(from: string, to: string) {
}
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
mount: typeof mount