chore: lint
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --open",
|
"dev": "vite --open",
|
||||||
"lint": "eslint --ext .js,.ts,.vue ./"
|
"lint": "eslint --ext .js,.ts,.vue ./ && vue-tsc --noEmit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue-flow/background": "workspace:*",
|
"@vue-flow/background": "workspace:*",
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
"vite": "^4.3.5",
|
"vite": "^4.3.5",
|
||||||
"vite-svg-loader": "^3.6.0",
|
"vite-svg-loader": "^3.6.0",
|
||||||
"vue": "^3.2.45",
|
"vue": "^3.2.45",
|
||||||
"vue-router": "^4.1.6"
|
"vue-router": "^4.1.6",
|
||||||
|
"vue-tsc": "^1.6.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<script setup>
|
<script lang="ts" setup>
|
||||||
|
import type { Elements } from '@vue-flow/core'
|
||||||
import { VueFlow } from '@vue-flow/core'
|
import { VueFlow } from '@vue-flow/core'
|
||||||
import ConnectionLine from './ConnectionLine.vue'
|
import ConnectionLine from './ConnectionLine.vue'
|
||||||
|
|
||||||
const elements = ref([
|
const elements = ref<Elements>([
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
type: 'input',
|
type: 'input',
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useVueFlow } from '@vue-flow/core'
|
import { useVueFlow } from '@vue-flow/core'
|
||||||
|
|
||||||
const { nodesSelectionActive, addSelectedNodes, getNodes, viewport } = useVueFlow()
|
const { nodesSelectionActive, addSelectedNodes, getNodes, viewport } = useVueFlow()
|
||||||
|
|
||||||
function selectAll() {
|
function selectAll() {
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
"emitDeclarationOnly": false,
|
||||||
|
"allowJs": true,
|
||||||
"types": [
|
"types": [
|
||||||
"vite/client"
|
"vite/client"
|
||||||
],
|
],
|
||||||
|
|||||||
Generated
+7
-4
@@ -201,7 +201,7 @@ importers:
|
|||||||
version: link:../../packages/node-toolbar
|
version: link:../../packages/node-toolbar
|
||||||
pinia:
|
pinia:
|
||||||
specifier: ^2.0.35
|
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:
|
vueflow:
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/vue-flow
|
version: link:../../packages/vue-flow
|
||||||
@@ -236,6 +236,9 @@ importers:
|
|||||||
vue-router:
|
vue-router:
|
||||||
specifier: ^4.1.6
|
specifier: ^4.1.6
|
||||||
version: 4.1.6(vue@3.2.47)
|
version: 4.1.6(vue@3.2.47)
|
||||||
|
vue-tsc:
|
||||||
|
specifier: ^1.6.5
|
||||||
|
version: 1.6.5(typescript@4.9.5)
|
||||||
|
|
||||||
packages/background:
|
packages/background:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
@@ -3691,7 +3694,7 @@ packages:
|
|||||||
/@vue/compiler-sfc@3.3.2:
|
/@vue/compiler-sfc@3.3.2:
|
||||||
resolution: {integrity: sha512-jG4jQy28H4BqzEKsQqqW65BZgmo3vzdLHTBjF+35RwtDdlFE+Fk1VWJYUnDMMqkFBo6Ye1ltSKVOMPgkzYj7SQ==}
|
resolution: {integrity: sha512-jG4jQy28H4BqzEKsQqqW65BZgmo3vzdLHTBjF+35RwtDdlFE+Fk1VWJYUnDMMqkFBo6Ye1ltSKVOMPgkzYj7SQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/parser': 7.21.4
|
'@babel/parser': 7.21.8
|
||||||
'@vue/compiler-core': 3.3.2
|
'@vue/compiler-core': 3.3.2
|
||||||
'@vue/compiler-dom': 3.3.2
|
'@vue/compiler-dom': 3.3.2
|
||||||
'@vue/compiler-ssr': 3.3.2
|
'@vue/compiler-ssr': 3.3.2
|
||||||
@@ -9230,7 +9233,7 @@ packages:
|
|||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
dev: true
|
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==}
|
resolution: {integrity: sha512-P1IKKQWhxGXiiZ3atOaNI75bYlFUbRxtJdhPLX059Z7+b9Z04rnTZdSY8Aph1LA+/4QEMAYHsTQ638Wfe+6K5g==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@vue/composition-api': ^1.4.0
|
'@vue/composition-api': ^1.4.0
|
||||||
@@ -9243,6 +9246,7 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vue/devtools-api': 6.5.0
|
'@vue/devtools-api': 6.5.0
|
||||||
|
typescript: 4.9.5
|
||||||
vue: 3.2.47
|
vue: 3.2.47
|
||||||
vue-demi: 0.14.0(vue@3.2.47)
|
vue-demi: 0.14.0(vue@3.2.47)
|
||||||
dev: false
|
dev: false
|
||||||
@@ -11069,7 +11073,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
|
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
|
||||||
engines: {node: '>=4.2.0'}
|
engines: {node: '>=4.2.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
|
||||||
|
|
||||||
/ufo@0.8.6:
|
/ufo@0.8.6:
|
||||||
resolution: {integrity: sha512-fk6CmUgwKCfX79EzcDQQpSCMxrHstvbLswFChHS0Vump+kFkw7nJBfTZoC1j0bOGoY9I7R3n2DGek5ajbcYnOw==}
|
resolution: {integrity: sha512-fk6CmUgwKCfX79EzcDQQpSCMxrHstvbLswFChHS0Vump+kFkw7nJBfTZoC1j0bOGoY9I7R3n2DGek5ajbcYnOw==}
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ function connect(from: string, to: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||||
namespace Cypress {
|
namespace Cypress {
|
||||||
interface Chainable {
|
interface Chainable {
|
||||||
mount: typeof mount
|
mount: typeof mount
|
||||||
|
|||||||
Reference in New Issue
Block a user