Skip to content

Commit 0bd0441

Browse files
feat: support ESLint 8.x (#10)
* feat: support ESLint 8.x * chore: use `@babel/register` instead of `esm` (#16) * chore: use esbuild-register instead of esm. * chore: add esbuild to deps * chore: use @babel/register instead of esbuild-register Co-authored-by: Yosuke Ota <[email protected]>
1 parent 023a0a8 commit 0bd0441

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

.esmrc.json

-5
This file was deleted.

.github/workflows/CI.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@ jobs:
4444
matrix.os }})
4545
strategy:
4646
matrix:
47-
eslint: [7]
47+
eslint: [8]
4848
node: [12.22.0, 12, 14.17.0, 14, 16, 18]
4949
os: [ubuntu-latest]
5050
include:
5151
# On other platforms
5252
- os: windows-latest
53-
eslint: 7
53+
eslint: 8
5454
node: 18
5555
- os: macos-latest
56-
eslint: 7
56+
eslint: 8
5757
node: 18
5858
# On old ESLint versions
59+
- eslint: 7
60+
node: 18
61+
os: ubuntu-latest
5962
- eslint: 6
6063
node: 18
6164
os: ubuntu-latest

.nycrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ reporter:
44
- lcov
55
- text-summary
66
require:
7-
- esm
7+
- "@babel/register"

babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-env node */
2+
"use strict"
3+
4+
module.exports = {
5+
plugins: ["@babel/plugin-transform-modules-commonjs"],
6+
}

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@
4949
"eslint-visitor-keys": "^3.3.0"
5050
},
5151
"devDependencies": {
52+
"@babel/core": "^7.20.2",
53+
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
54+
"@babel/register": "^7.18.9",
5255
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
5356
"dot-prop": "^6.0.1",
54-
"eslint": "^7.32.0",
55-
"esm": "^3.2.25",
57+
"eslint": "^8.28.0",
5658
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444",
5759
"mocha": "^8.4.0",
5860
"npm-run-all": "^4.1.5",
@@ -67,7 +69,7 @@
6769
"warun": "^1.0.0"
6870
},
6971
"peerDependencies": {
70-
"eslint": ">=6"
72+
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
7173
},
7274
"engines": {
7375
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"

0 commit comments

Comments
 (0)