Skip to content

Commit e7bb5a4

Browse files
mrmckebabhiisheek
authored andcommitted
fix: resolve ESLint config from appPath (facebook#9683)
1 parent 503cc0d commit e7bb5a4

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Diff for: 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
};

Diff for: 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

Diff for: 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)