Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d5c0fe2

Browse filesBrowse files
authored
fix: resolve ESLint config from appPath (#9683)
1 parent 7e4949a commit d5c0fe2
Copy full SHA for d5c0fe2

File tree

Expand file treeCollapse file tree

3 files changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+2
-1
lines changed

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

Copy file name to clipboardExpand all lines: packages/eslint-config-react-app/base.js
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: packages/eslint-config-react-app/index.js
-1Lines changed: 0 additions & 1 deletion
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

Copy file name to clipboardExpand all lines: packages/react-scripts/config/webpack.config.js
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.