From 18e46424f71a422e130ced6f5bc51a97a16fa42b Mon Sep 17 00:00:00 2001 From: Alvaro Saburido Date: Tue, 17 Sep 2024 10:06:10 +0200 Subject: [PATCH] chore: remove husky and fix back linter (#834) * chore: remove husky * chore: update deps * chore: revert perfectionist sort --- .husky/install.mjs | 8 - .husky/pre-push | 25 - .../theme/components/LocalOrbitControls.vue | 4 +- .../theme/components/StackBlitzEmbed.vue | 2 +- docs/.vitepress/theme/index.ts | 2 +- package.json | 37 +- .../nuxt/components/EnvironmentLocal.vue | 2 +- playground/vue/src/composables/useFBX.ts | 2 +- playground/vue/src/composables/useGLTF.ts | 4 +- .../pages/advanced/devicePixelRatio/index.vue | 2 +- .../vue/src/pages/advanced/fbo/useFBO.ts | 4 +- playground/vue/src/pages/basic/Lights.vue | 4 +- .../vue/src/pages/basic/ready/index.vue | 4 +- .../pages/cameras/multipleCameras/index.vue | 2 +- playground/vue/src/pages/events/index.vue | 2 +- .../src/pages/issues/701/TheExperience.vue | 2 +- pnpm-lock.yaml | 3936 ++++++++++------- src/components/TresCanvas.vue | 22 +- src/composables/useCamera/index.ts | 8 +- src/composables/useLoader/index.ts | 2 +- src/composables/useLoop/index.ts | 2 +- src/composables/useRaycaster/index.ts | 8 +- src/composables/useRenderLoop/index.ts | 4 +- src/composables/useRenderer/index.ts | 14 +- src/composables/useSizes/index.ts | 2 +- src/composables/useTexture/component.vue | 2 +- src/composables/useTexture/index.ts | 2 +- .../useTresContextProvider/index.ts | 12 +- src/composables/useTresEventManager/index.ts | 4 +- .../createReadyEventHook/index.ts | 2 +- src/composables/useTresReady/index.ts | 2 +- src/core/catalogue.ts | 2 +- src/core/loop.test.ts | 2 +- src/core/loop.ts | 6 +- src/core/nodeOps.test.ts | 6 +- src/core/nodeOps.ts | 5 +- src/devtools/plugin.ts | 10 +- src/directives/vDistanceTo.ts | 4 +- src/directives/vLightHelper.ts | 8 +- src/utils/createPriorityEventHook.ts | 2 +- src/utils/index.ts | 4 +- src/utils/normalize.ts | 2 +- src/utils/test-utils.ts | 2 +- 43 files changed, 2399 insertions(+), 1782 deletions(-) delete mode 100644 .husky/install.mjs delete mode 100644 .husky/pre-push diff --git a/.husky/install.mjs b/.husky/install.mjs deleted file mode 100644 index 026d396bf..000000000 --- a/.husky/install.mjs +++ /dev/null @@ -1,8 +0,0 @@ -// Skip Husky install in production and CI -// http://typicode.github.io/husky/how-to.html -if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') { - process.exit(0) -} -const husky = (await import('husky')).default -// eslint-disable-next-line no-console -console.log(husky()) diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100644 index ad4e01ef9..000000000 --- a/.husky/pre-push +++ /dev/null @@ -1,25 +0,0 @@ -# NOTE: Don't fail immediately after error -# This allows us to echo messages even if the linter exits with an error. -set +e - -# NOTE: --silent to keep pnpm from echoing, e.g., "> @tresjs/core[...] lint" -# --max-warnings=0 to fail on errors *and* warnings -pnpm --silent lint --max-warnings=0 - -# NOTE: Capture linter exit status. -LINT_STATUS=$? - -# NOTE: If linting failed, inform user how to proceed. -if [[ $LINT_STATUS != 0 ]]; then - echo " -To fix linter problems: - pnpm lint --fix – fix automatically fixable problems - pnpm lint – print a list of problems to fix by hand - -To skip this verification and push anyway (not recommended): - git push --no-verify <...> -" -fi - -# NOTE: +e was set, so we have to return an exit status. -exit $LINT_STATUS \ No newline at end of file diff --git a/docs/.vitepress/theme/components/LocalOrbitControls.vue b/docs/.vitepress/theme/components/LocalOrbitControls.vue index 2576a86d3..e41ec93b5 100644 --- a/docs/.vitepress/theme/components/LocalOrbitControls.vue +++ b/docs/.vitepress/theme/components/LocalOrbitControls.vue @@ -1,10 +1,10 @@