Skip to content

Commit

Permalink
Merge branch 'alpha'
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Sep 10, 2024
2 parents bc7c696 + f1addb3 commit 3957745
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ env:
CI: true
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
DEPLOY_NODE_VERSION: 20.x
DEPLOY_NODE_VERSION: 22.x
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down
10 changes: 8 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ const config: Linter.Config = {
'- If you want a type meaning "any object", you probably want `Record<string, unknown>` instead.',
'- If you want a type meaning "any value", you probably want `unknown` instead.',
'- If you want a type meaning "any non-nullish value", you probably want `NonNullable<unknown> instead.'
].join("\n")
].join("\n"),
suggest: [
"Record<string, unknown>",
"unknown",
"NonNullable<unknown>"
]
},
"{}": false,
"Function": {
Expand All @@ -57,7 +62,8 @@ const config: Linter.Config = {
"It provides no type safety when calling the function, which can be a common source of bugs.",
"It also accepts things like class declarations, which may throw at runtime as they may not be called with `new`.",
"If you are expecting a function to accept certain arguments, you should explicitly define the function shape."
].join("\n")
].join("\n"),
suggest: ["() => void"]
}
},
extendDefaults: true
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"test": "ava"
},
"engines": {
"node": "^14 || ^16 || >=18"
"node": "^18 || ^20 || >=22"
},
"dependencies": {
"tslib": "^2.3.1"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^5.3.0 || ^6.0.0 || ^7.0.0",
"@typescript-eslint/parser": "^5.3.0 || ^6.0.0 || ^7.0.0",
"eslint": "^7.0.0 || ^8.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.3.0 || ^9.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsdoc": "^37.0.3 || ^38.0.0 || ^39.0.0 || ^40.0.0 || ^41.0.0 || ^42.0.0 || ^43.0.0 || ^44.0.0 || ^45.0.0 || ^46.0.0 || ^47.0.0 || ^48.0.0 || ^50.0.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2484,9 +2484,9 @@ __metadata:
tslib: "npm:^2.3.1"
typescript: "npm:5.6.2"
peerDependencies:
"@typescript-eslint/eslint-plugin": ^5.3.0 || ^6.0.0 || ^7.0.0
"@typescript-eslint/parser": ^5.3.0 || ^6.0.0 || ^7.0.0
eslint: ^7.0.0 || ^8.0.0
"@typescript-eslint/eslint-plugin": ^7.0.0
"@typescript-eslint/parser": ^7.0.0
eslint: ^8.0.0
eslint-config-prettier: ^8.3.0 || ^9.0.0
eslint-plugin-import: ^2.25.2
eslint-plugin-jsdoc: ^37.0.3 || ^38.0.0 || ^39.0.0 || ^40.0.0 || ^41.0.0 || ^42.0.0 || ^43.0.0 || ^44.0.0 || ^45.0.0 || ^46.0.0 || ^47.0.0 || ^48.0.0 || ^50.0.0
Expand Down

0 comments on commit 3957745

Please sign in to comment.