Skip to content

Commit

Permalink
feat: support ESLint 8.x (#10)
Browse files Browse the repository at this point in the history
* 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 <otameshiyo23@gmail.com>
  • Loading branch information
MichaelDeBoey and ota-meshi committed Nov 27, 2022
1 parent 023a0a8 commit 0bd0441
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .esmrc.json

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/CI.yml
Expand Up @@ -44,18 +44,21 @@ jobs:
matrix.os }})
strategy:
matrix:
eslint: [7]
eslint: [8]
node: [12.22.0, 12, 14.17.0, 14, 16, 18]
os: [ubuntu-latest]
include:
# On other platforms
- os: windows-latest
eslint: 7
eslint: 8
node: 18
- os: macos-latest
eslint: 7
eslint: 8
node: 18
# On old ESLint versions
- eslint: 7
node: 18
os: ubuntu-latest
- eslint: 6
node: 18
os: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .nycrc.yml
Expand Up @@ -4,4 +4,4 @@ reporter:
- lcov
- text-summary
require:
- esm
- "@babel/register"
6 changes: 6 additions & 0 deletions babel.config.js
@@ -0,0 +1,6 @@
/* eslint-env node */
"use strict"

module.exports = {
plugins: ["@babel/plugin-transform-modules-commonjs"],
}
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -49,10 +49,12 @@
"eslint-visitor-keys": "^3.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.2",
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
"@babel/register": "^7.18.9",
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
"dot-prop": "^6.0.1",
"eslint": "^7.32.0",
"esm": "^3.2.25",
"eslint": "^8.28.0",
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444",
"mocha": "^8.4.0",
"npm-run-all": "^4.1.5",
Expand All @@ -67,7 +69,7 @@
"warun": "^1.0.0"
},
"peerDependencies": {
"eslint": ">=6"
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
Expand Down

0 comments on commit 0bd0441

Please sign in to comment.