summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-restricted-properties.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-restricted-properties.js')
-rw-r--r--tools/eslint/lib/rules/no-restricted-properties.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/eslint/lib/rules/no-restricted-properties.js b/tools/eslint/lib/rules/no-restricted-properties.js
index 44db74f535..cdc73f9e41 100644
--- a/tools/eslint/lib/rules/no-restricted-properties.js
+++ b/tools/eslint/lib/rules/no-restricted-properties.js
@@ -92,12 +92,12 @@ module.exports = {
});
/**
- * Checks to see whether a property access is restricted, and reports it if so.
- * @param {ASTNode} node The node to report
- * @param {string} objectName The name of the object
- * @param {string} propertyName The name of the property
- * @returns {undefined}
- */
+ * Checks to see whether a property access is restricted, and reports it if so.
+ * @param {ASTNode} node The node to report
+ * @param {string} objectName The name of the object
+ * @param {string} propertyName The name of the property
+ * @returns {undefined}
+ */
function checkPropertyAccess(node, objectName, propertyName) {
if (propertyName === null) {
return;
@@ -135,10 +135,10 @@ module.exports = {
}
/**
- * Checks property accesses in a destructuring assignment expression, e.g. `var foo; ({foo} = bar);`
- * @param {ASTNode} node An AssignmentExpression or AssignmentPattern node
- * @returns {undefined}
- */
+ * Checks property accesses in a destructuring assignment expression, e.g. `var foo; ({foo} = bar);`
+ * @param {ASTNode} node An AssignmentExpression or AssignmentPattern node
+ * @returns {undefined}
+ */
function checkDestructuringAssignment(node) {
if (node.right.type === "Identifier") {
const objectName = node.right.name;