You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm ls react-scripts (if you haven’t ejected):
eslint-test@0.1.0 /Users/Joao/code/node/eslint-test
└── react-scripts@1.1.0
yarn eslint --version: v4.17.0
Node LTS, latest version of yarn
Then, specify:
Operating system: MacOS High Sierra 10.13.2
Browser and version (if relevant):
Steps to Reproduce
Run in terminal
create-react-app eslint-test
cd eslint-test/
yarn add eslint -D
Create file .eslintrc in project root
Add this content to the .eslintrc file:
{
"extends": "react-app"
}
Run yarn
Run yarn eslint src/App.js --debug
Expected Behavior
I though ESLINT would parse the file App.js
ESLint was supposed to work because I have followed the instructions on the documentation at "Displaying Lint Output in the Editor"
Actual Behavior
I'm getting the error Cannot find module 'eslint-config-react-app'
The output of yarn eslint src/App.js --debug:
The command npm ls eslint-config-react-app prints:
This issue was fixed running the command: yarn add -D eslint-config-react-app babel-eslint@^7.2.3 eslint@^4.1.1 eslint-plugin-flowtype@^2.34.1 eslint-plugin-import@^2.6.0 eslint-plugin-jsx-a11y@^5.1.1 eslint-plugin-react@^7.1.0
This issue took quite a while to be resolved.
Should this command be documented at "Displaying Lint Output in the Editor" or "Troubeshoot"? Others could be facing the same problem.
Reproducible Demo
Run the commands on Steps to reproduce.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs.
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes.
yarn --version 1.3.2
Which terms did you search for in User Guide?
Displaying Lint Output in the Editor
Environment
node -v
: v8.9.4npm -v
: 5.6.0yarn --version
:1.32npm ls react-scripts
(if you haven’t ejected):eslint-test@0.1.0 /Users/Joao/code/node/eslint-test
└── react-scripts@1.1.0
yarn eslint --version
: v4.17.0Node LTS, latest version of yarn
Then, specify:
Steps to Reproduce
yarn
yarn eslint src/App.js --debug
Expected Behavior
I though ESLINT would parse the file App.js
ESLint was supposed to work because I have followed the instructions on the documentation at "Displaying Lint Output in the Editor"
Actual Behavior
I'm getting the error
Cannot find module 'eslint-config-react-app'
The output of
yarn eslint src/App.js --debug
:The command
npm ls eslint-config-react-app
prints:This issue was fixed running the command:
yarn add -D eslint-config-react-app babel-eslint@^7.2.3 eslint@^4.1.1 eslint-plugin-flowtype@^2.34.1 eslint-plugin-import@^2.6.0 eslint-plugin-jsx-a11y@^5.1.1 eslint-plugin-react@^7.1.0
This issue took quite a while to be resolved.
Should this command be documented at "Displaying Lint Output in the Editor" or "Troubeshoot"? Others could be facing the same problem.
Reproducible Demo
Run the commands on Steps to reproduce.
The text was updated successfully, but these errors were encountered: