]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/lib/rules/quotes.js
import 7.12.1 upstream release
[pve-eslint.git] / eslint / lib / rules / quotes.js
index d1f4443b9033c99b9eada4e72c87a9bf1be77c0e..da7e127493eaa1f89be7490a4d602572a0f3838f 100644 (file)
@@ -282,9 +282,12 @@ module.exports = {
                                 description: settings.description
                             },
                             fix(fixer) {
-                                if (quoteOption === "backtick" && astUtils.hasOctalEscapeSequence(rawVal)) {
+                                if (quoteOption === "backtick" && astUtils.hasOctalOrNonOctalDecimalEscapeSequence(rawVal)) {
 
-                                    // An octal escape sequence in a template literal would produce syntax error, even in non-strict mode.
+                                    /*
+                                     * An octal or non-octal decimal escape sequence in a template literal would
+                                     * produce syntax error, even in non-strict mode.
+                                     */
                                     return null;
                                 }