tools icon indicating copy to clipboard operation
tools copied to clipboard

Add lint rule to prevent usage of browser only global objects

Open gheoan opened this issue 7 years ago • 0 comments

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.

gheoan avatar Nov 11 '17 21:11 gheoan