diff --git a/.eslintrc.base.js b/.eslintrc.base.js index 0efd2b1..96aaf6b 100644 --- a/.eslintrc.base.js +++ b/.eslintrc.base.js @@ -25,7 +25,6 @@ module.exports = { ), ], parserOptions: { - parser: "@babel/eslint-parser", ecmaVersion: 2018, sourceType: "script", // Needed for the lint-verify-fail.test.js test. @@ -84,6 +83,10 @@ module.exports = { "@typescript-eslint/indent": "error", }, }, + { + files: ["test-lint/{react,flowtype}.js"], + parserOptions: { parser: "@babel/eslint-parser" }, + }, ], settings: { react: { diff --git a/eslint.base.config.js b/eslint.base.config.js index b9c25e8..1dd2330 100644 --- a/eslint.base.config.js +++ b/eslint.base.config.js @@ -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"); @@ -65,7 +64,6 @@ module.exports = [ ...globals.es6, ...globals.node, }, - parser: babelParser, }, rules: eslintrcBase.rules, settings: eslintrcBase.settings,