Skip to content

Commit 7aba9f2

Browse files
committed
Bump development environment
1 parent cdc3bc7 commit 7aba9f2

23 files changed

+1286
-1190
lines changed

.eslintrc.json

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

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
15-
with:
16-
node-version: 18.x
17-
- run: npm install
18-
- run: xvfb-run -a npm test
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 22.x
17+
- run: npm ci
18+
- run: npm run compile
19+
- run: npm run lint
20+
- run: xvfb-run -a npm test

eslint.config.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import js from '@eslint/js'
2+
import tseslint from '@typescript-eslint/eslint-plugin'
3+
import tsparser from '@typescript-eslint/parser'
4+
import prettier from 'eslint-config-prettier'
5+
import pluginPrettier from 'eslint-plugin-prettier'
6+
7+
export default [
8+
js.configs.recommended,
9+
{
10+
files: ['src/**/*.ts'],
11+
languageOptions: {
12+
parser: tsparser,
13+
parserOptions: {
14+
project: './tsconfig.json',
15+
sourceType: 'module'
16+
},
17+
globals: {
18+
console: 'readonly',
19+
process: 'readonly',
20+
Buffer: 'readonly',
21+
__dirname: 'readonly'
22+
}
23+
},
24+
plugins: {
25+
'@typescript-eslint': tseslint,
26+
prettier: pluginPrettier
27+
},
28+
rules: {
29+
...tseslint.configs.recommended.rules,
30+
'prettier/prettier': 'error'
31+
}
32+
},
33+
{
34+
files: ['src/test/**/*.ts', 'src/test/**/*.js'],
35+
languageOptions: {
36+
parser: tsparser,
37+
parserOptions: {
38+
project: './tsconfig.json',
39+
sourceType: 'module'
40+
},
41+
globals: {
42+
test: 'readonly',
43+
suite: 'readonly',
44+
describe: 'readonly',
45+
it: 'readonly',
46+
before: 'readonly',
47+
after: 'readonly',
48+
beforeEach: 'readonly',
49+
afterEach: 'readonly',
50+
console: 'readonly',
51+
process: 'readonly',
52+
Buffer: 'readonly',
53+
__dirname: 'readonly'
54+
}
55+
},
56+
plugins: {
57+
'@typescript-eslint': tseslint,
58+
prettier: pluginPrettier
59+
},
60+
rules: {
61+
...tseslint.configs.recommended.rules,
62+
'prettier/prettier': 'error'
63+
}
64+
},
65+
prettier
66+
]

0 commit comments

Comments
 (0)