Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target specific presets #4

Open
ai opened this issue Jan 4, 2017 · 8 comments
Open

Target specific presets #4

ai opened this issue Jan 4, 2017 · 8 comments

Comments

@ai
Copy link
Contributor

ai commented Jan 4, 2017

plugin:es5/no-es2015 presets are great. But we could go further.

Main problem with ES2015+ features is compatibility problems. So let’s create a preset based on browsers, node version. Like: plugin:es5/ie, plugin:es5/modern-browsers (only Edge), plugin:es5/node4.

@ai
Copy link
Contributor Author

ai commented Jan 4, 2017

This preset is useful, but also they will show plugin benefits in better way from your docs. Best docs is a code example. And preset in code example shows why this plugin is useful and should be installed.

@nkt
Copy link
Owner

nkt commented Jan 4, 2017

@ai I guess the best way for this plugin - to be like babel-preset-env, but in linting stage.

@ai
Copy link
Contributor Author

ai commented Jan 4, 2017

Browserslist support will be so awesome!

@ai
Copy link
Contributor Author

ai commented Jan 4, 2017

But we could start from some manually targets and then add dynamic one. Anyway we will need this ie list of rules.

@ai
Copy link
Contributor Author

ai commented Jan 13, 2017

People want node4 preset ;) https://twitter.com/jon_neal/status/819910992100462592

@jonathantneal
Copy link

Yes, if they are writing for Node v4 LTS compatibility, this would be very helpful.

@hhrogersii
Copy link

Any more thoughts on implementing this? I need to support W8.1/IE11 and had a Math.log10 usage sneak past code review. We rely on linters to catch unsupported features so this plugin is a big help. Would like to have something similar to https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unsupported-features.md but against ES5 supported features not Node version.

@hhrogersii
Copy link

I had a look at https://github.com/amilajack/eslint-plugin-compat and it might do what I am needing. It uses @ai 's Browserslist so that's pretty cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants