Skip to content

Commit 6e84b46

Browse files
committed
fix: update eslint config and dependencies, fix type error
1 parent 541ca19 commit 6e84b46

File tree

14 files changed

+1383
-747
lines changed

14 files changed

+1383
-747
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ jobs:
3030

3131
- name: Linter
3232
run: pnpm lint
33-

docs/.vitepress/theme/components/DemoModal.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const texturesLoaded = ref(false);
2828
const modelLoaded = ref(false);
2929
const closeCallback = ref();
3030
const finalWidth = computed(() => {
31-
if (!width) return '300px';
31+
if (!width)
32+
return '300px';
3233
if (typeof width === 'number') {
3334
return `${width}px`;
3435
}
@@ -38,7 +39,8 @@ const finalWidth = computed(() => {
3839
});
3940
4041
const finalHeight = computed(() => {
41-
if (!height) return '300px';
42+
if (!height)
43+
return '300px';
4244
if (typeof height === 'number') {
4345
return `${height}px`;
4446
}

docs/demos/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,4 +432,3 @@ export async function demo15(init, l2dCanvas) {
432432
};
433433
loadModel();
434434
}
435-

eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import defineLint from '@hacxy/eslint-config';
1+
import hacxy from '@hacxy/eslint-config';
22

3-
export default defineLint({
3+
export default hacxy({
44
rules: {
55
'max-params': 0,
66
},
7-
ignores: ['lib/**', 'dist/**', 'docs/api/**', 'docs/guide/**'],
7+
ignores: ['lib/**', 'dist/**', 'docs/api/**', 'docs/guide/**', '**/*.d.ts'],
88
});

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@
3232
"lint:staged": "eslint --fix",
3333
"prepare": "simple-git-hooks",
3434
"commit": "git-cz",
35-
"release": "node scripts/release.js",
35+
"release": "bump",
3636
"typedoc": "typedoc"
3737
},
3838
"devDependencies": {
39-
"@hacxy/eslint-config": "^0.1.0",
39+
"@hacxy/bump": "^0.3.2",
40+
"@hacxy/eslint-config": "^0.5.4",
41+
"@hacxy/fe": "^0.6.1",
42+
"@hacxy/tsconfig": "^0.1.0",
4043
"@hacxy/utils": "^0.4.0",
4144
"@iconify/vue": "^5.0.0",
4245
"commitizen": "^4.3.1",
@@ -55,15 +58,16 @@
5558
"simple-git-hooks": "^2.11.1",
5659
"typedoc": "^0.27.7",
5760
"typedoc-plugin-markdown": "^4.4.2",
58-
"vite": "^6.0.11",
61+
"typescript": "^5.9.3",
62+
"vite": "^7.2.4",
5963
"vite-plugin-dts": "^4.5.0",
6064
"vitepress": "^1.6.3",
6165
"vitepress-theme-mild": "0.8.4-beta.3",
6266
"vue": "^3.5.13"
6367
},
6468
"simple-git-hooks": {
6569
"pre-commit": "npx lint-staged",
66-
"commit-msg": "node scripts/git-hooks/commit-msg.mjs"
70+
"commit-msg": "npx fe msg"
6771
},
6872
"lint-staged": {
6973
"*": [

0 commit comments

Comments
 (0)