Skip to content

Commit 218e1cc

Browse files
renovate[bot]ntnyq
authored andcommitted
chore: update
1 parent 0259f2e commit 218e1cc

File tree

18 files changed

+2506
-4218
lines changed

18 files changed

+2506
-4218
lines changed

.github/workflows/autofix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
autofix:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- uses: pnpm/action-setup@v4
18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@v6
1919
with:
2020
node-version: lts/*
2121
cache: pnpm
2222

2323
- run: pnpm install --frozen-lockfile
2424
- run: pnpm run lint --fix
2525

26-
- uses: autofix-ci/action@v1.3.1
26+
- uses: autofix-ci/action@v1.3.2
2727
with:
2828
commit-message: 'chore: autofix by ci'

.github/workflows/ci.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
check:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- uses: pnpm/action-setup@v4
17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v6
1818
with:
1919
node-version: lts/*
2020
cache: pnpm
@@ -29,35 +29,16 @@ jobs:
2929
strategy:
3030
matrix:
3131
os: [ubuntu-latest, windows-latest, macos-latest]
32-
node: [18.x, 20.x, 22.x]
32+
node: [20.x, 22.x, 24.x]
3333
fail-fast: false
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636
- uses: pnpm/action-setup@v4
37-
- uses: actions/setup-node@v4
37+
- uses: actions/setup-node@v6
3838
with:
3939
node-version: ${{ matrix.node }}
4040
cache: pnpm
4141

4242
- run: pnpm install --frozen-lockfile
4343
- run: pnpm run build
4444
- run: pnpm run test
45-
46-
coverage:
47-
runs-on: ubuntu-latest
48-
needs: [test]
49-
steps:
50-
- uses: actions/checkout@v4
51-
- uses: pnpm/action-setup@v4
52-
- uses: actions/setup-node@v4
53-
with:
54-
node-version: lts/*
55-
cache: pnpm
56-
57-
- run: pnpm install --frozen-lockfile
58-
- run: pnpm run build
59-
- run: pnpm run coverage
60-
61-
- uses: codecov/codecov-action@v5
62-
env:
63-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
release:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919
- uses: pnpm/action-setup@v4
20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2121
with:
2222
node-version: lts/*
2323
cache: pnpm

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"mpath",
3535
"pnpm",
3636
"shikijs",
37+
"tsdown",
3738
"tspan",
3839
"unplugin",
3940
"unrs",

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![CI](https://github.com/ntnyq/svg-eslint-parser/workflows/CI/badge.svg)](https://github.com/ntnyq/svg-eslint-parser/actions)
44
[![NPM VERSION](https://img.shields.io/npm/v/svg-eslint-parser.svg)](https://www.npmjs.com/package/svg-eslint-parser)
55
[![NPM DOWNLOADS](https://img.shields.io/npm/dy/svg-eslint-parser.svg)](https://www.npmjs.com/package/svg-eslint-parser)
6-
[![CODECOV](https://codecov.io/github/ntnyq/svg-eslint-parser/branch/main/graph/badge.svg?token=ECHQ09F90X)](https://codecov.io/github/ntnyq/svg-eslint-parser)
76
[![LICENSE](https://img.shields.io/github/license/ntnyq/svg-eslint-parser.svg)](https://github.com/ntnyq/svg-eslint-parser/blob/main/LICENSE)
87

98
> :package: An SVG parser that produces output compatible with ESLint.
@@ -15,15 +14,15 @@
1514
1615
## Install
1716

18-
```bash
17+
```shell
1918
npm install svg-eslint-parser -D
2019
```
2120

22-
```bash
21+
```shell
2322
yarn add svg-eslint-parser -D
2423
```
2524

26-
```bash
25+
```shell
2726
pnpm add svg-eslint-parser -D
2827
```
2928

build.config.ts

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

docs/.vitepress/components/ast/PropertyName.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ function handleMouseLeave() {
1717
props.onHover?.(false)
1818
}
1919
function handleKeyDown(evt: KeyboardEvent) {
20-
if (evt.code !== 'Space') return
20+
if (evt.code !== 'Space') {
21+
return
22+
}
2123
evt.preventDefault?.()
2224
props.onClick?.()
2325
}

docs/.vitepress/components/ui/CopyButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function handleClick() {
2121
>
2222
<button
2323
@click="handleClick"
24-
:aria-label="!copied ? 'Copy code to clipboard' : 'Copied'"
24+
:aria-label="copied ? 'Copied' : 'Copy code to clipboard'"
2525
:disabled="copied"
2626
type="button"
2727
role="button"

docs/package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@
77
"dev": "vitepress dev ."
88
},
99
"devDependencies": {
10-
"@codemirror/lang-json": "^6.0.1",
10+
"@codemirror/lang-json": "^6.0.2",
1111
"@codemirror/lang-xml": "^6.1.0",
12-
"@codemirror/language": "^6.11.0",
12+
"@codemirror/language": "^6.11.3",
1313
"@codemirror/state": "^6.5.2",
14-
"@codemirror/view": "^6.36.8",
15-
"@iconify-json/carbon": "^1.2.8",
16-
"@iconify-json/lucide": "^1.2.43",
17-
"@lezer/highlight": "^1.2.1",
18-
"@ntnyq/utils": "^0.7.0",
19-
"@shikijs/transformers": "^3.4.1",
20-
"@shikijs/vitepress-twoslash": "^3.4.1",
21-
"@uiw/codemirror-themes": "^4.23.12",
22-
"@vueuse/core": "^13.2.0",
23-
"codemirror": "^6.0.1",
14+
"@codemirror/view": "^6.38.8",
15+
"@iconify-json/carbon": "^1.2.14",
16+
"@iconify-json/lucide": "^1.2.74",
17+
"@lezer/highlight": "^1.2.3",
18+
"@ntnyq/utils": "^0.9.2",
19+
"@shikijs/transformers": "^3.15.0",
20+
"@shikijs/vitepress-twoslash": "^3.15.0",
21+
"@uiw/codemirror-themes": "^4.25.3",
22+
"@vueuse/core": "^14.0.0",
23+
"codemirror": "^6.0.2",
2424
"floating-vue": "^5.2.2",
25-
"splitpanes": "^4.0.3",
25+
"splitpanes": "^4.0.4",
2626
"svg-eslint-parser": "workspace:*",
27-
"twoslash": "^0.3.1",
28-
"unocss": "^66.1.1",
29-
"unplugin-vue-components": "^28.5.0",
30-
"vite": "^6.3.5",
31-
"vitepress": "^1.6.3",
32-
"vitepress-plugin-group-icons": "^1.5.3",
33-
"vue": "^3.5.13",
27+
"twoslash": "^0.3.4",
28+
"unocss": "^66.5.9",
29+
"unplugin-vue-components": "^30.0.0",
30+
"vite": "^7.2.4",
31+
"vitepress": "^2.0.0-alpha.15",
32+
"vitepress-plugin-group-icons": "^1.6.5",
33+
"vue": "^3.5.24",
3434
"vue-codemirror": "^6.1.1"
3535
}
3636
}

package.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svg-eslint-parser",
33
"type": "module",
44
"version": "0.0.4",
5-
"packageManager": "pnpm@10.11.0",
5+
"packageManager": "pnpm@10.23.0",
66
"description": "An SVG parser that produces output compatible with ESLint.",
77
"keywords": [
88
"eslint-parser",
@@ -22,21 +22,20 @@
2222
"exports": {
2323
"./package.json": "./package.json",
2424
".": {
25-
"types": "./dist/index.d.mts",
26-
"default": "./dist/index.mjs"
25+
"types": "./dist/index.d.ts",
26+
"default": "./dist/index.js"
2727
}
2828
},
29-
"main": "./dist/index.mjs",
30-
"types": "./dist/index.d.mts",
29+
"main": "./dist/index.js",
30+
"types": "./dist/index.d.ts",
3131
"files": [
3232
"dist"
3333
],
3434
"sideEffects": false,
3535
"scripts": {
36-
"build": "unbuild",
37-
"coverage": "vitest --coverage",
36+
"build": "tsdown",
3837
"deploy": "run-s build docs:build",
39-
"dev": "unbuild --watch",
38+
"dev": "tsdown --watch",
4039
"docs:build": "pnpm -C docs run build",
4140
"docs:dev": "pnpm -C docs run dev",
4241
"lint": "eslint",
@@ -50,26 +49,22 @@
5049
"typecheck": "tsc --noEmit"
5150
},
5251
"dependencies": {
53-
"@ntnyq/utils": "^0.7.0",
54-
"eslint-visitor-keys": "^4.2.0"
52+
"@ntnyq/utils": "^0.9.2",
53+
"eslint-visitor-keys": "^5.0.0"
5554
},
5655
"devDependencies": {
57-
"@ntnyq/eslint-config": "^4.3.0",
58-
"@ntnyq/prettier-config": "^2.0.0",
59-
"@types/node": "^22.15.18",
60-
"@vitest/coverage-v8": "^3.1.3",
61-
"bumpp": "^10.1.0",
62-
"eslint": "^9.26.0",
56+
"@ntnyq/eslint-config": "^5.8.0",
57+
"@ntnyq/prettier-config": "^3.0.1",
58+
"@types/node": "^24.10.1",
59+
"bumpp": "^10.3.1",
60+
"eslint": "^9.39.1",
6361
"husky": "^9.1.7",
64-
"nano-staged": "^0.8.0",
65-
"npm-run-all2": "^8.0.1",
66-
"prettier": "^3.5.3",
67-
"typescript": "^5.8.3",
68-
"unbuild": "^3.5.0",
69-
"vitest": "^3.1.3"
70-
},
71-
"engines": {
72-
"node": ">=18.18.0"
62+
"nano-staged": "^0.9.0",
63+
"npm-run-all2": "^8.0.4",
64+
"prettier": "^3.6.2",
65+
"tsdown": "^0.16.6",
66+
"typescript": "^5.9.3",
67+
"vitest": "^4.0.13"
7368
},
7469
"nano-staged": {
7570
"*.{js,ts,mjs,cjs,vue,md,yml,yaml,json}": "eslint --fix",

0 commit comments

Comments
 (0)