diff options
Diffstat (limited to 'tools/eslint/lib/rules/quote-props.js')
-rw-r--r-- | tools/eslint/lib/rules/quote-props.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/eslint/lib/rules/quote-props.js b/tools/eslint/lib/rules/quote-props.js index 305a1b41b6..6ac1f3c138 100644 --- a/tools/eslint/lib/rules/quote-props.js +++ b/tools/eslint/lib/rules/quote-props.js @@ -104,19 +104,19 @@ module.exports = { } /** - * Returns a string representation of a property node with quotes removed - * @param {ASTNode} key Key AST Node, which may or may not be quoted - * @returns {string} A replacement string for this property - */ + * Returns a string representation of a property node with quotes removed + * @param {ASTNode} key Key AST Node, which may or may not be quoted + * @returns {string} A replacement string for this property + */ function getUnquotedKey(key) { return key.type === "Identifier" ? key.name : key.value; } /** - * Returns a string representation of a property node with quotes added - * @param {ASTNode} key Key AST Node, which may or may not be quoted - * @returns {string} A replacement string for this property - */ + * Returns a string representation of a property node with quotes added + * @param {ASTNode} key Key AST Node, which may or may not be quoted + * @returns {string} A replacement string for this property + */ function getQuotedKey(key) { if (key.type === "Literal" && typeof key.value === "string") { |