You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I've been working on an eslint plugin called eslint-plugin-compat that lints support for API's by using the caniuse db. It seems there is demand from the community for this plugin. Wonder if it has a place in create-react-app. Would a PR for it be welcome?
Here's a demo of it in action
Also planning to add integration with babel-preset-env and browserlist
I wanted to wait to implement better polyfill and babel interoperability to the plugin before making a PR for this. I'll respond here again once I've implemented it.
I wanted to wait to implement better polyfill and babel interoperability to the plugin before making a PR for this. I'll respond here again once I've implemented it.
@morsdyce The plugin should be good to implement now!
Activity
gaearon commentedon Feb 11, 2017
That's pretty cool. Let's take another look at this after #1249.
amilajack commentedon Feb 11, 2017
Great! This actually works with the
browserslistconfig in thepackage.json🎉https://github.com/amilajack/eslint-plugin-compat-demo/blob/master/package.json#L9
gaearon commentedon Jan 20, 2018
Do you want to send a PR for this?
amilajack commentedon Jan 20, 2018
Sure! I don't know how CRA internals work. Which
.eslintrcshould I change?gaearon commentedon Jan 20, 2018
https://github.com/facebookincubator/create-react-app/blob/next/CONTRIBUTING.md#package-descriptions
amilajack commentedon Jan 20, 2018
Thanks. I'll start working on this
Timer commentedon Jan 22, 2018
How would polyfills work in something like CRA? Excited to see your PR.
stereobooster commentedon Apr 17, 2018
There is also https://github.com/ismay/stylelint-no-unsupported-browser-features
ackvf commentedon Apr 5, 2019
Is there a way how to use this with create-react-app 2.0 nowadays?
morsdyce commentedon May 19, 2020
Is this being worked on? Can I open a PR for this?
amilajack commentedon May 20, 2020
I wanted to wait to implement better polyfill and babel interoperability to the plugin before making a PR for this. I'll respond here again once I've implemented it.
amilajack commentedon Jun 28, 2020
It detects if you're using babel or TS and if you are, it assumes all ES APIs are polyfilled and lints only WebAPIs
amilajack commentedon Jun 28, 2020
@morsdyce The plugin should be good to implement now!
jakobvase commentedon Sep 30, 2020
@gaearon You last wrote on this 2 years ago. Would you still accept a PR for this? Or is CRA headed in another direction?