summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/quote-props.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/quote-props.js')
-rw-r--r--tools/eslint/lib/rules/quote-props.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint/lib/rules/quote-props.js b/tools/eslint/lib/rules/quote-props.js
index 26c527402d..fc93b00aa7 100644
--- a/tools/eslint/lib/rules/quote-props.js
+++ b/tools/eslint/lib/rules/quote-props.js
@@ -64,7 +64,7 @@ module.exports = {
}
},
- create: function(context) {
+ create(context) {
const MODE = context.options[0],
KEYWORDS = context.options[1] && context.options[1].keywords,
@@ -208,7 +208,7 @@ module.exports = {
}
return {
- Property: function(node) {
+ Property(node) {
if (MODE === "always" || !MODE) {
checkOmittedQuotes(node);
}
@@ -216,7 +216,7 @@ module.exports = {
checkUnnecessaryQuotes(node);
}
},
- ObjectExpression: function(node) {
+ ObjectExpression(node) {
if (MODE === "consistent") {
checkConsistency(node, false);
}