'Intl' is not defined. eslint(no-undef)
See original GitHub issueIntl
is treated by eslint as undefined for whatever reason:
'Intl' is not defined. eslint(no-undef)
It should not be like that, because Intl
is perfectly defined.
I had to add it to globals
in the config file to avoid Intl
being underlined by the editor.
EDIT: It’s a React Native project, created with react-native-cli, if it matters.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
ESLint no-undef - js issue with BigCommerce - Stack Overflow
Saying: error 'iFrameResize' is not defined no-undef . If I define it like this: const iFrameResize(). My code no longer works, how do...
Read more >no-undef - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >TypeError: "x" is not a constructor - JavaScript - MDN Web Docs
The JavaScript exception "is not a constructor" occurs when there was an attempt to use an object or a variable as a constructor,...
Read more >How To Customize ESLint Rules with an Ejected Create React ...
Projects created using Create React App have linting with ESLint already working ... This code defines the rule for no-undef (no undefined).
Read more >Overview | Format.JS
If you're supporting browsers that do not have Intl.RelativeTimeFormat (e.g IE11, ... When using the UMD version of React Intl without a module...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Actually, looking at the config file I just posted, this line in particular:
extends: '@react-native-community',
I’m more and more inclined to think that this question should be addressed to the developers of@react-native-community/eslint-config
package… In fact, I already did this: https://github.com/facebook/react-native/issues/27076.Will perhaps close this issue here then… Thanks anyway.