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

[Tests] use @babel/eslint-parser instead of babel-eslint #811

Merged
merged 1 commit into from Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -3,7 +3,7 @@
"airbnb-base",
"plugin:flowtype/recommended"
],
parser: "babel-eslint",
parser: "@babel/eslint-parser",
plugins: [
"flowtype"
],
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/node-4+.yml
Expand Up @@ -70,8 +70,11 @@ jobs:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
env:
NPM_CONFIG_LEGACY_PEER_DEPS: true
NPM_CONFIG_FORCE: ${{ matrix.node-version == 11 && 'true' || 'false' }}
with:
after_install: npm uninstall --no-save eslint-config-airbnb-base && NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
after_install: npm uninstall --no-save eslint-config-airbnb-base && npm install --no-save "eslint@${{ matrix.eslint }}"
node-version: ${{ matrix.node-version }}
skip-ls-check: true
- run: rm __tests__/src/util/getComputedRole-test.js
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -31,11 +31,11 @@
"jest": "jest --coverage __tests__/**/*"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/plugin-transform-flow-strip-types": "^7.14.5",
"aud": "^1.1.5",
"babel-eslint": "^10.1.0",
MichaelDeBoey marked this conversation as resolved.
Show resolved Hide resolved
"babel-jest": "^24.9.0",
"babel-preset-airbnb": "^5.0.0",
"eslint": "^3 || ^4 || ^5 || ^6 || ^7",
Expand Down