Skip to content

Commit 203548c

Browse files
liamfendiansumrmckeb
authored
update code (#2)
* Update CODEOWNERS * fix: resolve ESLint config from appPath (facebook#9683) Co-authored-by: Ian Sutherland <ian@iansutherland.ca> Co-authored-by: Brody McKee <mrmckeb@users.noreply.github.com>
1 parent bd63ae1 commit 203548c

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
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/ @amyrlam @iansu
2+
docusaurus/ @ianschmitz @iansu @mrmckeb

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

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

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

-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ 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',
257256
'react/require-render-return': 'error',
258257
'react/style-prop-object': 'warn',
259258

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

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

0 commit comments

Comments
 (0)