Skip to content

Commit

Permalink
chore: migrate to @babel/eslint-parser (facebook#10761)
Browse files Browse the repository at this point in the history
Co-authored-by: Brody McKee <mrmckeb@gmail.com>
  • Loading branch information
JLHwung and mrmckeb authored Jul 14, 2021
1 parent 31978f8 commit 4e3aee8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
},
"types": "./lib/react-app.d.ts",
"dependencies": {
"@babel/core": "^7.12.3",
"@babel/core": "7.12.3",
"@babel/eslint-parser": "^7.13.14",
"@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
"@svgr/webpack": "5.5.0",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.0",
"babel-loader": "^8.1.0",
"babel-plugin-named-asset-import": "^0.3.7",
Expand Down
4 changes: 3 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ function build(previousFileSizes) {
messages.warnings.length
) {
// Ignore sourcemap warnings in CI builds. See #8227 for more info.
const filteredWarnings = messages.warnings.filter(w => !/Failed to parse source map/.test(w));
const filteredWarnings = messages.warnings.filter(
w => !/Failed to parse source map/.test(w)
);
if (filteredWarnings.length) {
console.log(
chalk.yellow(
Expand Down
1 change: 1 addition & 0 deletions scripts/utils/verifyPackageTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function verifyPackageTree() {
// These are packages most likely to break in practice.
// See https://github.com/facebook/create-react-app/issues/1795 for reasons why.
// I have not included Babel here because plugins typically don't import Babel (so it's not affected).
'@babel/eslint-parser',
'babel-jest',
'babel-loader',
'jest',
Expand Down

0 comments on commit 4e3aee8

Please sign in to comment.