Skip to content

Commit 61085bb

Browse files
chore: repo set up update
1 parent dbc2315 commit 61085bb

23 files changed

+1265
-2586
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
**/tsconfig.json linguist-language=jsonc
99
**/tsconfig.*.json linguist-language=jsonc
10-
/.lintstagedrc linguist-language=json
1110
/.vscode/*.json linguist-language=jsonc
1211

1312
/CHANGELOG.md linguist-generated

.github/labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
- name: "Resolution: Invalid"
8989
color: e6e6e6
9090
description: ""
91+
- name: "Resolution: Limitation"
92+
color: e6e6e6
93+
description: "The bug cannot be fix due to limitations."
9194
- name: "Resolution: Not Applicable"
9295
color: e6e6e6
9396
description: "The issue is not relevant to code in this repo and is not an external issue. (Out of scope)"

.github/renovate.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"automergeStrategy": "rebase",
43
"extends": [
5-
":automergeAll",
6-
":automergePr",
74
":ignoreModulesAndTests",
85
":prConcurrentLimitNone",
96
":prHourlyLimitNone",
@@ -16,12 +13,19 @@
1613
"schedule:monthly",
1714
"workarounds:all"
1815
],
16+
"automerge": true,
17+
"automergeStrategy": "fast-forward",
18+
"automergeType": "branch",
1919
"labels": ["Type: Maintenance", ":blue_heart:"],
20-
"rebaseWhen": "behind-base-branch",
20+
"rebaseWhen": "conflicted",
21+
"postUpdateOptions": ["pnpmDedupe"],
2122
"packageRules": [
2223
{
2324
"major": {
24-
"semanticCommitType": "build"
25+
"automerge": false,
26+
"semanticCommitType": "build",
27+
"semanticCommitScope": "deps-major",
28+
"rebaseWhen": "behind-base-branch"
2529
},
2630
"matchDepTypes": ["dependencies"],
2731
"matchManagers": ["npm"],
@@ -52,6 +56,5 @@
5256
"semanticCommitScope": "dev-deps",
5357
"semanticCommitType": "ci"
5458
}
55-
],
56-
"postUpdateOptions": ["pnpmDedupe"]
59+
]
5760
}

.github/workflows/lint-knip-dev.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: Lint Knip (Production)
1+
name: Lint Knip
22

33
on:
44
pull_request:
55
workflow_dispatch:
66
workflow_call:
77

88
jobs:
9-
lint_knip_prod:
9+
lint_knip:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: ./.github/actions/prepare
14-
- run: pnpm run lint:knip:production
14+
- run: pnpm run lint:knip

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
uses: ./.github/workflows/lint-js.yml
2121
lint_docs:
2222
uses: ./.github/workflows/lint-docs.yml
23-
lint_knip_dev:
24-
uses: ./.github/workflows/lint-knip-dev.yml
25-
lint_knip_prod:
26-
uses: ./.github/workflows/lint-knip-prod.yml
23+
lint_knip:
24+
uses: ./.github/workflows/lint-knip.yml
2725
lint_markdown:
2826
uses: ./.github/workflows/lint-markdown.yml
2927
lint_packages:
@@ -41,8 +39,7 @@ jobs:
4139
needs:
4240
- lint_js
4341
- lint_docs
44-
- lint_knip_dev
45-
- lint_knip_prod
42+
- lint_knip
4643
- lint_markdown
4744
- lint_packages
4845
- lint_spelling

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules/
22

3-
/build/
43
/coverage/
54
/lib/
65

.lintstagedrc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
"*.?([cm])[jt]s?(x)":
66
- eslint --fix
77
- cspell lint --no-progress --show-suggestions --show-context --no-must-find-files --dot
8-
- tsc-files -p tsconfig.build.json --noEmit
8+
9+
"src/**/*.?([cm])[jt]s?(x)":
10+
- tsc-files -p src/tsconfig.json --noEmit
11+
12+
"./*.?([cm])[jt]s?(x)":
13+
- tsc-files -p tsconfig.json --noEmit
914

1015
"*.md":
1116
- markdownlint-cli2 --fix

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
save-prefix=""
22
shamefully-hoist=true
33
strict-peer-dependencies=false
4+
shell-emulator=true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.13.0
1+
22.14.0

