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
When we define vite.define custon environment configuration and add global constants along with it.
Vscode works as expected, however on eslint cli it always return '__VERSION__' is not defined no-undef.
Reproduction
Create new sveltekit repository: yarn create svelte my-app
Answer question as following
Which Svelte app template? › Skeleton project
Add type checking with TypeScript? › Yes, using TypeScript syntax
eslint doesn't know about your vite config or your .d.ts files. you will have to fix that by adding /*global __VERSION__*/ to the file that references that global, or adding "globals": { "__VERSION__": true } to your eslint config
Describe the bug
When we define
vite.define
custon environment configuration and add global constants along with it.Vscode works as expected, however on
eslint
cli it always return'__VERSION__' is not defined no-undef
.Reproduction
yarn create svelte my-app
yarn lint
ornpm run lint
and error will throw as belowI create example repository here and also create Github Action usecase the result as well here
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: