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

Add back eslint max-len of 140 characters #12415

Merged
merged 2 commits into from
Mar 23, 2017

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Mar 22, 2017

#6945 was a great effort that cleaned up a lot and will allow us to push only clean and compatible code. However, it also removed the max-len ESLint rule, which was previously set to 140 characters. The default value is 100, which means that it'll blow up almost everywhere - we have a ton of code with lines between 101 and 140 characters.

This PR adds back that rule, which I think is necessary. Unless there was a discussion about reducing the max length of lines to 100 characters, and I missed it?

@tyxla tyxla added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 22, 2017
@tyxla tyxla self-assigned this Mar 22, 2017
@tyxla tyxla requested a review from nb March 22, 2017 14:28
@matticbot
Copy link
Contributor

@tyxla tyxla requested review from ehg, aduth and klimeryk March 22, 2017 14:28
Copy link
Member

@nb nb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven’t seen such a discussion, either. 👍

@nb nb added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 22, 2017
@oandregal
Copy link
Contributor

Good call, Marin - I missed that when merging #6945

@oandregal oandregal self-requested a review March 22, 2017 15:46
@oandregal
Copy link
Contributor

oandregal commented Mar 23, 2017

Marin, now that we are here, do you mind adding back these other rules?

'no-restricted-imports': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ]
'no-restricted-modules': [ 2, 'lib/sites-list', 'lib/mixins/data-observe' ]

I didn't want to commit in the PR directly myself, to avoid any conflicts.

@tyxla
Copy link
Member Author

tyxla commented Mar 23, 2017

Sure, but let's address that in a separate PR, @nosolosw.

@tyxla tyxla merged commit af79ae3 into master Mar 23, 2017
@tyxla tyxla deleted the update/eslint-bring-back-140-max-len branch March 23, 2017 08:50
@matticbot matticbot added the [Size] S Small sized issue label Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework [Size] S Small sized issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants