Skip to content
This repository was archived by the owner on Oct 10, 2024. It is now read-only.

Commit 560e396

Browse files
authored
fix: update ESLint to v9 (#819)
* chore: update ESLint to v9 * chore: use node 20 for build workflow * fix: remove unneeded packages
1 parent 2ac5e1d commit 560e396

File tree

6 files changed

+206
-189
lines changed

6 files changed

+206
-189
lines changed

.eslintrc.cjs

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

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20
1214
- name: install dependencies
1315
run: npm ci
1416
- name: lint check
@@ -22,6 +24,8 @@ jobs:
2224
steps:
2325
- uses: actions/checkout@v4
2426
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
2529
- name: install dependencies
2630
run: npm ci
2731
- name: build app

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @ts-check
2+
3+
import globals from 'globals';
4+
import eslint from '@eslint/js';
5+
import tseslint from 'typescript-eslint';
6+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
7+
8+
export default tseslint.config(
9+
{
10+
ignores: ['prod/**/*', 'jest.config.ts'],
11+
},
12+
eslint.configs.recommended,
13+
...tseslint.configs.recommended,
14+
{
15+
languageOptions: {
16+
globals: {
17+
...globals.jest,
18+
...globals.node,
19+
},
20+
},
21+
},
22+
eslintPluginPrettierRecommended,
23+
);

0 commit comments

Comments
 (0)