Skip to content

Commit

Permalink
chore: dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Feb 10, 2025
1 parent 6e99c4d commit 73c2f04
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 449 deletions.
33 changes: 0 additions & 33 deletions .eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion discord-webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ async function fetchJobs() {
...(process.env.GITHUB_TOKEN
? {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
// eslint-disable-next-line no-mixed-spaces-and-tabs
}
: undefined),
},
Expand Down
41 changes: 41 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import eslint from '@eslint/js'

Check failure on line 1 in eslint.config.ts

View workflow job for this annotation

GitHub Actions / ci

Cannot find module '@eslint/js' or its corresponding type declarations.
import pluginN from 'eslint-plugin-n'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{
ignores: ['workspace/**'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
name: 'main',
languageOptions: {
parser: tseslint.parser,
parserOptions: {
sourceType: 'module',
ecmaVersion: 2022,
project: true,
},
},
plugins: {
n: pluginN,
},
rules: {
eqeqeq: ['warn', 'always', { null: 'never' }],
'no-debugger': ['error'],
'no-empty': ['warn', { allowEmptyCatch: true }],
'no-process-exit': 'off',
'no-useless-escape': 'off',
'prefer-const': [
'warn',
{
destructuring: 'all',
},
],
'n/no-missing-import': 'off', // doesn't like ts imports
'n/no-process-exit': 'off',
'@typescript-eslint/no-explicit-any': 'off', // we use any in some places
},
},
)
29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preinstall": "npx only-allow pnpm",
"postinstall": "pnpm install --dir typings",
"prepare": "pnpm exec simple-git-hooks",
"lint": "eslint --ignore-path .gitignore '**/*.ts'",
"lint": "eslint",
"lint:fix": "pnpm lint --fix",
"format": "prettier --ignore-path .gitignore --check .",
"format:fix": "pnpm format --write",
Expand All @@ -28,11 +28,11 @@
"eslint --fix"
]
},
"packageManager": "pnpm@9.15.4",
"packageManager": "pnpm@10.2.1",
"type": "module",
"engines": {
"node": ">=18",
"pnpm": "^9.5.0"
"pnpm": "^10.2.1"
},
"repository": {
"type": "git",
Expand All @@ -46,25 +46,24 @@
"dependencies": {
"@actions/core": "^1.11.1",
"cac": "^6.7.14",
"execa": "^9.5.1",
"execa": "^9.5.2",
"node-fetch": "^3.3.2",
"verdaccio": "^6.0.5",
"verdaccio-auth-memory": "^10.2.2"
},
"devDependencies": {
"@antfu/ni": "^0.21.12",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"eslint-define-config": "^2.1.0",
"eslint-plugin-n": "^17.14.0",
"lint-staged": "^15.2.10",
"prettier": "^3.4.1",
"rimraf": "^5.0.10",
"@antfu/ni": "^23.3.1",
"eslint": "^9.20.0",
"eslint-plugin-n": "^17.15.1",
"jiti": "^2.4.2",
"lint-staged": "^15.4.3",
"prettier": "^3.5.0",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"yaml": "^2.6.1"
"typescript": "^5.7.3",
"typescript-eslint": "^8.23.0",
"yaml": "^2.7.0"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit 73c2f04

Please sign in to comment.