diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 051fd7c4ae..d8a90f85a9 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -15,7 +15,7 @@ /** * @type {Cypress.PluginConfig} */ -// eslint-disable-next-line no-unused-vars + // eslint-disable-next-line @typescript-eslint/no-unused-vars module.exports = (on, config) => { diff --git a/package.json b/package.json index 2d54bac38b..74414d02fa 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "version": "0.32.3", "private": true, "packageManager": "pnpm@7.1.7", + "engines": { + "node": ">=14.0.0" + }, "scripts": { "build": "pnpm -r --filter=./packages/** run build", "ci:publish": "zx scripts/publish.mjs", @@ -70,8 +73,5 @@ "{packages,.vitepress,scripts}/**/*.{js,ts,vue,json}": [ "eslint --fix" ] - }, - "engines": { - "node": ">=14.0.0" } } diff --git a/packages/client/builtin/Monaco.vue b/packages/client/builtin/Monaco.vue index 1dce018b86..1a9e06a079 100644 --- a/packages/client/builtin/Monaco.vue +++ b/packages/client/builtin/Monaco.vue @@ -74,11 +74,9 @@ onMounted(() => { 'allow-top-navigation-by-user-activation', ].join(' ')) - /* eslint-disable no-undef */ frame.src = __DEV__ ? `${location.origin}${__SLIDEV_CLIENT_ROOT__}/iframes/monaco/index.html` : `${import.meta.env.BASE_URL}iframes/monaco/index.html` - /* eslint-enable no-undef */ frame.style.backgroundColor = 'transparent' diff --git a/packages/client/builtin/RenderWhen.vue b/packages/client/builtin/RenderWhen.vue index 05480b2746..2f023d3f33 100644 --- a/packages/client/builtin/RenderWhen.vue +++ b/packages/client/builtin/RenderWhen.vue @@ -13,7 +13,7 @@ const { context } = props const currentContext = inject(injectionSlideContext) -const shouldRender = computed(() => context instanceof Array ? context.some(contextMatch) : contextMatch(context)) +const shouldRender = computed(() => Array.isArray(context) ? context.some(contextMatch) : contextMatch(context)) function contextMatch(context: Context) { if (context === currentContext) diff --git a/packages/client/internals/Play.vue b/packages/client/internals/Play.vue index af3a0e8846..5394176480 100644 --- a/packages/client/internals/Play.vue +++ b/packages/client/internals/Play.vue @@ -48,8 +48,8 @@ if (__SLIDEV_FEATURE_DRAWINGS__) :scale="slideScale" @pointerdown="onClick" > -