Skip to content

Commit a6b3c5c

Browse files
committed
feat(vue): add defineProps for sfc
1 parent 9ed53c6 commit a6b3c5c

File tree

8 files changed

+1402
-1325
lines changed

8 files changed

+1402
-1325
lines changed

.github/workflows/autofix.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: autofix.ci # must named autofix.ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: {}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
autofix:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
cache: pnpm
22+
23+
- run: pnpm install --frozen-lockfile
24+
- run: pnpm run lint --fix
25+
26+
- uses: autofix-ci/action@v1.3.1
27+
with:
28+
commit-message: 'chore: autofix by ci'

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts-latest

.vscode/settings.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"eslint.enable": true,
33
"prettier.enable": true,
44
"editor.formatOnSave": true,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"prettier.configPath": "./prettier.config.mjs",
57
"eslint.validate": [
68
"vue",
79
"yaml",
8-
"html",
10+
"toml",
911
"json",
1012
"jsonc",
1113
"json5",
@@ -21,5 +23,13 @@
2123
"url": "/.vscode/schemas/snippets.schema.json"
2224
}
2325
],
24-
"cSpell.words": ["bumpp", "changelogithub", "Cves", "NPMRC", "ofetch", "pinia", "tsup"]
26+
"cSpell.words": [
27+
"bumpp",
28+
"changelogithub",
29+
"Cves",
30+
"NPMRC",
31+
"ofetch",
32+
"pinia",
33+
"tsup"
34+
]
2535
}

.vscodeignore

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"preview": true,
66
"version": "0.0.4",
77
"private": true,
8-
"packageManager": "pnpm@9.12.3",
8+
"packageManager": "pnpm@10.4.1",
99
"description": "Opinionable VSCode extension for VueJS snippets.",
1010
"keywords": [
11-
"vue",
1211
"snippets",
12+
"vue",
1313
"vue-snippets"
1414
],
1515
"license": "MIT",
@@ -22,31 +22,40 @@
2222
"type": "github",
2323
"url": "https://github.com/ntnyq/vue-snippets-ntnyq.git"
2424
},
25+
"bugs": {
26+
"url": "https://github.com/ntnyq/vue-snippets-ntnyq/issues/new"
27+
},
2528
"icon": "./res/icon.png",
29+
"files": [
30+
"LICENSE",
31+
"dist/*",
32+
"res/*",
33+
"schemas/*",
34+
"snippets/*"
35+
],
2636
"scripts": {
2737
"lint": "eslint .",
2838
"pack": "vsce package --no-dependencies",
2939
"prepare": "husky",
30-
"publish": "vsce publish --no-dependencies",
31-
"release": "bumpp && pnpm run publish"
40+
"release": "run-s release:check release:version release:publish",
41+
"release:check": "run-s lint",
42+
"release:publish": "vsce publish --no-dependencies",
43+
"release:version": "bumpp"
3244
},
3345
"devDependencies": {
34-
"@ntnyq/eslint-config": "^3.1.1",
35-
"@ntnyq/prettier-config": "^1.21.3",
36-
"@types/node": "^22.8.1",
37-
"@types/vscode": "^1.94.0",
38-
"@vscode/vsce": "^3.2.1",
39-
"bumpp": "^9.7.1",
40-
"eslint": "^9.13.0",
41-
"husky": "^9.1.6",
46+
"@ntnyq/eslint-config": "^4.0.0-beta.8",
47+
"@ntnyq/prettier-config": "^2.0.0",
48+
"@types/node": "^22.13.4",
49+
"@types/vscode": "^1.97.0",
50+
"@vscode/vsce": "^3.2.2",
51+
"bumpp": "^10.0.3",
52+
"eslint": "^9.20.1",
53+
"husky": "^9.1.7",
4254
"nano-staged": "^0.8.0",
43-
"prettier": "^3.3.3",
44-
"tsx": "^4.19.2",
45-
"typescript": "^5.6.3"
55+
"npm-run-all2": "^7.0.2",
56+
"prettier": "^3.5.1",
57+
"typescript": "^5.7.3"
4658
},
47-
"extensionDependencies": [
48-
"Vue.volar"
49-
],
5059
"contributes": {
5160
"snippets": [
5261
{
@@ -63,17 +72,21 @@
6372
}
6473
]
6574
},
66-
"bugs": {
67-
"url": "https://github.com/ntnyq/vue-snippets-ntnyq/issues/new"
68-
},
6975
"categories": [
7076
"Snippets"
7177
],
78+
"extensionDependencies": [
79+
"Vue.volar"
80+
],
7281
"engines": {
73-
"vscode": "^1.94.2"
82+
"vscode": "^1.97.0"
83+
},
84+
"pnpm": {
85+
"onlyBuiltDependencies": [
86+
"esbuild"
87+
]
7488
},
75-
"prettier": "@ntnyq/prettier-config",
7689
"nano-staged": {
77-
"*.{js,ts,mjs,cjs,md,json,yml,yaml}": "eslint --fix"
90+
"*.{js,ts,mjs,cjs,md,yml,yaml,json}": "eslint --fix"
7891
}
7992
}

0 commit comments

Comments
 (0)