Skip to content

Commit 0370188

Browse files
committed
fix: update TypeScript and Vue configuration for improved compatibility and performance
1 parent 637bca6 commit 0370188

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@typescript-eslint/eslint-plugin": "^8.46.3",
5151
"@typescript-eslint/parser": "^8.46.3",
5252
"@vitejs/plugin-vue": "^6.0.1",
53-
"@vue/tsconfig": "^0.7.0",
53+
"@vue/tsconfig": "^0.8.1",
5454
"chromatic": "^13.3.3",
5555
"eslint": "^9.39.1",
5656
"eslint-config-prettier": "^10.1.8",
@@ -63,7 +63,7 @@
6363
"storybook": "^10.0.4",
6464
"svgo": "^4.0.0",
6565
"tailwindcss": "^4.1.16",
66-
"typescript": "~5.8.3",
66+
"typescript": "~5.9.3",
6767
"unplugin-icons": "^22.5.0",
6868
"vite": "^7.2.0",
6969
"vite-plugin-image-optimizer": "^2.0.3",

src/components/base/dropdown-menu/BaseDropdownMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ const { reference, floating, floatingStyle, isOpen, toggle, close } = useSbFloat
3838
3939
// Events
4040
const onIntersectionObserver = (entries: IntersectionObserverEntry[]): void => {
41-
const [{ isIntersecting }] = entries;
42-
if (isIntersecting && isOpen.value) {
41+
const [entry] = entries;
42+
if (entry?.isIntersecting && isOpen.value) {
4343
close();
4444
}
4545
};

src/components/base/input/BaseInput.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ const inputLabel = computed(() => {
8686
});
8787
8888
// Events
89-
const onIntersectionObserver = ([{ isIntersecting }]: IntersectionObserverEntry[]): void => {
90-
if (!isIntersecting && isOpen.value && props.withMenu) {
89+
const onIntersectionObserver = (entries: IntersectionObserverEntry[]): void => {
90+
const [entry] = entries;
91+
if (!entry?.isIntersecting && isOpen.value && props.withMenu) {
9192
close();
9293
}
9394
};

src/components/base/level-bar/BaseLevelBar.vue

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,10 @@ const getScore = computed(() => {
4444
});
4545
4646
// Template Data
47-
const RANGE_MAP: Record<string, Range> = {
48-
percentage: {
49-
min: 0,
50-
max: 100,
51-
},
52-
'10-base': {
53-
min: 0,
54-
max: 10,
55-
},
56-
'5-base': {
57-
min: 0,
58-
max: 5,
59-
},
47+
const RANGE_MAP: Record<'5-base' | '10-base' | 'percentage', Range> = {
48+
percentage: { min: 0, max: 100 },
49+
'10-base': { min: 0, max: 10 },
50+
'5-base': { min: 0, max: 5 },
6051
} as const;
6152
</script>
6253

src/components/layouts/divider/AppDivider.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const onIntersectionObserver = (
4848
entries: IntersectionObserverEntry[],
4949
observer: IntersectionObserver,
5050
): void => {
51-
const [{ isIntersecting }] = entries;
52-
if (isIntersecting !== isVisible.value && !isVisible.value) {
51+
const [entry] = entries;
52+
if (entry?.isIntersecting !== isVisible.value && !isVisible.value) {
5353
isVisible.value = true;
5454
observer?.disconnect();
5555
}

src/pages/skills-page/components/SkillsDialog.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ const { skills, isLoading, error } = storeToRefs(sStore);
3535
3636
const searchSkillKey = ref('');
3737
const debouncedSearchSkillKey = ref('');
38-
const filters = ref<Record<string, boolean>>({
38+
const filters = ref<
39+
Record<
40+
'feLanguage' | 'beLanguage' | 'feFramework' | 'beFramework' | 'database' | 'tool' | 'other',
41+
boolean
42+
>
43+
>({
3944
feLanguage: true,
4045
beLanguage: true,
4146
feFramework: true,

tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"noUnusedParameters": true,
1919
"noFallthroughCasesInSwitch": true,
2020
"noUncheckedSideEffectImports": true,
21+
"erasableSyntaxOnly": true,
2122

2223
/* Direrctory shortcuts */
2324
"baseUrl": ".",

tsconfig.node.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
{
22
"compilerOptions": {
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4-
"target": "ES2022",
4+
"target": "ES2023",
55
"lib": ["ES2023"],
66
"module": "ESNext",
7+
"types": ["node"],
78
"skipLibCheck": true,
89

910
/* Bundler mode */
1011
"moduleResolution": "bundler",
1112
"allowImportingTsExtensions": true,
12-
"isolatedModules": true,
13+
"verbatimModuleSyntax": true,
1314
"moduleDetection": "force",
1415
"noEmit": true,
1516

1617
/* Linting */
1718
"strict": true,
1819
"noUnusedLocals": true,
1920
"noUnusedParameters": true,
21+
"erasableSyntaxOnly": true,
2022
"noFallthroughCasesInSwitch": true,
2123
"noUncheckedSideEffectImports": true
2224
},

0 commit comments

Comments
 (0)