summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/jsx-quotes.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/jsx-quotes.js')
-rw-r--r--tools/eslint/lib/rules/jsx-quotes.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/eslint/lib/rules/jsx-quotes.js b/tools/eslint/lib/rules/jsx-quotes.js
index c3d87623cd..99dfda76a2 100644
--- a/tools/eslint/lib/rules/jsx-quotes.js
+++ b/tools/eslint/lib/rules/jsx-quotes.js
@@ -9,13 +9,13 @@
// Requirements
//------------------------------------------------------------------------------
-let astUtils = require("../ast-utils");
+const astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
// Constants
//------------------------------------------------------------------------------
-let QUOTE_SETTINGS = {
+const QUOTE_SETTINGS = {
"prefer-double": {
quote: "\"",
description: "singlequote",
@@ -54,7 +54,7 @@ module.exports = {
},
create: function(context) {
- let quoteOption = context.options[0] || "prefer-double",
+ const quoteOption = context.options[0] || "prefer-double",
setting = QUOTE_SETTINGS[quoteOption];
/**
@@ -69,7 +69,7 @@ module.exports = {
return {
JSXAttribute: function(node) {
- let attributeValue = node.value;
+ const attributeValue = node.value;
if (attributeValue && astUtils.isStringLiteral(attributeValue) && !usesExpectedQuotes(attributeValue)) {
context.report({