eslint-plugin-compat is an open source static analyzer that lints the compatability of your JS code.

Here is a short demo:

demo

Inspiration

The idea for this project was inspired by toolchains for native platforms, like iOS and Android. They've had API linting from the start. It's about time that the web had similar tooling.

This project was inspired by a two hour conversation I had with someone on the experience of web development and if it is terrible or not. The premise they argued was that x browser doesn't support y feature while z browser does. Eventually, I agreed with him on this and checked made this plugin to save web developers from having to memorize browser compatibility of specs.