-
-
Notifications
You must be signed in to change notification settings - Fork 292
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 unicorn/string-content
rule
#439
Conversation
I’m unsure. Would this rule require exceptions every time gql` repo() { ... on Commit {}}` |
I think the rule should be excluded on // @fisker |
@fregante The rule has |
I think this rule is something not all projects can handle by default. CSS selectors have lots of |
It's really dangerous; it breaks a program I am working on:
to
breaking a query to oracle db. I think it shouldn't change the content of a string. |
Agreed, this rule should be reverted as it breaks any string that’s not displayable text. |
Agreed, same exact thing happened on my end that @isghe experienced. |
Please resolve this, I'm seeing stuff like this get replaced as well:
-pretestMongo: "mongo forwardemail_test --eval 'db.dropDatabase()'",
+pretestMongo: 'mongo forwardemail_test --eval ’db.dropDatabase()’', |
See: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/string-content.md
Anything else useful we can enforce in strings?
// @pvdlg @fregante