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
Found this amazing release 3.3.0-next.62 from: #7981
Here I come optional chaining, all works but 2 issues when using Typescript 3.7.2
It will stop compiling when using optional chaining, for this ESLint rule:no-unused-expressions, I have to extend ESLint and disable it in order to avoid adding eslint-disable-next-line every time I use it.
Failed to load plugin '@typescript-eslint' declared in'client/package.json » eslint-config-react-app#overrides[0]': Cannot find module '@typescript-eslint/eslint-plugin'
Require stack:
- /Users/AlbertGao/codes/test/__placeholder__.js
Happened while validating /Users/AlbertGao/codes/test/client/src/App.tsx
This can happen for a couple of reasons:
1. The plugin name is spelled incorrectly in an ESLint configuration file (e.g. .eslintrc).
2. If ESLint is installed globally, then make sure '@typescript-eslint/eslint-plugin' is installed globally as well.
3. If ESLint is installed locally, then'@typescript-eslint/eslint-plugin' isn't installed correctly.
The text was updated successfully, but these errors were encountered:
I think 1 should have been solved by typescript-eslint/typescript-eslint#1175, which i don't believe that beta release includes. We've since updated the packages and will do so again before the final release.
For 2 it sounds like you've solved it. Likely you hadn't opened VS code to the CRA root is my guess?
---project root
-----------client (bootstraped by CRA)
I started VSC with the project root, because there will be a server folder later, all in one IDE :D
I think for the plugin I use, I need to specify the path when the .eslintrc is not at the root but another level. :D
Found this amazing release
3.3.0-next.62
from: #7981Here I come optional chaining, all works but 2 issues when using Typescript 3.7.2
no-unused-expressions
, I have to extend ESLint and disable it in order to avoid addingeslint-disable-next-line
every time I use it.The text was updated successfully, but these errors were encountered: