Skip to content

Commit

Permalink
chore: update all dependencies and cherry-pick changes from vite-ecos…
Browse files Browse the repository at this point in the history
…ystem-ci
  • Loading branch information
dominikg committed Feb 7, 2025
1 parent eac5e1e commit 06dd26a
Show file tree
Hide file tree
Showing 8 changed files with 834 additions and 828 deletions.
32 changes: 0 additions & 32 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 @@ -133,7 +133,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
2 changes: 1 addition & 1 deletion ecosystem-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cli
.option('--repo <repo>', 'svelte repository to use', {
default: 'sveltejs/svelte',
})
.option('--branch <branch>', 'svelte branch to use', { default: 'master' })
.option('--branch <branch>', 'svelte branch to use', { default: 'main' })
.option('--tag <tag>', 'svelte tag to use')
.option('--commit <commit>', 'svelte commit sha to use')
.action(async (suites, options: CommandOptions & { good: string }) => {
Expand Down
42 changes: 42 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// @ts-check
import eslint from '@eslint/js'
import pluginN from 'eslint-plugin-n'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{
ignores: ['.idea/**', '.vscode/**', 'workspace/**', 'node_modules/**'],
},
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
},
},
)
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "svelte Ecosystem CI",
"scripts": {
"prepare": "pnpm exec simple-git-hooks",
"lint": "eslint --ignore-path .gitignore '**/*.ts'",
"lint": "eslint '**/*.ts'",
"lint:fix": "pnpm lint --fix",
"typecheck": "tsc",
"format": "prettier --ignore-path .gitignore --check .",
Expand All @@ -25,11 +25,11 @@
"eslint --fix"
]
},
"packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0",
"packageManager": "pnpm@10.2.1",
"type": "module",
"engines": {
"node": ">=18",
"pnpm": "^9.0.0"
"node": ">=22",
"pnpm": "^10.2.1"
},
"repository": {
"type": "git",
Expand All @@ -41,30 +41,31 @@
},
"homepage": "https://github.com/sveltejs/svelte-ecosystem-ci#readme",
"dependencies": {
"@actions/core": "^1.10.1",
"@actions/core": "^1.11.1",
"cac": "^6.7.14",
"execa": "^8.0.1",
"execa": "^9.5.2",
"node-fetch": "^3.3.2"
},
"devDependencies": {
"@antfu/ni": "^0.21.12",
"@types/node": "^20.12.4",
"@antfu/ni": "^23.3.1",
"@eslint/js": "^9.19.0",
"@types/node": "^22.13.1",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint": "^9.19.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-n": "^16.6.2",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"semver": "^7.6.0",
"eslint-plugin-n": "^17.15.1",
"lint-staged": "^15.4.3",
"prettier": "^3.4.2",
"semver": "^7.7.1",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.7.2",
"typescript": "^5.4.4"
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.23.0"
},
"pnpm": {
"overrides": {
"braces@<3.0.3": "^3.0.3"
"braces@<3.0.3": "^3.0.3",
"cross-spawn@>=7.0.0 <7.0.5": "^7.0.5"
}
}
}
Loading

0 comments on commit 06dd26a

Please sign in to comment.