Skip to content

Commit b006a92

Browse files
committedJul 18, 2022
Merge remote-tracking branch 'origin/main'
2 parents 58db9cc + c703a77 commit b006a92

File tree

5 files changed

+1684
-2706
lines changed

5 files changed

+1684
-2706
lines changed
 

‎.github/workflows/tests.yml

+13-11
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
1818
with:
1919
cache: npm
2020
- run: npm ci
@@ -32,10 +32,17 @@ jobs:
3232
- os: windows-latest
3333
eslint: latest
3434
steps:
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-node@v2
35+
- uses: actions/checkout@v3
36+
- uses: actions/setup-node@v3
3737
with:
3838
cache: npm
39+
# https://github.com/actions/setup-node/issues/515#issuecomment-1153685437
40+
- if: ${{ matrix.os == 'windows-latest' }}
41+
run: |
42+
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
43+
$NodeDirPath = Split-Path $WhereNode -Parent
44+
cd $NodeDirPath
45+
npm install npm@8.12.1
3946
- run: npm ci
4047
- run: bash tools/integration-tests.bash ${{ matrix.eslint }}
4148

@@ -48,11 +55,6 @@ jobs:
4855
node: [12, 14, 16, 17]
4956
eslint: [latest]
5057
include:
51-
# Node 10 support: will be dropped in next major version
52-
- os: ubuntu-latest
53-
node: 10
54-
eslint: 7
55-
5658
# ESLint 4.7 support: lowest version supported
5759
- os: ubuntu-latest
5860
node: 16
@@ -68,8 +70,8 @@ jobs:
6870
node: 16
6971
eslint: latest
7072
steps:
71-
- uses: actions/checkout@v2
72-
- uses: actions/setup-node@v2
73+
- uses: actions/checkout@v3
74+
- uses: actions/setup-node@v3
7375
with:
7476
node-version: ${{ matrix.node }}
7577
cache: npm

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
UNRELEASED v7.0.0
2+
* **Breaking: drop Node 10 support**
3+
14
2021-09-20 v6.2.0
25
* Update dependencies
36
* Fix support for ESLint v8.0.0-beta.2

‎package-lock.json

+1,663-2,692
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
],
1818
"main": "src/index.js",
1919
"dependencies": {
20-
"htmlparser2": "^7.1.2"
20+
"htmlparser2": "^8.0.1"
2121
},
2222
"devDependencies": {
2323
"eslint": "^8.5.0",
2424
"eslint-config-benoitz-prettier": "^1.1.0",
25-
"jest": "^27.2.0",
25+
"jest": "^28.1.3",
2626
"prettier": "^2.1.2",
2727
"semver": "^7.3.2"
2828
},

‎tools/integration-tests.bash

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ module.exports = {
3434
}
3535
EOF
3636

37+
npx eslint --format compact index.html > actual_output 2>&1 || true
38+
3739
expected_path="$(node -p "path.resolve('index.html')")"
3840

39-
cat << EOF | diff -u <(npx eslint --format compact index.html 2>&1) -
41+
cat << EOF | diff -u actual_output -
4042
$expected_path: line 2, col 1, Error - Unexpected console statement. (no-console)
4143
4244
1 problem

0 commit comments

Comments
 (0)
Please sign in to comment.