Open rivajunior opened 2 years ago
The airbnb-base/legacy configuration is inheriting no-restricted-globals from variables configuration file. But this rule is set to enforce the use of Number.isFinite and Number.isNaN witch are ES6 features and not compatible with ES5 codebase.
no-restricted-globals
Number.isFinite
Number.isNaN
{ 'no-restricted-globals': [ 'error', { name: 'isFinite', message: 'Use Number.isFinite instead https://github.com/airbnb/javascript#standard-library--isfinite', }, { name: 'isNaN', message: 'Use Number.isNaN instead https://github.com/airbnb/javascript#standard-library--isnan', }, ].concat(confusingBrowserGlobals), }
Thanks! I’ll fix this shortly.
Although - the legacy config still requires you use all available polyfills, so I’m not sure there’s something to fix.
The airbnb-base/legacy configuration is inheriting
no-restricted-globals
from variables configuration file. But this rule is set to enforce the use ofNumber.isFinite
andNumber.isNaN
witch are ES6 features and not compatible with ES5 codebase.