Skip to content

Commit dfdd579

Browse files
authored
Revert "update code (#2)" (#3)
This reverts commit 203548c.
1 parent 203548c commit dfdd579

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
packages/ @ianschmitz @iansu @mrmckeb @petetnt
2-
docusaurus/ @ianschmitz @iansu @mrmckeb
2+
docusaurus/ @amyrlam @iansu

packages/eslint-config-react-app/base.js

-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ module.exports = {
4343
rules: {
4444
'react/jsx-uses-react': 'warn',
4545
'react/jsx-uses-vars': 'warn',
46-
'react/react-in-jsx-scope': 'error',
4746
},
4847
};

packages/eslint-config-react-app/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ module.exports = {
253253
'react/no-direct-mutation-state': 'warn',
254254
'react/no-is-mounted': 'warn',
255255
'react/no-typos': 'error',
256+
'react/react-in-jsx-scope': 'error',
256257
'react/require-render-return': 'error',
257258
'react/style-prop-object': 'warn',
258259

packages/react-scripts/config/webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ module.exports = function (webpackEnv) {
361361
{
362362
options: {
363363
cache: true,
364-
cwd: paths.appPath,
365364
formatter: require.resolve('react-dev-utils/eslintFormatter'),
366365
eslintPath: require.resolve('eslint'),
367366
resolvePluginsRelativeTo: __dirname,

0 commit comments

Comments
 (0)