Skip to content

max-len uses ignoreUrls and ignoreRegExpLiterals options #12

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

Closed
wants to merge 1 commit into from

Conversation

platinumazure
Copy link
Contributor

Per the spacing section of the jQuery style guide:

  • Lines should be no longer than 80 characters, and must not exceed 100 (counting tabs as 4 spaces). There are 2 exceptions, both allowing the line to exceed 100 characters:
    • If the line contains a comment with a long URL.
    • If the line contains a regex literal. This prevents having to use the regex constructor which requires otherwise unnecessary string escaping.

Both of the exceptions above are represented by the new options I have added to the rule configuration for ESLint's max-len rule.

@jsf-clabot
Copy link

jsf-clabot commented Mar 11, 2017

CLA assistant check
All committers have signed the CLA.

@markelog
Copy link
Member

Thank you! Published in 1.0.1

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