Skip to content

Commit 66d746c

Browse files
committed
chore: streamline CI steps and update ESLint configuration
1 parent 87a6216 commit 66d746c

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ jobs:
4242
- name: Install dependencies
4343
run: pnpm install --frozen-lockfile
4444

45-
- name: Run type checking
46-
run: pnpm run check-types
47-
48-
- name: Run linting
49-
run: pnpm run lint
45+
- name: Run check
46+
run: pnpm run check
5047

5148
- name: Run tests
5249
run: xvfb-run -a pnpm test

.vscode-test.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import { defineConfig } from '@vscode/test-cli';
22

33
export default defineConfig({
44
files: 'out/test/**/*.test.js',
5+
desktopPlatform: 'darwin-arm64',
56
});

eslint.config.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,13 @@ export default [
5151
},
5252
},
5353
{
54-
files: ['*.js'],
55-
languageOptions: {
56-
ecmaVersion: 2020,
57-
sourceType: 'module',
58-
globals: {
59-
console: 'readonly',
60-
process: 'readonly',
61-
},
62-
},
63-
rules: {
64-
semi: 'error',
65-
},
66-
},
67-
{
68-
ignores: ['out/**', 'dist/**', '**/*.d.ts', 'node_modules/**'],
54+
ignores: [
55+
'out/**',
56+
'dist/**',
57+
'**/*.d.ts',
58+
'node_modules/**',
59+
'*.js',
60+
'*.mjs',
61+
],
6962
},
7063
];

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"type": "git",
99
"url": "git://github.com/dandehoon/vscode-generic-expand-selection.git"
1010
},
11-
"type": "module",
1211
"engines": {
1312
"vscode": "^1.92.0"
1413
},
@@ -47,7 +46,7 @@
4746
},
4847
"scripts": {
4948
"check": "tsc --noEmit && eslint src --ext ts",
50-
"test": "tsc -p . --outDir out && vscode-test",
49+
"test": "tsc -p . --outDir out && node esbuild.js && vscode-test",
5150
"build": "pnpm run check && node esbuild.js --production && pnpm dlx vsce package --no-dependencies -o out.vsix",
5251
"publish": "pnpm dlx vsce publish --no-dependencies",
5352
"vsce:install": "pnpm run build && code --install-extension out.vsix"

0 commit comments

Comments
 (0)