Skip to content

Commit

Permalink
Only use @babel/parser for react and flow
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Dec 2, 2023
1 parent f5530d3 commit b2b8b35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ module.exports = {
),
],
parserOptions: {
parser: "@babel/eslint-parser",
ecmaVersion: 2018,
sourceType: "script",
// Needed for the lint-verify-fail.test.js test.
Expand Down Expand Up @@ -84,6 +83,10 @@ module.exports = {
"@typescript-eslint/indent": "error",
},
},
{
files: ["test-lint/{react,flowtype}.js"],
parserOptions: { parser: "@babel/eslint-parser" },
},
],
settings: {
react: {
Expand Down
2 changes: 0 additions & 2 deletions eslint.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const fs = require("fs");
const path = require("path");
const babelOld = require("eslint-plugin-babel");
const babelNew = require("@babel/eslint-plugin");
const babelParser = require("@babel/eslint-parser");
const flowtype = require("eslint-plugin-flowtype");
const globals = require("globals");
const google = require("eslint-config-google");
Expand Down Expand Up @@ -65,7 +64,6 @@ module.exports = [
...globals.es6,
...globals.node,
},
parser: babelParser,
},
rules: eslintrcBase.rules,
settings: eslintrcBase.settings,
Expand Down

0 comments on commit b2b8b35

Please sign in to comment.