Skip to content

Files

Latest commit

 

History

History
16 lines (11 loc) · 595 Bytes

no-unsupported-browser-code.md

File metadata and controls

16 lines (11 loc) · 595 Bytes

Pattern: Unsupported browser code

Issue: -

Description

Avoid writing browser-specific code for unsupported browser versions. Browser versions are specified in the rule configuration options, eg: [true, [ "IE 11", "Firefox > 40", "Chrome >= 45" ] ]. Browser-specific blocks of code can then be designated with a single-line comment, like so: // Browser specific: IE 10, or with a jsdoc like this: @browserspecific chrome 40.

Further Reading