sindresorhus/eslint-plugin-unicorn

Rule proposal: `no-unnecessary-polyfills` #36

jamestalmage posted onGitHub

A rule that examines the engine argument of package.json, and keeps a list of poly/ponyfills and which Node version makes them obsolete.

For instance, if you're using object-assign, but only targeting Node 4 and higher, just use native Object.assign. Many others.


Yes! :)

posted by sindresorhus over 8 years ago

You could almost do this entirely by examining package.json.

Maybe there are some member functions of lodash where you would need to scan the code, but I think package.json gets us most of the way there.

posted by jamestalmage over 8 years ago

I'd suggest keeping a list of poly/ponyfills in an external package. Might come in handy in other packages as well.

posted by SamVerschueren over 8 years ago

@issuehuntfest has funded $120.00 to this issue. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

@sindresorhus Can I work on this issue?

posted by doniyor2109 about 6 years ago

@doniyor2109 Go ahead. Though keep in mind that this issue will require you to research what polyfills are popular and add support for those. It's a lot of work.

posted by sindresorhus about 6 years ago

I'd suggest keeping a list of poly/ponyfills in an external package. Might come in handy in other packages as well.

I agree, but I think we should just put it in eslint-plugin-unicorn first. We can extract it later when it's more mature. That way we can iterate faster.

posted by sindresorhus about 6 years ago

This is up for grabs again. If anyone wants to tackle this, you can probably continue where https://github.com/sindresorhus/eslint-plugin-unicorn/pull/233 left off. Make sure you address the feedback given there.

posted by sindresorhus about 5 years ago

@sindresorhus has rewarded $108.00 to @mesteery. See it on IssueHunt

  • :moneybag: Total deposit: $120.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $12.00
posted by issuehunt-oss[bot] over 1 year ago

Fund this Issue

$120.00
Rewarded

Rewarded pull request

Other pull requests

Recent activities

mesteery was rewarded by sindresorhus for sindresorhus/eslint-plugin-unicorn# 36
over 1 year ago