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

Bump to depend on Airbnb 17.0.1 #27

Merged
merged 3 commits into from Jan 21, 2019
Merged

Bump to depend on Airbnb 17.0.1 #27

merged 3 commits into from Jan 21, 2019

Conversation

justin808
Copy link
Member

@justin808 justin808 commented Aug 13, 2018

Ignoring max-len for strings and template literals makes it too easy
to include long lines in the project.

However, if one is using prettier settings with eslint, max-len gets
ingored anyway.


This change is Reviewable

Ignoring max-len for strings and template literals makes it too easy
to include long lines in the project.

However, if one is using prettier settings with eslint, max-len gets
ingored anyway.
@@ -23,7 +23,7 @@ rules:

# http://eslint.org/docs/rules/max-len
# https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/style.js#L128
# Almost identical to airbnb's version, but adds ignore of `import` statements
# Almost identical to airbnb's version, but adds ignore of `import` statements and sets ignoreStrings: false
Copy link
Member

Choose a reason for hiding this comment

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

I think airbnb version is correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is Airbnb: https://github.com/airbnb/javascript/blob/17e0454672f784772c5f5ab052523a93229d9adf/packages/eslint-config-airbnb-base/rules/style.js#L195

If you prefer, I'll remove these for now.

    // specify the maximum length of a line in your program
    // https://eslint.org/docs/rules/max-len
    'max-len': ['error', 100, 2, {
      ignoreUrls: true,
      ignoreComments: false,
      ignoreRegExpLiterals: true,
      ignoreStrings: true,
      ignoreTemplateLiterals: true,
    }],

"eslint": "^4.19.1",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.9.1"
Copy link
Member

Choose a reason for hiding this comment

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

React deps are optional.

Copy link
Member Author

Choose a reason for hiding this comment

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

I copied these from Airbnb's one.

@justin808 justin808 changed the title Bump to depend on Airbnb 17.0.0, plus string rules Bump to depend on Airbnb 17.0.1 Jan 21, 2019
@justin808
Copy link
Member Author

@alexfedoseev I'm merging. We can do any review comments in a follow-on PR.

@justin808 justin808 merged commit 18b80f5 into master Jan 21, 2019
@justin808 justin808 deleted the bump-to-17 branch January 21, 2019 01:46
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

2 participants