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
Then run yarn add -D eslint @remix-run/eslint-config.
Create a file called .eslintrc with the following:
{
"extends": [ "@remix-run/eslint-config" ]
}
Create a file called test.js with the following:
eslint_Wont_like_This=true
Run yarn eslint test.js.
Expected Behavior
$ yarn eslint test.js
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
/tmp/t/test.js
1:1 error 'eslint_Wont_like_This' is not defined no-undef
✖ 1 problem (1 error, 0 warnings)
$
Actual Behavior
$ yarn eslint test.js
/tmp/t/test.js
0:0 error Parsing error: Your application tried to access @babel/preset-react, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: @babel/preset-react
Required by: /tmp/t/
Require stack:
- /tmp/t/.yarn/cache/@babel-core-npm-7.18.6-52b1065703-711459ebf7.zip/node_modules/@babel/core/lib/config/files/plugins.js
- /tmp/t/.yarn/cache/@babel-core-npm-7.18.6-52b1065703-711459ebf7.zip/node_modules/@babel/core/lib/config/files/index.js
- /tmp/t/.yarn/cache/@babel-core-npm-7.18.6-52b1065703-711459ebf7.zip/node_modules/@babel/core/lib/index.js
- /tmp/t/.yarn/__virtual__/@babel-eslint-parser-virtual-35cbaac11a/0/cache/@babel-eslint-parser-npm-7.18.2-8989f47b38-dc9328cf33.zip/node_modules/@babel/eslint-parser/lib/worker/babel-core.cjs
- /tmp/t/.yarn/__virtual__/@babel-eslint-parser-virtual-35cbaac11a/0/cache/@babel-eslint-parser-npm-7.18.2-8989f47b38-dc9328cf33.zip/node_modules/@babel/eslint-parser/lib/worker/handle-message.cjs
- /tmp/t/.yarn/__virtual__/@babel-eslint-parser-virtual-35cbaac11a/0/cache/@babel-eslint-parser-npm-7.18.2-8989f47b38-dc9328cf33.zip/node_modules/@babel/eslint-parser/lib/client.cjs
- /tmp/t/.yarn/__virtual__/@babel-eslint-parser-virtual-35cbaac11a/0/cache/@babel-eslint-parser-npm-7.18.2-8989f47b38-dc9328cf33.zip/node_modules/@babel/eslint-parser/lib/index.cjs
- /tmp/t/.yarn/cache/@eslint-eslintrc-npm-1.3.0-1f3c51be25-a1e734ad31.zip/node_modules/@eslint/eslintrc/dist/eslintrc.cjs
✖ 1 problem (1 error, 0 warnings)
$
The text was updated successfully, but these errors were encountered:
What version of Remix are you using?
1.6.4
Steps to Reproduce
yarn init -2
.yarn add -D eslint @remix-run/eslint-config
..eslintrc
with the following:test.js
with the following:yarn eslint test.js
.Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: