From 275968a59fe855fbfe9b62c27877130699d549e4 Mon Sep 17 00:00:00 2001 From: Chris Antaki Date: Mon, 24 Jun 2019 09:23:27 -0700 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20ESLint=20Rules:=20Updates?= =?UTF-8?q?=20name=20and=20comment=20for=20enforce-private-props=20rule=20?= =?UTF-8?q?(#22647)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds comment and renames script for better readability * Updates name & comment --- .eslintrc | 2 +- .../{enforce-private-props.js => private-prop-names.js} | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename build-system/eslint-rules/{enforce-private-props.js => private-prop-names.js} (97%) diff --git a/.eslintrc b/.eslintrc index 0687d2aef355..072abb94c4c7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -52,7 +52,6 @@ "amphtml-internal/await-expect": 2, "amphtml-internal/closure-type-primitives": 2, "amphtml-internal/dict-string-keys": 2, - "amphtml-internal/enforce-private-props": 2, "amphtml-internal/html-template": 2, "amphtml-internal/is-experiment-on": 2, "amphtml-internal/no-array-destructuring": 2, @@ -75,6 +74,7 @@ "amphtml-internal/no-swallow-return-from-allow-console-error": 2, "amphtml-internal/prefer-deferred-promise": 0, "amphtml-internal/prefer-destructuring": 2, + "amphtml-internal/private-prop-names": 2, "amphtml-internal/query-selector": 2, "amphtml-internal/todo-format": 0, "amphtml-internal/unused-private-field": 2, diff --git a/build-system/eslint-rules/enforce-private-props.js b/build-system/eslint-rules/private-prop-names.js similarity index 97% rename from build-system/eslint-rules/enforce-private-props.js rename to build-system/eslint-rules/private-prop-names.js index 5a82bcd85486..81ea32e1b3bb 100644 --- a/build-system/eslint-rules/enforce-private-props.js +++ b/build-system/eslint-rules/private-prop-names.js @@ -15,6 +15,7 @@ */ 'use strict'; +/** Enforces naming rules for private properties. */ module.exports = function(context) { /** * @param {!Array|undefined} commentLines