Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 451 Bytes

File metadata and controls

23 lines (16 loc) · 451 Bytes

compat/compat

This rule enables linting your code for browser compatibility.

This will be reported

// Targeting IE
fetch("https://exmaple.com");

This will not be reported

// Using default browser targets
fetch("https://exmaple.com");

Conditional Checks

By default, feature detection like if (fetch) { ... } does not trigger a report. Set settings.ignoreConditionalChecks to true to lint these conditionals.