diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f06235c4..00000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -dist diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index b3e4ba32..00000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,45 +0,0 @@ -// @ts-check - -module.exports = { - root: true, - parser: 'vue-eslint-parser', - parserOptions: { - parser: '@typescript-eslint/parser', - sourceType: 'module', - }, - plugins: ['@typescript-eslint'], - extends: ['plugin:vue/vue3-recommended'], - rules: { - 'no-debugger': 'error', - 'no-console': ['error', { allow: ['warn', 'error', 'info', 'clear'] }], - 'sort-imports': ['error', { ignoreDeclarationSort: true }], - 'no-duplicate-imports': 'error', - - // This rule enforces the preference for using '@ts-expect-error' comments in TypeScript - // code to indicate intentional type errors, improving code clarity and maintainability. - '@typescript-eslint/prefer-ts-expect-error': 'error', - // Enforce the use of 'import type' for importing types - '@typescript-eslint/consistent-type-imports': [ - 'error', - { - fixStyle: 'inline-type-imports', - disallowTypeAnnotations: false, - }, - ], - // Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers - '@typescript-eslint/no-import-type-side-effects': 'error', - - 'vue/max-attributes-per-line': 'off', - 'vue/singleline-html-element-content-newline': 'off', - 'vue/multi-word-component-names': 'off', - 'vue/html-self-closing': [ - 'error', - { - html: { component: 'always', normal: 'always', void: 'any' }, - math: 'always', - svg: 'always', - }, - ], - }, - overrides: [], -} diff --git a/CHANGELOG.md b/CHANGELOG.md index dae1ac83..918d0ab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## [4.3.1](https://github.com/vuejs/repl/compare/v4.3.0...v4.3.1) (2024-07-03) + + +### Bug Fixes + +* match source file ([4cf06b6](https://github.com/vuejs/repl/commit/4cf06b63fa1807ccfbf14c0ef1f1fa9b1f268717)) + + +### Reverts + +* refactor: replace assert with assert-plus ([e55baa4](https://github.com/vuejs/repl/commit/e55baa481f70c387f24cebfdfa7f143814fb0ce2)) + + + # [4.3.0](https://github.com/vuejs/repl/compare/v4.2.1...v4.3.0) (2024-07-02) diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..02d611af --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,53 @@ +import eslint from '@eslint/js' +import tseslint from 'typescript-eslint' +import pluginVue from 'eslint-plugin-vue' + +export default tseslint.config( + { ignores: ['**/node_modules', '**/dist'] }, + eslint.configs.recommended, + tseslint.configs.base, + ...pluginVue.configs['flat/recommended'], + { + files: ['**/*.vue'], + languageOptions: { + parserOptions: { + parser: '@typescript-eslint/parser', + }, + }, + }, + { + rules: { + 'no-debugger': 'error', + 'no-console': ['error', { allow: ['warn', 'error', 'info', 'clear'] }], + 'no-unused-vars': 'off', + 'no-undef': 'off', + 'prefer-const': 'error', + 'sort-imports': ['error', { ignoreDeclarationSort: true }], + 'no-duplicate-imports': 'error', + // This rule enforces the preference for using '@ts-expect-error' comments in TypeScript + // code to indicate intentional type errors, improving code clarity and maintainability. + '@typescript-eslint/prefer-ts-expect-error': 'error', + // Enforce the use of 'import type' for importing types + '@typescript-eslint/consistent-type-imports': [ + 'error', + { + fixStyle: 'inline-type-imports', + disallowTypeAnnotations: false, + }, + ], + // Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers + '@typescript-eslint/no-import-type-side-effects': 'error', + 'vue/max-attributes-per-line': 'off', + 'vue/singleline-html-element-content-newline': 'off', + 'vue/multi-word-component-names': 'off', + 'vue/html-self-closing': [ + 'error', + { + html: { component: 'always', normal: 'always', void: 'any' }, + math: 'always', + svg: 'always', + }, + ], + }, + }, +) diff --git a/package.json b/package.json index 65a0aa3e..fca96e24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vue/repl", - "version": "4.3.0", + "version": "4.3.1", "description": "Vue component for editing Vue components", "packageManager": "pnpm@9.4.0", "type": "module", @@ -46,7 +46,7 @@ "build": "vite build", "build-preview": "vite build -c vite.preview.config.ts", "format": "prettier --write .", - "lint": "eslint --ext .ts,.vue .", + "lint": "eslint .", "typecheck": "vue-tsc --noEmit", "release": "bumpp --all", "version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", @@ -73,24 +73,24 @@ "devDependencies": { "@babel/standalone": "^7.24.7", "@babel/types": "^7.24.7", + "@eslint/js": "^9.6.0", "@rollup/plugin-replace": "^5.0.7", "@shikijs/monaco": "^1.10.0", "@types/babel__standalone": "^7.1.7", "@types/codemirror": "^5.60.15", "@types/hash-sum": "^1.0.2", "@types/node": "^20.14.9", - "@typescript-eslint/eslint-plugin": "^7.15.0", "@vitejs/plugin-vue": "^5.0.5", "@volar/jsdelivr": "~2.4.0-alpha.12", "@volar/monaco": "~2.4.0-alpha.12", "@vue/babel-plugin-jsx": "^1.2.2", "@vue/language-service": "~2.0.26-alpha.2", - "assert-plus": "^1.0.0", + "assert": "^2.1.0", "bumpp": "^9.4.1", "codemirror": "^5.65.16", "conventional-changelog-cli": "^5.0.0", "eslint": "^9.6.0", - "eslint-plugin-vue": "^9.26.0", + "eslint-plugin-vue": "^9.27.0", "fflate": "^0.8.2", "hash-sum": "^2.0.0", "lint-staged": "^15.2.7", @@ -100,6 +100,7 @@ "simple-git-hooks": "^2.11.1", "sucrase": "^3.35.0", "typescript": "^5.5.3", + "typescript-eslint": "^7.15.0", "vite": "^5.3.2", "vite-plugin-dts": "^3.9.1", "vscode-uri": "^3.0.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f9615c7..2367701e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@babel/types': specifier: ^7.24.7 version: 7.24.7 + '@eslint/js': + specifier: ^9.6.0 + version: 9.6.0 '@rollup/plugin-replace': specifier: ^5.0.7 version: 5.0.7(rollup@4.18.0) @@ -32,9 +35,6 @@ importers: '@types/node': specifier: ^20.14.9 version: 20.14.9 - '@typescript-eslint/eslint-plugin': - specifier: ^7.15.0 - version: 7.15.0(@typescript-eslint/parser@7.15.0(eslint@9.6.0)(typescript@5.5.3))(eslint@9.6.0)(typescript@5.5.3) '@vitejs/plugin-vue': specifier: ^5.0.5 version: 5.0.5(vite@5.3.2(@types/node@20.14.9))(vue@3.4.31(typescript@5.5.3)) @@ -50,9 +50,9 @@ importers: '@vue/language-service': specifier: ~2.0.26-alpha.2 version: 2.0.26-alpha.2(typescript@5.5.3) - assert-plus: - specifier: ^1.0.0 - version: 1.0.0 + assert: + specifier: ^2.1.0 + version: 2.1.0 bumpp: specifier: ^9.4.1 version: 9.4.1 @@ -66,8 +66,8 @@ importers: specifier: ^9.6.0 version: 9.6.0 eslint-plugin-vue: - specifier: ^9.26.0 - version: 9.26.0(eslint@9.6.0) + specifier: ^9.27.0 + version: 9.27.0(eslint@9.6.0) fflate: specifier: ^0.8.2 version: 0.8.2 @@ -95,6 +95,9 @@ importers: typescript: specifier: ^5.5.3 version: 5.5.3 + typescript-eslint: + specifier: ^7.15.0 + version: 7.15.0(eslint@9.6.0)(typescript@5.5.3) vite: specifier: ^5.3.2 version: 5.3.2(@types/node@20.14.9) @@ -884,9 +887,12 @@ packages: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} - assert-plus@1.0.0: - resolution: {integrity: sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==} - engines: {node: '>=0.8'} + assert@2.1.0: + resolution: {integrity: sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==} + + available-typed-arrays@1.0.7: + resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==} + engines: {node: '>= 0.4'} balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -1130,6 +1136,10 @@ packages: resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==} engines: {node: '>= 0.4'} + define-properties@1.2.1: + resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==} + engines: {node: '>= 0.4'} + defu@6.1.4: resolution: {integrity: sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==} @@ -1195,8 +1205,8 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} - eslint-plugin-vue@9.26.0: - resolution: {integrity: sha512-eTvlxXgd4ijE1cdur850G6KalZqk65k1JKoOI2d1kT3hr8sPD07j1q98FRFdNnpxBELGPWxZmInxeHGF/GxtqQ==} + eslint-plugin-vue@9.27.0: + resolution: {integrity: sha512-5Dw3yxEyuBSXTzT5/Ge1X5kIkRTQ3nvBn/VwPwInNiZBSJOO/timWMUaflONnFBzU6NhB68lxnCda7ULV5N7LA==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -1298,6 +1308,9 @@ packages: flatted@3.3.1: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} + for-each@0.3.3: + resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + foreground-child@3.2.1: resolution: {integrity: sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==} engines: {node: '>=14'} @@ -1457,10 +1470,21 @@ packages: resolution: {integrity: sha512-MWDKS3AS1bGCHLBA2VLImJz42f7bJh8wQsTGCzI3j519/CASStoDONUBVz2I/VID0MpiX3SGSnbOD2xUalbE5g==} engines: {node: '>=18'} + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-arguments@1.1.1: + resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} + engines: {node: '>= 0.4'} + is-binary-path@2.1.0: resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} + is-callable@1.2.7: + resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==} + engines: {node: '>= 0.4'} + is-core-module@2.14.0: resolution: {integrity: sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A==} engines: {node: '>= 0.4'} @@ -1484,10 +1508,18 @@ packages: resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} engines: {node: '>=18'} + is-generator-function@1.0.10: + resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} + engines: {node: '>= 0.4'} + is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} + is-nan@1.3.2: + resolution: {integrity: sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==} + engines: {node: '>= 0.4'} + is-number@7.0.0: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} @@ -1508,6 +1540,10 @@ packages: resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + is-typed-array@1.1.13: + resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} + engines: {node: '>= 0.4'} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -1743,6 +1779,18 @@ packages: resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} + object-is@1.1.6: + resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==} + engines: {node: '>= 0.4'} + + object-keys@1.1.1: + resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==} + engines: {node: '>= 0.4'} + + object.assign@4.1.5: + resolution: {integrity: sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==} + engines: {node: '>= 0.4'} + ohash@1.1.3: resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==} @@ -1828,6 +1876,10 @@ packages: pkg-types@1.1.2: resolution: {integrity: sha512-VEGf1he2DR5yowYRl0XJhWJq5ktm9gYIsH+y8sNJpHlxch7JPDaufgrsl4vYjd9hMUY8QVjoNncKbow9I7exyA==} + possible-typed-array-names@1.0.0: + resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} + engines: {node: '>= 0.4'} + postcss-selector-parser@6.1.0: resolution: {integrity: sha512-UMz42UD0UY0EApS0ZL9o1XnLhSTtvvvLe5Dc2H2O56fvRZi+KulDyf5ctDhhtYJBGKStV2FL1fy6253cmLgqVQ==} engines: {node: '>=4'} @@ -2105,6 +2157,16 @@ packages: typescript-auto-import-cache@0.3.3: resolution: {integrity: sha512-ojEC7+Ci1ij9eE6hp8Jl9VUNnsEKzztktP5gtYNRMrTmfXVwA1PITYYAkpxCvvupdSYa/Re51B6KMcv1CTZEUA==} + typescript-eslint@7.15.0: + resolution: {integrity: sha512-Ta40FhMXBCwHura4X4fncaCVkVcnJ9jnOq5+Lp4lN8F4DzHZtOwZdRvVBiNUGznUDHPwdGnrnwxmUOU2fFQqFA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + typescript@5.4.2: resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} engines: {node: '>=14.17'} @@ -2146,6 +2208,9 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + util@0.12.5: + resolution: {integrity: sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==} + validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} @@ -2242,8 +2307,8 @@ packages: '@volar/language-service': optional: true - volar-service-typescript@0.0.58: - resolution: {integrity: sha512-r4MVuRlerFzMwpiN8VWumBULuBxcNUCURptnkCPEcypw8N0GjxPBvq5vXOTGRcukKihgY6mvgYKmJMrkQvbmtQ==} + volar-service-typescript@0.0.59: + resolution: {integrity: sha512-VCOpfiu+lUo5lapWLB5L5vmQGtwzmNWn5MueV915eku7blpphmE+Z7hCNcL1NApn7AetXWhiblv8ZhmUx/dGIA==} peerDependencies: '@volar/language-service': ~2.4.0-alpha.12 peerDependenciesMeta: @@ -2310,6 +2375,10 @@ packages: typescript: optional: true + which-typed-array@1.1.15: + resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} + engines: {node: '>= 0.4'} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -3124,7 +3193,7 @@ snapshots: volar-service-json: 0.0.59(@volar/language-service@2.4.0-alpha.12) volar-service-pug: 0.0.59 volar-service-pug-beautify: 0.0.59(@volar/language-service@2.4.0-alpha.12) - volar-service-typescript: 0.0.58(@volar/language-service@2.4.0-alpha.12) + volar-service-typescript: 0.0.59(@volar/language-service@2.4.0-alpha.12) volar-service-typescript-twoslash-queries: 0.0.59(@volar/language-service@2.4.0-alpha.12) vscode-html-languageservice: 5.3.0 vscode-languageserver-textdocument: 1.0.11 @@ -3214,7 +3283,17 @@ snapshots: array-union@2.1.0: {} - assert-plus@1.0.0: {} + assert@2.1.0: + dependencies: + call-bind: 1.0.7 + is-nan: 1.3.2 + object-is: 1.1.6 + object.assign: 4.1.5 + util: 0.12.5 + + available-typed-arrays@1.0.7: + dependencies: + possible-typed-array-names: 1.0.0 balanced-match@1.0.2: {} @@ -3474,6 +3553,12 @@ snapshots: es-errors: 1.3.0 gopd: 1.0.1 + define-properties@1.2.1: + dependencies: + define-data-property: 1.1.4 + has-property-descriptors: 1.0.2 + object-keys: 1.1.1 + defu@6.1.4: {} destr@2.0.3: {} @@ -3543,7 +3628,7 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-plugin-vue@9.26.0(eslint@9.6.0): + eslint-plugin-vue@9.27.0(eslint@9.6.0): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.6.0) eslint: 9.6.0 @@ -3692,6 +3777,10 @@ snapshots: flatted@3.3.1: {} + for-each@0.3.3: + dependencies: + is-callable: 1.2.7 + foreground-child@3.2.1: dependencies: cross-spawn: 7.0.3 @@ -3849,10 +3938,19 @@ snapshots: index-to-position@0.1.2: {} + inherits@2.0.4: {} + + is-arguments@1.1.1: + dependencies: + call-bind: 1.0.7 + has-tostringtag: 1.0.2 + is-binary-path@2.1.0: dependencies: binary-extensions: 2.3.0 + is-callable@1.2.7: {} + is-core-module@2.14.0: dependencies: hasown: 2.0.2 @@ -3872,10 +3970,19 @@ snapshots: dependencies: get-east-asian-width: 1.2.0 + is-generator-function@1.0.10: + dependencies: + has-tostringtag: 1.0.2 + is-glob@4.0.3: dependencies: is-extglob: 2.1.1 + is-nan@1.3.2: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + is-number@7.0.0: {} is-obj@2.0.0: {} @@ -3889,6 +3996,10 @@ snapshots: is-stream@3.0.0: {} + is-typed-array@1.1.13: + dependencies: + which-typed-array: 1.1.15 + isexe@2.0.0: {} jackspeak@3.4.0: @@ -4110,6 +4221,20 @@ snapshots: object-assign@4.1.1: {} + object-is@1.1.6: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + + object-keys@1.1.1: {} + + object.assign@4.1.5: + dependencies: + call-bind: 1.0.7 + define-properties: 1.2.1 + has-symbols: 1.0.3 + object-keys: 1.1.1 + ohash@1.1.3: {} onetime@5.1.2: @@ -4184,6 +4309,8 @@ snapshots: mlly: 1.7.1 pathe: 1.1.2 + possible-typed-array-names@1.0.0: {} + postcss-selector-parser@6.1.0: dependencies: cssesc: 3.0.0 @@ -4470,6 +4597,17 @@ snapshots: dependencies: semver: 7.6.2 + typescript-eslint@7.15.0(eslint@9.6.0)(typescript@5.5.3): + dependencies: + '@typescript-eslint/eslint-plugin': 7.15.0(@typescript-eslint/parser@7.15.0(eslint@9.6.0)(typescript@5.5.3))(eslint@9.6.0)(typescript@5.5.3) + '@typescript-eslint/parser': 7.15.0(eslint@9.6.0)(typescript@5.5.3) + '@typescript-eslint/utils': 7.15.0(eslint@9.6.0)(typescript@5.5.3) + eslint: 9.6.0 + optionalDependencies: + typescript: 5.5.3 + transitivePeerDependencies: + - supports-color + typescript@5.4.2: {} typescript@5.5.3: {} @@ -4497,6 +4635,14 @@ snapshots: util-deprecate@1.0.2: {} + util@0.12.5: + dependencies: + inherits: 2.0.4 + is-arguments: 1.1.1 + is-generator-function: 1.0.10 + is-typed-array: 1.1.13 + which-typed-array: 1.1.15 + validate-npm-package-license@3.0.4: dependencies: spdx-correct: 3.2.0 @@ -4584,7 +4730,7 @@ snapshots: optionalDependencies: '@volar/language-service': 2.4.0-alpha.12 - volar-service-typescript@0.0.58(@volar/language-service@2.4.0-alpha.12): + volar-service-typescript@0.0.59(@volar/language-service@2.4.0-alpha.12): dependencies: path-browserify: 1.0.1 semver: 7.6.2 @@ -4676,6 +4822,14 @@ snapshots: optionalDependencies: typescript: 5.5.3 + which-typed-array@1.1.15: + dependencies: + available-typed-arrays: 1.0.7 + call-bind: 1.0.7 + for-each: 0.3.3 + gopd: 1.0.1 + has-tostringtag: 1.0.2 + which@2.0.2: dependencies: isexe: 2.0.0 diff --git a/src/SplitPane.vue b/src/SplitPane.vue index 1c215f40..df480a84 100644 --- a/src/SplitPane.vue +++ b/src/SplitPane.vue @@ -91,7 +91,7 @@ function changeViewSize() { class="right" :style="{ [isVertical ? 'height' : 'width']: 100 - boundSplit + '%' }" > -