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
You can see I simply declare a global variable, which works just fine for type checking, the problem comes on the example project, ESLint complains the variable has not been declared anywhere.
I have also declared the variable in the root package.json
This discussion was converted from issue #233 on October 14, 2022 15:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm creating a JSI module and I have registered the module on the global object, here is my
index.ts
:You can see I simply declare a global variable, which works just fine for type checking, the problem comes on the example project, ESLint complains the variable has not been declared anywhere.
I have also declared the variable in the root
package.json
What's the correct way to add a global variable to ESLint so that when the library is a dependency ESLint knows about the global variable?
Beta Was this translation helpful? Give feedback.
All reactions