diff --git a/.esmrc.json b/.esmrc.json deleted file mode 100644 index 92f1436..0000000 --- a/.esmrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "cache": true, - "debug": true, - "sourceMap": true -} diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0b4dafc..9ba0f70 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 diff --git a/.nycrc.yml b/.nycrc.yml index 6ad267e..1f42e20 100644 --- a/.nycrc.yml +++ b/.nycrc.yml @@ -4,4 +4,4 @@ reporter: - lcov - text-summary require: - - esm + - "@babel/register" diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..f274c66 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,6 @@ +/* eslint-env node */ +"use strict" + +module.exports = { + plugins: ["@babel/plugin-transform-modules-commonjs"], +} diff --git a/package.json b/package.json index 754fbc3..514c8d5 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"