Skip to content

Commit

Permalink
chore: use lintroll
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Feb 12, 2025
1 parent bc17a19 commit 60ab370
Show file tree
Hide file tree
Showing 11 changed files with 2,366 additions and 1,021 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true

- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true

- name: Build
run: pnpm build

- name: Test
run: pnpm test

- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
44 changes: 22 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: true

- name: Type check
run: pnpm type-check
- name: Type check
run: pnpm type-check

- name: Build
run: pnpm build
- name: Build
run: pnpm build

- name: Test
run: pnpm test
- name: Test
run: pnpm test

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

- name: DTS test
run: pnpm test:tsd
- name: DTS test
run: pnpm test:tsd

- name: Lint
run: pnpm lint
- name: Lint
run: pnpm lint
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
"typescript.tsdk": "node_modules/typescript/lib",
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Returns a Promise that resolves with object:
```ts
type TaskAPI = {
// Result from taskFunction
result: any
result: unknown

// State of the task
state: 'error' | 'warning' | 'success'
Expand All @@ -257,7 +257,7 @@ type TaskFunction = (taskInnerApi: {
setOutput(output: string | { message: string }): void
setWarning(warning: Error | string): void
setError(error: Error | string): void
}) => Promise<any>
}) => Promise<unknown>
```
Required: true
Expand Down Expand Up @@ -292,7 +292,7 @@ Returns a Promise that resolves with object:
// The results from the taskFunctions
type TaskGroupAPI = {
// Result from taskFunction
result: any
result: unknown

// State of the task
state: 'error' | 'warning' | 'success'
Expand Down
26 changes: 5 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"name": "Hiroki Osame",
"email": "hiroki.osame@gmail.com"
},
"type": "module",
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
Expand All @@ -40,8 +40,9 @@
"default": "./dist/index.mjs"
}
},
"packageManager": "pnpm@9.15.4",
"scripts": {
"lint": "eslint --cache .",
"lint": "lintroll --cache .",
"test": "tsx tests/tasuku.spec.ts",
"test:tsd": "tsd",
"type-check": "tsc --noEmit",
Expand All @@ -52,13 +53,12 @@
"yoga-layout-prebuilt": "1.10.0"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.34.0",
"@types/node": "^18.11.18",
"@types/react": "^18.0.27",
"clean-pkg-json": "^1.2.0",
"eslint": "^8.41.0",
"ink": "github:privatenumber/ink#built/treeshake-lodash",
"ink-task-list": "^2.0.0",
"lintroll": "^1.15.0",
"manten": "^1.3.0",
"p-map": "^5.3.0",
"pkgroll": "^2.8.2",
Expand All @@ -68,23 +68,7 @@
"typescript": "^5.7.3",
"valtio": "^1.2.11"
},
"eslintConfig": {
"extends": "@pvtnbr",
"rules": {
"react/prop-types": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"allow": [
"task",
"test"
]
}
]
}
},
"tsd": {
"directory": "tests"
},
"packageManager": "pnpm@9.15.4"
}
}
Loading

0 comments on commit 60ab370

Please sign in to comment.