Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support ESLint 7.x #71

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 47 additions & 35 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,57 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Packages
run: npm install
- name: Lint
run: npm run -s lint
- name: Checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install Packages
run: npm install
- name: Lint
run: npm run -s lint

test:
name: Test

strategy:
matrix:
eslint: [6, 5]
node: [13, 12, 10, 8, "8.10.0"]
exclude:
# Run ESLint 5 on only the LTS.
- node: 13
eslint: 5
- node: 10
eslint: 5
- node: 8
eslint: 5
- node: "8.10.0"
eslint: 5
eslint: [7]
node: [14]
os: [ubuntu-latest]
include:
# On other platforms
- eslint: 7
node: 14
os: windows-latest
- eslint: 7
node: 14
os: macos-latest
# On old Node.js versions
- eslint: 7
node: 12
os: ubuntu-latest
- eslint: 7
node: 10
os: ubuntu-latest
# On old ESLint versions
- eslint: 6
node: 14
os: ubuntu-latest
- eslint: 5
node: 14
os: ubuntu-latest
# On the minimum supported ESLint/Node.js version
- eslint: 5
node: 8.10.0
os: ubuntu-latest

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init
- name: Install Node.js v${{ matrix.node }}
Expand All @@ -61,15 +73,15 @@ jobs:
run: npm install
- name: Install ESLint v${{ matrix.eslint }}
run: |
if [ ${{ matrix.eslint }} -eq 6 ]; then
cd test/fixtures/eslint
npm install
else
if [ ${{ matrix.eslint }} -eq 5 ]; then
npm install --no-save [email protected]
cd test/fixtures/eslint
git checkout v5.16.0
npm install [email protected]
npm install
else
cd test/fixtures/eslint
npm install
fi
- name: Build
run: npm run -s build
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"debug": "^4.1.1",
"eslint-scope": "^5.0.0",
"eslint-visitor-keys": "^1.1.0",
"espree": "^6.1.2",
"espree": "^7.0.0",
"esquery": "^1.0.1",
"lodash": "^4.17.15"
},
Expand All @@ -27,13 +27,13 @@
"@types/lodash": "^4.14.120",
"@types/mocha": "^5.2.4",
"@types/node": "^10.12.21",
"@typescript-eslint/parser": "^1.2.0",
"@typescript-eslint/parser": "^2.31.0",
"babel-eslint": "^10.0.1",
"chokidar": "^2.0.4",
"codecov": "^3.1.0",
"cross-spawn": "^6.0.5",
"dts-bundle": "^0.7.3",
"eslint": "^6.1.0",
"eslint": "^7.0.0",
"fs-extra": "^7.0.1",
"mocha": "^6.1.4",
"npm-run-all": "^4.1.5",
Expand Down