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

Commit

Permalink
fix: update ESLint to v9 (#819)
Browse files Browse the repository at this point in the history
* chore: update ESLint to v9

* chore: use node 20 for build workflow

* fix: remove unneeded packages
  • Loading branch information
dan-mba authored Aug 21, 2024
1 parent 2ac5e1d commit 560e396
Show file tree
Hide file tree
Showing 6 changed files with 206 additions and 189 deletions.
25 changes: 0 additions & 25 deletions .eslintrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install dependencies
run: npm ci
- name: lint check
Expand All @@ -22,6 +24,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install dependencies
run: npm ci
- name: build app
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// @ts-check

import globals from 'globals';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default tseslint.config(
{
ignores: ['prod/**/*', 'jest.config.ts'],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.jest,
...globals.node,
},
},
},
eslintPluginPrettierRecommended,
);
Loading

0 comments on commit 560e396

Please sign in to comment.