Skip to content

Commit aed7a20

Browse files
MichaelDeBoeyljharb
authored andcommitted
[Tests] use @babel/eslint-parser instead of babel-eslint
1 parent 0021489 commit aed7a20

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"airbnb-base",
44
"plugin:flowtype/recommended"
55
],
6-
parser: "babel-eslint",
6+
parser: "@babel/eslint-parser",
77
plugins: [
88
"flowtype"
99
],

.github/workflows/node-4+.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ jobs:
7070
fetch-depth: 0
7171
- uses: ljharb/actions/node/install@main
7272
name: 'nvm install ${{ matrix.node-version }} && npm install'
73+
env:
74+
NPM_CONFIG_LEGACY_PEER_DEPS: true
75+
NPM_CONFIG_FORCE: ${{ matrix.node-version == 11 && 'true' || 'false' }}
7376
with:
74-
after_install: npm uninstall --no-save eslint-config-airbnb-base && NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
77+
after_install: npm uninstall --no-save eslint-config-airbnb-base && npm install --no-save "eslint@${{ matrix.eslint }}"
7578
node-version: ${{ matrix.node-version }}
7679
skip-ls-check: true
7780
- run: rm __tests__/src/util/getComputedRole-test.js

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"jest": "jest --coverage __tests__/**/*"
3232
},
3333
"devDependencies": {
34-
"@babel/cli": "^7.14.5",
35-
"@babel/core": "^7.14.6",
34+
"@babel/cli": "^7.14.8",
35+
"@babel/core": "^7.15.0",
36+
"@babel/eslint-parser": "^7.15.0",
3637
"@babel/plugin-transform-flow-strip-types": "^7.14.5",
3738
"aud": "^1.1.5",
38-
"babel-eslint": "^10.1.0",
3939
"babel-jest": "^24.9.0",
4040
"babel-preset-airbnb": "^5.0.0",
4141
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",

0 commit comments

Comments
 (0)