WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 60ab370

Browse files
committed
chore: use lintroll
1 parent bc17a19 commit 60ab370

File tree

11 files changed

+2366
-1021
lines changed

11 files changed

+2366
-1021
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ jobs:
1111
timeout-minutes: 10
1212

1313
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
17-
- name: Use Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version-file: '.nvmrc'
21-
22-
- name: Setup pnpm
23-
uses: pnpm/action-setup@v4
24-
with:
25-
run_install: true
26-
27-
- name: Build
28-
run: pnpm build
29-
30-
- name: Test
31-
run: pnpm test
32-
33-
- name: Release
34-
env:
35-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
run: pnpm dlx semantic-release
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .nvmrc
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v4
24+
with:
25+
run_install: true
26+
27+
- name: Build
28+
run: pnpm build
29+
30+
- name: Test
31+
run: pnpm test
32+
33+
- name: Release
34+
env:
35+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: pnpm dlx semantic-release

.github/workflows/test.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,33 @@ jobs:
1313
timeout-minutes: 10
1414

1515
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
16+
- name: Checkout
17+
uses: actions/checkout@v4
1818

19-
- name: Use Node.js
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version-file: '.nvmrc'
19+
- name: Use Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version-file: .nvmrc
2323

24-
- name: Setup pnpm
25-
uses: pnpm/action-setup@v4
26-
with:
27-
run_install: true
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
run_install: true
2828

29-
- name: Type check
30-
run: pnpm type-check
29+
- name: Type check
30+
run: pnpm type-check
3131

32-
- name: Build
33-
run: pnpm build
32+
- name: Build
33+
run: pnpm build
3434

35-
- name: Test
36-
run: pnpm test
35+
- name: Test
36+
run: pnpm test
3737

38-
- name: Test Node.js v12
39-
run: pnpm --use-node-version=12.22.12 test
38+
- name: Test Node.js v12
39+
run: pnpm --use-node-version=12.22.12 test
4040

41-
- name: DTS test
42-
run: pnpm test:tsd
41+
- name: DTS test
42+
run: pnpm test:tsd
4343

44-
- name: Lint
45-
run: pnpm lint
44+
- name: Lint
45+
run: pnpm lint

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib"
3-
}
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Returns a Promise that resolves with object:
230230
```ts
231231
type TaskAPI = {
232232
// Result from taskFunction
233-
result: any
233+
result: unknown
234234

235235
// State of the task
236236
state: 'error' | 'warning' | 'success'
@@ -257,7 +257,7 @@ type TaskFunction = (taskInnerApi: {
257257
setOutput(output: string | { message: string }): void
258258
setWarning(warning: Error | string): void
259259
setError(error: Error | string): void
260-
}) => Promise<any>
260+
}) => Promise<unknown>
261261
```
262262
263263
Required: true
@@ -292,7 +292,7 @@ Returns a Promise that resolves with object:
292292
// The results from the taskFunctions
293293
type TaskGroupAPI = {
294294
// Result from taskFunction
295-
result: any
295+
result: unknown
296296

297297
// State of the task
298298
state: 'error' | 'warning' | 'success'

package.json

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"name": "Hiroki Osame",
1717
"email": "[email protected]"
1818
},
19-
"type": "module",
2019
"files": [
2120
"dist"
2221
],
22+
"type": "module",
2323
"main": "./dist/index.cjs",
2424
"module": "./dist/index.mjs",
2525
"types": "./dist/index.d.cts",
@@ -40,8 +40,9 @@
4040
"default": "./dist/index.mjs"
4141
}
4242
},
43+
"packageManager": "[email protected]",
4344
"scripts": {
44-
"lint": "eslint --cache .",
45+
"lint": "lintroll --cache .",
4546
"test": "tsx tests/tasuku.spec.ts",
4647
"test:tsd": "tsd",
4748
"type-check": "tsc --noEmit",
@@ -52,13 +53,12 @@
5253
"yoga-layout-prebuilt": "1.10.0"
5354
},
5455
"devDependencies": {
55-
"@pvtnbr/eslint-config": "^0.34.0",
5656
"@types/node": "^18.11.18",
5757
"@types/react": "^18.0.27",
5858
"clean-pkg-json": "^1.2.0",
59-
"eslint": "^8.41.0",
6059
"ink": "github:privatenumber/ink#built/treeshake-lodash",
6160
"ink-task-list": "^2.0.0",
61+
"lintroll": "^1.15.0",
6262
"manten": "^1.3.0",
6363
"p-map": "^5.3.0",
6464
"pkgroll": "^2.8.2",
@@ -68,23 +68,7 @@
6868
"typescript": "^5.7.3",
6969
"valtio": "^1.2.11"
7070
},
71-
"eslintConfig": {
72-
"extends": "@pvtnbr",
73-
"rules": {
74-
"react/prop-types": "off",
75-
"@typescript-eslint/no-shadow": [
76-
"error",
77-
{
78-
"allow": [
79-
"task",
80-
"test"
81-
]
82-
}
83-
]
84-
}
85-
},
8671
"tsd": {
8772
"directory": "tests"
88-
},
89-
"packageManager": "[email protected]"
73+
}
9074
}

0 commit comments

Comments
 (0)