.releaserc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ plugins:
2020
release: patch
2121
- type: perf
2222
release: patch
23+
- type: build
24+
scope: deps-major
25+
breaking: true
26+
release: major
2327
- type: build
2428
scope: deps
2529
release: patch

knip.jsonc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22
"$schema": "node_modules/knip/schema-jsonc.json",
33
"entry": ["src/index.ts!"],
44
"project": ["src/**/*.ts!", "tests/**/*.{js,ts}"],
5-
"ignore": ["lib/**", "tests/fixture/file.ts"],
6-
"ignoreDependencies": ["@eslint/compat", "tsc-files"],
7-
"ignoreBinaries": ["lint-staged"],
5+
"ignore": ["tests/fixture/file.ts"],
6+
"ignoreDependencies": [
7+
"@eslint/compat",
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/github",
10+
"@semantic-release/npm",
11+
"@semantic-release/release-notes-generator",
12+
"tsc-files",
13+
],
814
"exclude": ["exports", "nsExports", "types", "nsTypes"],
915
}

package.json

Lines changed: 39 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@
5858
"lint:eslint-docs-fix": "pnpm build:docs",
5959
"lint:js": "eslint \"**/*.?([cm])[jt]s?(x)\"",
6060
"lint:js-fix": "eslint \"**/*.?([cm])[jt]s?(x)\" --fix",
61-
"lint:knip": "pnpm run lint:knip:development && pnpm run lint:knip:production",
62-
"lint:knip:development": "knip",
63-
"lint:knip:production": "knip --production",
61+
"lint:knip": "knip",
6462
"lint:md": "markdownlint-cli2",
6563
"lint:md-fix": "markdownlint-cli2 --fix",
6664
"lint:md-full": "pnpm run lint:md && eslint \"**/*.md\"",
@@ -76,25 +74,24 @@
7674
"test-work": "vitest",
7775
"test:js": "vitest --coverage",
7876
"test:js-run": "vitest run --coverage",
79-
"typecheck": "tsc -p tsconfig.build.json --noEmit",
77+
"typecheck": "pnpm run typecheck:root && pnpm run typecheck:src",
78+
"typecheck:root": "tsc -p ./tsconfig.json --noEmit",
79+
"typecheck:src": "tsc -p ./src/tsconfig.json --noEmit",
8080
"verify": "pnpm run lint && pnpm run typecheck && pnpm run test:js-run"
8181
},
82-
"resolutions": {
83-
"dts-bundle-generator": "9.5.1"
84-
},
8582
"dependencies": {
86-
"@typescript-eslint/utils": "^8.20.0",
87-
"deepmerge-ts": "^7.1.3",
83+
"@typescript-eslint/utils": "^8.26.0",
84+
"deepmerge-ts": "^7.1.5",
8885
"escape-string-regexp": "^5.0.0",
8986
"is-immutable-type": "^5.0.1",
90-
"ts-api-utils": "^2.0.0",
91-
"ts-declaration-location": "^1.0.5"
87+
"ts-api-utils": "^2.0.1",
88+
"ts-declaration-location": "^1.0.6"
9289
},
9390
"devDependencies": {
9491
"@babel/eslint-parser": "7.26.8",
9592
"@cspell/dict-cryptocurrencies": "5.0.4",
96-
"@eslint/compat": "1.2.5",
97-
"@rebeccastevens/eslint-config": "3.5.3",
93+
"@eslint/compat": "1.2.7",
94+
"@rebeccastevens/eslint-config": "3.6.3",
9895
"@rollup/plugin-replace": "6.0.2",
9996
"@rollup/plugin-typescript": "12.1.2",
10097
"@semantic-release/changelog": "6.0.3",
@@ -103,58 +100,57 @@
103100
"@semantic-release/github": "11.0.1",
104101
"@semantic-release/npm": "12.0.1",
105102
"@semantic-release/release-notes-generator": "14.0.3",
106-
"@stylistic/eslint-plugin": "3.0.1",
107-
"@types/dedent": "0.7.2",
108-
"@types/node": "18.19.70",
109-
"@typescript-eslint/eslint-plugin": "8.22.0",
110-
"@typescript-eslint/parser": "8.22.0",
111-
"@vitest/coverage-v8": "2.1.9",
112-
"@vitest/eslint-plugin": "1.1.25",
103+
"@stylistic/eslint-plugin": "4.2.0",
104+
"@types/node": "18.19.79",
105+
"@typescript-eslint/eslint-plugin": "8.26.0",
106+
"@typescript-eslint/parser": "8.26.0",
107+
"@vitest/coverage-v8": "3.0.8",
108+
"@vitest/eslint-plugin": "1.1.36",
113109
"cspell": "8.17.5",
114110
"dedent": "1.5.3",
115-
"eslint": "9.19.0",
116-
"eslint-config-prettier": "10.0.1",
117-
"eslint-doc-generator": "2.0.2",
111+
"eslint": "9.22.0",
112+
"eslint-config-prettier": "10.1.1",
113+
"eslint-doc-generator": "2.1.0",
118114
"eslint-flat-config-utils": "2.0.1",
119-
"eslint-import-resolver-typescript": "3.7.0",
120-
"eslint-merge-processors": "1.0.0",
115+
"eslint-import-resolver-typescript": "3.8.3",
116+
"eslint-merge-processors": "2.0.0",
121117
"eslint-plugin-eslint-comments": "3.2.0",
122118
"eslint-plugin-eslint-plugin": "6.4.0",
123119
"eslint-plugin-format": "1.0.1",
124120
"eslint-plugin-functional": "link:.",
125121
"eslint-plugin-import-x": "4.6.1",
126-
"eslint-plugin-jsdoc": "50.6.1",
127-
"eslint-plugin-jsonc": "2.18.2",
122+
"eslint-plugin-jsdoc": "50.6.3",
123+
"eslint-plugin-jsonc": "2.19.1",
128124
"eslint-plugin-markdown": "5.1.0",
129-
"eslint-plugin-n": "17.15.1",
125+
"eslint-plugin-n": "17.16.2",
130126
"eslint-plugin-no-only-tests": "3.3.0",
131127
"eslint-plugin-optimize-regex": "1.2.1",
132-
"eslint-plugin-prettier": "5.2.1",
128+
"eslint-plugin-prettier": "5.2.3",
133129
"eslint-plugin-promise": "7.2.1",
134130
"eslint-plugin-regexp": "2.7.0",
135-
"eslint-plugin-sonarjs": "3.0.1",
136-
"eslint-plugin-unicorn": "56.0.1",
137-
"eslint-plugin-yml": "1.16.0",
131+
"eslint-plugin-sonarjs": "3.0.2",
132+
"eslint-plugin-unicorn": "57.0.0",
133+
"eslint-plugin-yml": "1.17.0",
138134
"eslint-vitest-rule-tester": "1.1.0",
139135
"fast-glob": "3.3.3",
140136
"husky": "9.1.7",
141137
"jsonc-eslint-parser": "2.4.0",
142-
"knip": "5.42.0",
143-
"lint-staged": "15.3.0",
144-
"markdownlint-cli2": "0.17.1",
145-
"prettier": "3.4.2",
138+
"knip": "5.45.0",
139+
"lint-staged": "15.4.3",
140+
"markdownlint-cli2": "0.17.2",
141+
"prettier": "3.5.3",
146142
"rimraf": "6.0.1",
147-
"rollup": "4.30.1",
143+
"rollup": "4.34.9",
148144
"rollup-plugin-deassert": "1.3.0",
149-
"rollup-plugin-dts-bundle-generator": "1.4.0",
145+
"rollup-plugin-dts-bundle-generator-2": "2.0.0",
150146
"semantic-release": "24.2.3",
151147
"semantic-release-replace-plugin": "1.2.7",
152148
"tsc-files": "1.1.4",
153-
"tsx": "4.19.2",
154-
"typescript": "5.7.3",
149+
"tsx": "4.19.3",
150+
"typescript": "5.8.2",
155151
"vite-tsconfig-paths": "5.1.4",
156-
"vitest": "2.1.9",
157-
"yaml-eslint-parser": "1.2.3"
152+
"vitest": "3.0.8",
153+
"yaml-eslint-parser": "1.3.0"
158154
},
159155
"peerDependencies": {
160156
"eslint": "^9.0.0",
@@ -165,7 +161,7 @@
165161
"optional": true
166162
}
167163
},
168-
"packageManager": "pnpm@9.15.4",
164+
"packageManager": "pnpm@10.6.1",
169165
"engines": {
170166
"node": ">=v18.18.0"
171167
},

0 commit comments

Comments
 (0)