Skip to content

Commit 75d6d1b

Browse files
authored
CI: Audit node packages, update ESLint & uri-js, update Node in workflows (#246)
* vscode: Update eslint * vscode: Use uri-js-replace package * CI: Update Node in workflows * CI: Update Node in workflows * CI: Run Python on main or PR to main * CI: Update Node in workflows
1 parent 0f493dc commit 75d6d1b

13 files changed

Lines changed: 635 additions & 1117 deletions

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: '20'
26+
node-version: "22"
2727

2828
- name: Install tree-sitter-cli
2929
run: npm install -g tree-sitter-cli

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '20'
27+
node-version: "22"
2828

2929
- name: Install tree-sitter-cli
3030
run: npm install -g tree-sitter-cli

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Node.js
3636
uses: actions/setup-node@v4
3737
with:
38-
node-version: "20"
38+
node-version: "22"
3939

4040
- name: Install tree-sitter-cli
4141
run: npm install -g tree-sitter-cli

.github/workflows/python.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ name: Python
22

33
on:
44
push:
5+
branches: [main]
56
pull_request:
7+
branches: [main]
68

79
jobs:
810
test:
911
strategy:
1012
fail-fast: false
1113
matrix:
1214
os: [ubuntu-latest, macos-latest, windows-latest]
13-
python: ['3.10', '3.11', '3.12', '3.13']
15+
python: ["3.10", "3.11", "3.12", "3.13"]
1416
runs-on: ${{ matrix.os }}
1517
steps:
1618
- uses: actions/checkout@v4
@@ -21,7 +23,7 @@ jobs:
2123

2224
- uses: actions/setup-node@v4
2325
with:
24-
node-version: '20'
26+
node-version: "22"
2527

2628
- name: Install tree-sitter-cli
2729
run: npm install -g tree-sitter-cli
@@ -72,7 +74,7 @@ jobs:
7274

7375
- uses: actions/setup-node@v4
7476
with:
75-
node-version: '20'
77+
node-version: "22"
7678

7779
- name: Install tree-sitter-cli
7880
run: npm install -g tree-sitter-cli

.github/workflows/release-jupyter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: "20"
20+
node-version: "22"
2121

2222
- name: Install tree-sitter-cli
2323
run: npm install -g tree-sitter-cli

.github/workflows/release-packages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: "20"
24+
node-version: "22"
2525

2626
- name: Install tree-sitter-cli
2727
run: npm install -g tree-sitter-cli
@@ -75,7 +75,7 @@ jobs:
7575
- name: Install Node.js
7676
uses: actions/setup-node@v4
7777
with:
78-
node-version: "20"
78+
node-version: "22"
7979

8080
- name: Install tree-sitter-cli
8181
run: npm install -g tree-sitter-cli
@@ -125,7 +125,7 @@ jobs:
125125
- name: Install Node.js
126126
uses: actions/setup-node@v4
127127
with:
128-
node-version: "20"
128+
node-version: "22"
129129

130130
- name: Install tree-sitter-cli
131131
run: npm install -g tree-sitter-cli
@@ -181,7 +181,7 @@ jobs:
181181
- name: Install Node.js
182182
uses: actions/setup-node@v4
183183
with:
184-
node-version: "20"
184+
node-version: "22"
185185

186186
- name: Install tree-sitter-cli
187187
run: npm install -g tree-sitter-cli

.github/workflows/release-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: actions/setup-node@v4
2525
with:
26-
node-version: "20"
26+
node-version: "22"
2727

2828
- name: Install tree-sitter-cli
2929
run: npm install -g tree-sitter-cli

.github/workflows/release-vscode.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: "20"
23+
node-version: "22"
2424

2525
- name: Install vsce
2626
run: npm install -g @vscode/vsce

.github/workflows/wasm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: "20"
28+
node-version: "22"
2929

3030
- name: Install tree-sitter-cli
3131
run: npm install -g tree-sitter-cli

ggsql-vscode/eslint.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from "eslint/config";
2+
import tseslint from "@typescript-eslint/eslint-plugin";
3+
import tsparser from "@typescript-eslint/parser";
4+
5+
export default defineConfig([
6+
{
7+
files: ["src/**/*.ts"],
8+
languageOptions: {
9+
parser: tsparser,
10+
parserOptions: {
11+
projectService: true,
12+
},
13+
},
14+
plugins: {
15+
"@typescript-eslint": tseslint,
16+
},
17+
rules: {
18+
semi: "error",
19+
"prefer-const": "error",
20+
},
21+
},
22+
]);

0 commit comments

Comments
 (0)