Lint your code for baseline web compatibility issues
Add to your .eslintrc.js:
Warns about CSS and JS features not in Baseline
Provides polyfill suggestions and alternative syntax
Choose between 'high' (widely available) or 'low' (newly available)
Scans CSS properties, selectors, and JavaScript features
Warns when using CSS or JavaScript features that are not part of the specified baseline level.
Suggests using baseline-compatible alternatives when available.
| Option | Type | Default | Description |
|---|---|---|---|
| baselineLevel | 'high' | 'low' | 'high' | Minimum baseline level to enforce |
| includePolyfills | boolean | true | Include polyfill suggestions in error messages |
| ignoreFeatures | string[] | [] | List of features to ignore |