Skip to content

[add] option exceptMethods to no-es6-static-methods#34

Merged
nkt merged 1 commit intonkt:masterfrom
fanatid:no-es6-static-methods-except
Sep 27, 2019
Merged

[add] option exceptMethods to no-es6-static-methods#34
nkt merged 1 commit intonkt:masterfrom
fanatid:no-es6-static-methods-except

Conversation

@fanatid
Copy link
Contributor

@fanatid fanatid commented Jul 29, 2019

Options for rule no-es6-static-methods which allow use specific method. Some methods can be shimmed with polyfills or replace function which used from es6 to not used from es6 set (bn.js case: https://github.com/indutny/bn.js/blob/f953de2a4040852c8948f6ac36e501b092379292/lib/bn.js#L1635-L1638).

@fanatid
Copy link
Contributor Author

fanatid commented Jul 30, 2019

@nkt can you please take a look? Should I change something for quick review from you?

@fanatid
Copy link
Contributor Author

fanatid commented Jul 30, 2019

If problem in using Set from es6, I can rewrite code for working without it.

@GreymondTheLong
Copy link

Any plans to get this merged in @nkt? I'd really like this, as we polyfill some es6 methods and don't want to replace them all just to get linter without errors

@nkt nkt merged commit 56dcd2f into nkt:master Sep 27, 2019
@fanatid fanatid deleted the no-es6-static-methods-except branch September 27, 2019 11:53
@fanatid
Copy link
Contributor Author

fanatid commented Sep 27, 2019

Thank you! 🎉
@nkt can you publish new version please?

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

Successfully merging this pull request may close these issues.

3 participants