Skip to content
Permalink
Browse files

Docs: `avoid-escape` does not allow backticks (fixes #5147)

  • Loading branch information...
alberto committed Feb 5, 2016
1 parent f2b87c5 commit 9675b5eb20ec953aec146be8a1682b1ec36d1d94
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/rules/quotes.md
@@ -23,9 +23,9 @@ This rule is aimed at ensuring consistency of string quotes and as such will rep
The rule configuration takes up to two options:

1. The first option is `"double"`, `"single"` or `"backtick"` for double-quotes, single-quotes or backticks respectively. The default is `"double"`.
1. The second option is the `"avoid-escape"` flag. When using `"avoid-escape"`, this rule will not report a problem when a string is using incorrect quotes so long as the string contains a quote that would have to be escaped. For example, if you specify `"double"` and `"avoid-escape"`, the string `'He said, "hi!"'` is not considered a problem because using double quotes for that string would require escaping the double quotes inside of the string. This option is off by default.
1. The second option is the `"avoid-escape"` flag. When using `"avoid-escape"`, this rule will not report a problem when a string is using single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise. For example, if you specify `"double"` and `"avoid-escape"`, the string `'He said, "hi!"'` is not considered a problem because using double quotes for that string would require escaping the double quotes inside of the string. This option is off by default.

When using `"single"` or `"double"`, template literals that don't contain a substitution, don't contain a line break, and aren't tagged templates are flagged as problems.
When using `"single"` or `"double"`, template literals that don't contain a substitution, don't contain a line break and aren't tagged templates, are flagged as problems, even with the `"avoid-escape"` option.


Configuration looks like this:

0 comments on commit 9675b5e

Please sign in to comment.
You can’t perform that action at this time.