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

Enforce rule 7.9 in eslint (default-param-last) #2106

Open
wants to merge 2 commits into
base: master
from

Conversation

@vieira
Copy link

vieira commented Oct 3, 2019

Enforces the existing airbnb style guide rule about default parameters coming last in eslint by using default-param-last.

As this rule was introduced in ESLint 6.4.0, I bumped the eslint version in package.json but I am not sure if that is the right thing to do? This is my first PR in this repository. 😨

@ljharb
Copy link
Collaborator

ljharb commented Oct 3, 2019

I just realized that since this rule isn't in eslint 5, this would in fact be a breaking change - so it can't come in enabled just yet.

@vieira
Copy link
Author

vieira commented Oct 3, 2019

Ahh I see, sorry, should I drop eslint 5 from the dependencies and you will merge this sometime in the future or is there other way of doing things?

@ljharb
Copy link
Collaborator

ljharb commented Oct 3, 2019

Typically I add all new rules as "off" as I update eslint versions, and leave a TODO comment to enable them - but they are not enabled until the next major release.

@vieira
Copy link
Author

vieira commented Oct 3, 2019

@ljharb Understood, let me know if you need anything else from me!

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.