Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#362)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* chore: migrate flat config

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MURAKAMI Masahiko <fossamagna2@gmail.com>
  • Loading branch information
renovate[bot] and fossamagna committed Apr 21, 2024
1 parent 7914827 commit a92caa4
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 282 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.js

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -28,6 +28,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm run lint
- run: npm test
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.3
Expand Down
14 changes: 14 additions & 0 deletions eslint.config.js
@@ -0,0 +1,14 @@
const js = require("@eslint/js");
const globals = require("globals");

module.exports = [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
...globals.commonjs,
},
},
},
];

0 comments on commit a92caa4

Please sign in to comment.