Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update all #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- name: install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ecosystem-ci-selected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
id: setup-node
- uses: denoland/setup-deno@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
id: setup-node
- uses: denoland/setup-deno@v1
with:
Expand Down
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
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: ['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
},
},
)
34 changes: 18 additions & 16 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,10 +25,10 @@
"eslint --fix"
]
},
"packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0",
"packageManager": "pnpm@9.15.1",
"type": "module",
"engines": {
"node": ">=18",
"node": ">=22",
"pnpm": "^9.0.0"
},
"repository": {
Expand All @@ -41,26 +41,28 @@
},
"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": "^0.23.2",
"@eslint/js": "^9.17.0",
"@types/node": "^22.10.3",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"eslint": "^9.17.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.3.0",
"prettier": "^3.4.2",
"semver": "^7.6.3",
"simple-git-hooks": "^2.11.1",
"tsx": "^4.7.2",
"typescript": "^5.4.4"
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.19.0"
},
"pnpm": {
"overrides": {
Expand Down
Loading
Loading