Skip to content

Commit 0519311

Browse files
committed
refactor: Migrate to ESM
1 parent c25b736 commit 0519311

33 files changed

+1216
-2637
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ jobs:
77
name: Lint
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Check out repository
11-
uses: actions/checkout@v3
12-
- name: Set up Node.js
13-
uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1412
with:
15-
node-version: 20
16-
- name: Install dependencies
17-
run: npm ci
18-
- name: Lint
19-
run: npm run lint
20-
- name: Type check
21-
run: npm run typecheck
13+
node-version: 24
14+
- run: npm ci
15+
- run: node --run run lint:js
16+
- run: node --run run lint:format
17+
- run: node --run run typecheck

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.vsix
2-
node_modules
3-
out
2+
/node_modules
3+
/out

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

.nvmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/CHANGELOG.md

.prettierrc.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ printWidth: 100
22
semi: false
33
singleQuote: true
44
trailingComma: all
5-
useTabs: true

eslint.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import eslint from '@eslint/js'
2+
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort'
3+
import tseslint from 'typescript-eslint'
4+
5+
export default tseslint.config(
6+
{ ignores: ['out'] },
7+
{
8+
plugins: {
9+
'simple-import-sort': simpleImportSortPlugin,
10+
},
11+
rules: {
12+
'simple-import-sort/imports': 'error',
13+
'simple-import-sort/exports': 'error',
14+
},
15+
},
16+
eslint.configs.recommended,
17+
tseslint.configs.strict,
18+
)

0 commit comments

Comments
 (0)