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

Disable max-len rule for import and export statements #10

Open
chmanie opened this issue Nov 30, 2018 · 1 comment
Open

Disable max-len rule for import and export statements #10

chmanie opened this issue Nov 30, 2018 · 1 comment

Comments

@chmanie
Copy link
Member

chmanie commented Nov 30, 2018

Because it's just annoying. Here's the rule:

"max-len": ["error", {
    "ignorePattern": "^import [^,]+ from |^export | implements",
    "ignoreComments": true
}],
@chmanie
Copy link
Member Author

chmanie commented Dec 1, 2018

We probably also want to allow using long strings when using backticks

e.g.

"ignorePattern": "^import [^,]+ from |^export | implements | `.{30,}`",

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

No branches or pull requests

1 participant