Skip to content
Merged
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
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

25 changes: 16 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Test

on:
pull_request:
push:
Expand All @@ -16,13 +15,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn install
- run: xvfb-run -a yarn test
if: runner.os == 'Linux'
- run: yarn test
if: runner.os != 'Linux'
node-version: 22.x
# cache: "pnpm"

# This is disabled until https://github.com/microsoft/vscode-test-cli/issues/77
# is resolved. We don't have any tests anyway.
# - run: pnpm install
# - run: xvfb-run -a pnpm test
# if: runner.os == 'Linux'
# - run: pnpm test
# if: runner.os != 'Linux'
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig, globalIgnores } from "eslint/config";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";

export default defineConfig([globalIgnores(["**/out", "**/dist", "**/*.d.ts"]), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
parser: tsParser,
ecmaVersion: 6,
sourceType: "module",
},

rules: {
"@typescript-eslint/naming-convention": "warn",
curly: "warn",
eqeqeq: "warn",
"no-throw-literal": "warn"
},
}]);
57 changes: 33 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@
"go-task",
"taskfile"
],
"type": "module",
"engines": {
"vscode": "^1.76.0"
"vscode": "^1.100.0",
"node": ">=22"
},
"vsce": {
"dependencies": false,
"useYarn": false
},
"packageManager": "[email protected]+sha512.68046141893c66fad01c079231128e9afb89ef87e2691d69e4d40eee228988295fd4682181bae55b58418c3a253bde65a505ec7c5f9403ece5cc3cd37dcf2531",
"categories": [
"Other"
],
Expand Down Expand Up @@ -344,38 +351,40 @@
}
},
"scripts": {
"bundle": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --minify",
"preinstall": "npx only-allow pnpm",
"bundle": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=esm --platform=node --minify",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"pretest": "pnpm run compile && pnpm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test",
"package": "vsce package --yarn",
"publish:vsce": "vsce publish --yarn",
"publish:ovsx": "ovsx publish --yarn",
"vscode:prepublish": "yarn run bundle"
"package": "vsce package",
"publish:vsce": "vsce publish",
"publish:ovsx": "ovsx publish",
"vscode:prepublish": "pnpm run bundle"
},
"devDependencies": {
"@types/glob": "8.1.0",
"@types/mocha": "10.0.6",
"@types/node": "20.x",
"@types/mocha": "10.0.10",
"@types/node": "24.3.0",
"@types/semver": "^7.7.0",
"@types/strip-ansi": "3.0.0",
"@types/vscode": "1.76.0",
"@typescript-eslint/eslint-plugin": "7.5.0",
"@typescript-eslint/parser": "7.5.0",
"@vscode/test-cli": "^0.0.8",
"@vscode/test-electron": "2.3.9",
"@vscode/vsce": "2.24.0",
"esbuild": "0.20.2",
"eslint": "8.57.0",
"mocha": "10.4.0",
"ovsx": "0.9.0",
"typescript": "5.4.4"
"@types/vscode": "1.100.0",
"@typescript-eslint/eslint-plugin": "8.40.0",
"@typescript-eslint/parser": "8.40.0",
"@vscode/test-cli": "0.0.11",
"@vscode/test-electron": "2.5.2",
"@vscode/vsce": "3.6.0",
"esbuild": "0.25.9",
"eslint": "9.33.0",
"mocha": "11.7.1",
"ovsx": "0.10.5",
"typescript": "5.9.2"
},
"dependencies": {
"@octokit/types": "13.1.0",
"octokit": "3.2.0",
"semver": "7.6.0",
"strip-ansi": "6.0.1"
"@octokit/types": "14.1.0",
"octokit": "5.0.3",
"semver": "7.7.2",
"strip-ansi": "7.1.0"
}
}
Loading
Loading