From b01f2242394bbde78d121213282f87e3f356298b Mon Sep 17 00:00:00 2001 From: Liam Li <398389303@qq.com> Date: Wed, 14 Oct 2020 00:12:21 +0800 Subject: [PATCH] Revert "update code (#2)" This reverts commit 203548ce2a8b1085a97874ae3cc4a2bc2341eeb0. --- .github/CODEOWNERS | 2 +- packages/eslint-config-react-app/base.js | 1 - packages/eslint-config-react-app/index.js | 1 + packages/react-scripts/config/webpack.config.js | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f0e8f10f061..f51aebeac2d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ packages/ @ianschmitz @iansu @mrmckeb @petetnt -docusaurus/ @ianschmitz @iansu @mrmckeb +docusaurus/ @amyrlam @iansu diff --git a/packages/eslint-config-react-app/base.js b/packages/eslint-config-react-app/base.js index 1e94b5a16c5..eef8973af55 100644 --- a/packages/eslint-config-react-app/base.js +++ b/packages/eslint-config-react-app/base.js @@ -43,6 +43,5 @@ module.exports = { rules: { 'react/jsx-uses-react': 'warn', 'react/jsx-uses-vars': 'warn', - 'react/react-in-jsx-scope': 'error', }, }; diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js index 06e9fb6287d..e1ef9c6ed44 100644 --- a/packages/eslint-config-react-app/index.js +++ b/packages/eslint-config-react-app/index.js @@ -253,6 +253,7 @@ module.exports = { 'react/no-direct-mutation-state': 'warn', 'react/no-is-mounted': 'warn', 'react/no-typos': 'error', + 'react/react-in-jsx-scope': 'error', 'react/require-render-return': 'error', 'react/style-prop-object': 'warn', diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index bb506bbf446..66af9f2ba13 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -361,7 +361,6 @@ module.exports = function (webpackEnv) { { options: { cache: true, - cwd: paths.appPath, formatter: require.resolve('react-dev-utils/eslintFormatter'), eslintPath: require.resolve('eslint'), resolvePluginsRelativeTo: __dirname,