Is there a recommended way to deal with the window object in TypeScript? #1617
-
Obviously |
Beta Was this translation helpful? Give feedback.
Answered by
benrbowers
Aug 31, 2024
Replies: 1 comment
-
The problem was eslint 💀 Add globals to the language options if you're using eslint.config.js: {
languageOptions: {
parser: tsParser,
parserOptions: {
project: 'tsconfig.json',
},
globals: {
window: 'readonly',
console: 'readonly',
},
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benrbowers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem was eslint 💀
Add globals to the language options if you're using eslint.config.js: