Skip to content

Commit 2e32b6d

Browse files
authored
Merge pull request #110 from DeterminateSystems/push-yonmvkwskssu
Update actions / node24
2 parents 9a0a32f + 1f594ce commit 2e32b6d

File tree

8 files changed

+537
-694
lines changed

8 files changed

+537
-694
lines changed

.eslintrc.json

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
jobs:
99
build-check-typescript:
1010
name: Build and check the TypeScript Action
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212
permissions:
1313
contents: read
1414
id-token: write
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717
- uses: DeterminateSystems/determinate-nix-action@v3
1818
- uses: DeterminateSystems/flakehub-cache-action@main
1919
- run: nix develop --command pnpm install
@@ -27,9 +27,9 @@ jobs:
2727
run-x86_64-linux-clean:
2828
name: Run x86_64 Linux (clean)
2929
needs: build-check-typescript
30-
runs-on: ubuntu-22.04
30+
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v6
3333
- name: Check flake.lock
3434
uses: ./
3535
with:
@@ -38,9 +38,9 @@ jobs:
3838
run-x86_64-linux-dirty:
3939
name: Run x86_64 Linux (dirty)
4040
needs: build-check-typescript
41-
runs-on: ubuntu-22.04
41+
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444
- name: Check flake.lock
4545
uses: ./
4646
with:
@@ -52,7 +52,7 @@ jobs:
5252
needs: build-check-typescript
5353
runs-on: macos-latest
5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v6
5656
- name: Check flake.lock
5757
uses: ./
5858
with:
@@ -63,7 +63,7 @@ jobs:
6363
needs: build-check-typescript
6464
runs-on: macos-latest
6565
steps:
66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v6
6767
- name: Check flake.lock
6868
uses: ./
6969
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ on:
1818
jobs:
1919
build:
2020
name: Build Nix targets
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v6
2424
- name: Check Nix flake inputs
2525
uses: DeterminateSystems/flake-checker-action@main # This action
2626
- name: Install Nix

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ inputs:
5757
required: false
5858
default: false
5959
runs:
60-
using: "node20"
60+
using: "node24"
6161
main: "dist/index.js"

eslint.config.js

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import github from "eslint-plugin-github";
2+
import tseslint from "@typescript-eslint/eslint-plugin";
3+
import tsparser from "@typescript-eslint/parser";
4+
5+
export default [
6+
github.getFlatConfigs().recommended,
7+
...github.getFlatConfigs().typescript,
8+
{
9+
files: ["**/*.ts"],
10+
languageOptions: {
11+
parser: tsparser,
12+
parserOptions: {
13+
ecmaVersion: 9,
14+
sourceType: "module",
15+
project: "./tsconfig.json",
16+
},
17+
},
18+
plugins: {
19+
"@typescript-eslint": tseslint,
20+
},
21+
rules: {
22+
"i18n-text/no-en": "off",
23+
"eslint-comments/no-use": "off",
24+
"import/no-namespace": "off",
25+
"no-unused-vars": "off",
26+
"@typescript-eslint/no-unused-vars": [
27+
"error",
28+
{
29+
argsIgnorePattern: "^_",
30+
},
31+
],
32+
"@typescript-eslint/explicit-member-accessibility": [
33+
"error",
34+
{
35+
accessibility: "no-public",
36+
},
37+
],
38+
"@typescript-eslint/no-base-to-string": "error",
39+
"@typescript-eslint/no-require-imports": "error",
40+
"@typescript-eslint/array-type": "error",
41+
"@typescript-eslint/await-thenable": "error",
42+
"@typescript-eslint/ban-ts-comment": "error",
43+
camelcase: "error",
44+
"@typescript-eslint/consistent-type-assertions": "error",
45+
"@typescript-eslint/explicit-function-return-type": [
46+
"error",
47+
{
48+
allowExpressions: true,
49+
},
50+
],
51+
"func-call-spacing": ["error", "never"],
52+
"@typescript-eslint/no-array-constructor": "error",
53+
"@typescript-eslint/no-empty-interface": "error",
54+
"@typescript-eslint/no-explicit-any": "error",
55+
"@typescript-eslint/no-floating-promises": "error",
56+
"@typescript-eslint/no-extraneous-class": "error",
57+
"@typescript-eslint/no-for-in-array": "error",
58+
"@typescript-eslint/no-inferrable-types": "error",
59+
"@typescript-eslint/no-misused-new": "error",
60+
"@typescript-eslint/no-namespace": "error",
61+
"@typescript-eslint/no-non-null-assertion": "warn",
62+
"@typescript-eslint/no-unnecessary-qualifier": "error",
63+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
64+
"@typescript-eslint/no-useless-constructor": "error",
65+
"@typescript-eslint/no-var-requires": "error",
66+
"@typescript-eslint/prefer-for-of": "warn",
67+
"@typescript-eslint/prefer-function-type": "warn",
68+
"@typescript-eslint/prefer-includes": "error",
69+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
70+
"@typescript-eslint/promise-function-async": "error",
71+
"@typescript-eslint/require-array-sort-compare": "error",
72+
"@typescript-eslint/restrict-plus-operands": "error",
73+
// '@typescript-eslint/type-annotation-spacing': 'error',
74+
"@typescript-eslint/unbound-method": "error",
75+
},
76+
},
77+
];

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@
2929
"detsys-ts": "github:DeterminateSystems/detsys-ts"
3030
},
3131
"devDependencies": {
32-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
33-
"@types/node": "^20.19.37",
34-
"@typescript-eslint/eslint-plugin": "^7.18.0",
32+
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
33+
"@types/node": "^25.5.0",
34+
"@typescript-eslint/eslint-plugin": "^8.57.2",
35+
"@typescript-eslint/parser": "^8.57.2",
3536
"@vercel/ncc": "^0.38.4",
36-
"eslint": "^8.57.1",
37-
"eslint-import-resolver-typescript": "^3.10.1",
38-
"eslint-plugin-github": "^4.10.2",
37+
"eslint": "^9.14.0",
38+
"eslint-import-resolver-typescript": "^4.4.4",
39+
"eslint-plugin-github": "^6.0.0",
3940
"eslint-plugin-import": "^2.32.0",
4041
"eslint-plugin-prettier": "^5.5.5",
4142
"prettier": "^3.8.1",

0 commit comments

Comments
 (0)