Skip to content

Commit e9439c9

Browse files
committed
use vue-tsc again
1 parent 2b89d11 commit e9439c9

File tree

6 files changed

+142
-5
lines changed

6 files changed

+142
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,12 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig
377377
.PHONY: lint-js
378378
lint-js: node_modules
379379
npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES)
380-
npx tsc
380+
npx vue-tsc
381381

382382
.PHONY: lint-js-fix
383383
lint-js-fix: node_modules
384384
npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES) --fix
385-
npx tsc
385+
npx vue-tsc
386386

387387
.PHONY: lint-css
388388
lint-css: node_modules

package-lock.json

Lines changed: 138 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"devDependencies": {
6767
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
6868
"@playwright/test": "1.49.0",
69+
"@silverwind/vue-tsc": "2.1.13",
6970
"@stoplight/spectral-cli": "6.14.2",
7071
"@stylistic/eslint-plugin-js": "2.11.0",
7172
"@stylistic/stylelint-plugin": "3.1.1",

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
},
1717
plugins: [
1818
stringPlugin(),
19+
// @ts-expect-error TS2351: This expression is not callable, only happens with vue-tsc
1920
vuePlugin(),
2021
],
2122
});

web_src/js/features/repo-legacy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
initRepoPullRequestUpdate,
88
} from './repo-issue.ts';
99
import {initUnicodeEscapeButton} from './repo-unicode-escape.ts';
10-
// @ts-expect-error import functions from Vue SFC
1110
import {initRepoBranchTagSelector} from '../components/RepoBranchTagSelector.vue';
1211
import {initRepoCloneButtons} from './repo-common.ts';
1312
import {initCitationFileCopyContent} from './citation.ts';

web_src/js/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import './bootstrap.ts';
33
import './htmx.ts';
44

5-
// @ts-expect-error import functions from Vue SFC
65
import {initDashboardRepoList} from './components/DashboardRepoList.vue';
76

87
import {initGlobalCopyToClipboardListener} from './features/clipboard.ts';
@@ -55,7 +54,6 @@ import {initRepoWikiForm} from './features/repo-wiki.ts';
5554
import {initRepository, initBranchSelectorTabs} from './features/repo-legacy.ts';
5655
import {initCopyContent} from './features/copycontent.ts';
5756
import {initCaptcha} from './features/captcha.ts';
58-
// @ts-expect-error import functions from Vue SFC
5957
import {initRepositoryActionView} from './components/RepoActionView.vue';
6058
import {initGlobalTooltips} from './modules/tippy.ts';
6159
import {initGiteaFomantic} from './modules/fomantic.ts';

0 commit comments

Comments
 (0)