tools
tools copied to clipboard
Add lint rule to prevent usage of browser only global objects
I'm submitting a feature request
- Language: all
Current behavior: Browser global objects can be used.
Expected/desired behavior:
- What is the expected behavior? Using browser global objects should result in a lint warning. This warning can optionally recommend using aurelia-pal.
This needs to be implemented for both eslint and tslint. An exception to this rule should be added to the pal library.
- What is the motivation / use case for changing the behavior? Prevent issues such as https://github.com/aurelia/i18n/issues/243.