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

[max-len]: ignore import statements #17

Merged
merged 1 commit into from
Nov 14, 2016
Merged

Conversation

alex35mil
Copy link
Member

@alex35mil alex35mil commented Nov 7, 2016

@justin808 @robwise


This change is Reviewable

ignoreRegExpLiterals: true
ignoreStrings: true
ignoreTemplateLiterals: true
ignorePattern: ^import\\s+
Copy link
Contributor

Choose a reason for hiding this comment

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

I never knew that Airbnb had ignore strings and template literals on lol

Are we sure we want to do this instead of:

import {
  foo,
  bar,
} from './someLongName';

I think it's important to see where things are coming from. In our internal project, we can use aliases to keep the from '' part short as well as refactoring our libs to be less nested.

Copy link
Member Author

Choose a reason for hiding this comment

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

TBH I find the upper imports more readable than the lower ones.

screen shot 2016-11-09 at 01 09 03

Copy link
Contributor

Choose a reason for hiding this comment

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

In that example, I agree with you that the top is better. I dunno I guess I'm okay with it then

@justin808 justin808 merged commit f303472 into master Nov 14, 2016
@robwise robwise deleted the max-len-ignore-imports branch November 15, 2016 22:11
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.

None yet

3 participants