diff --git a/docs/package.json b/docs/package.json index 5ef0dbd7..f3d8261d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -6,7 +6,7 @@ "dev": "pnpm run typedoc:md && vitepress dev src", "docs": "pnpm run typedoc:md && vitepress build src", "serve": "vitepress serve src", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "typedoc:md": "typedoc --options ./typedoc.md.json", "typedocs": "typedoc --options ./typedoc.json" }, diff --git a/examples/vite/package.json b/examples/vite/package.json index 9cea383f..f0c3285d 100644 --- a/examples/vite/package.json +++ b/examples/vite/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "dev": "vite", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix ." + "lint": "eslint --ext .js,.ts,.vue ./" }, "dependencies": { "vueflow": "workspace:*", diff --git a/packages/background/package.json b/packages/background/package.json index 2e25fd52..d873a659 100644 --- a/packages/background/package.json +++ b/packages/background/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/packages/controls/package.json b/packages/controls/package.json index c43e17d6..224910d4 100644 --- a/packages/controls/package.json +++ b/packages/controls/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/packages/core/package.json b/packages/core/package.json index eeaa1c09..67d64c3f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -29,7 +29,7 @@ "types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && tsc -p ./tsconfig.build.json && shx rm -rf tmp && pnpm lint:dist && pnpm run patch", "patch": "node patch/slots.js", "theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "prepublishOnly": "shx cp ../../README.md .", "postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"", diff --git a/packages/minimap/package.json b/packages/minimap/package.json index 41e9bc53..a2f210b1 100644 --- a/packages/minimap/package.json +++ b/packages/minimap/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/packages/node-resizer/package.json b/packages/node-resizer/package.json index 56cf5c93..f3ac1d76 100644 --- a/packages/node-resizer/package.json +++ b/packages/node-resizer/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/packages/node-toolbar/package.json b/packages/node-toolbar/package.json index 2c79e090..b41950a5 100644 --- a/packages/node-toolbar/package.json +++ b/packages/node-toolbar/package.json @@ -24,7 +24,7 @@ "scripts": { "build": "vite build", "types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/packages/pathfinding-edge/package.json b/packages/pathfinding-edge/package.json index 6b8ea465..ecc74cd1 100644 --- a/packages/pathfinding-edge/package.json +++ b/packages/pathfinding-edge/package.json @@ -24,7 +24,7 @@ "types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && shx rm -rf tmp", "postbuild": "shx rm -rf tmp", "test": "exit 0;", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix ." + "lint": "eslint --ext .js,.ts,.vue ./" }, "peerDependencies": { "@vue-flow/core": "^1.12.2" diff --git a/packages/vue-flow/package.json b/packages/vue-flow/package.json index d7c49697..042adb56 100644 --- a/packages/vue-flow/package.json +++ b/packages/vue-flow/package.json @@ -25,7 +25,7 @@ "build": "vite build", "types": "tsc && shx rm -rf tmp && pnpm lint:dist", "theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css", - "lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .", + "lint": "eslint --ext .js,.ts,.vue ./", "lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix --ignore-pattern !**/* ./dist", "test": "exit 0" }, diff --git a/tests/package.json b/tests/package.json index 5f010dc3..1f76c28a 100644 --- a/tests/package.json +++ b/tests/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "test": "cypress run --component", - "open": "cypress open" + "open": "cypress open", + "lint": "eslint --ext .js,.ts,.vue ./" }, "dependencies": { "@vue-flow/background": "workspace:*",