From cfc6352532bb467d42dca763f17c9fb05cdf07be Mon Sep 17 00:00:00 2001 From: Kentaro Fukuchi Date: Tue, 30 Jul 2019 13:56:14 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20fix=20typos=20in=20function=20na?= =?UTF-8?q?mes=20(#177)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rules/no-unsupported-features.js | 4 ++-- lib/rules/no-unsupported-features/es-syntax.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rules/no-unsupported-features.js b/lib/rules/no-unsupported-features.js index af1d128e..81e3f50d 100644 --- a/lib/rules/no-unsupported-features.js +++ b/lib/rules/no-unsupported-features.js @@ -999,7 +999,7 @@ function parseOptions(options, defaultVersion) { * @param {Node} node The AST node. * @returns {Scope} The scope that the node belongs to. */ -function nomalizeScope(initialScope, node) { +function normalizeScope(initialScope, node) { let scope = getInnermostScope(initialScope, node) while (scope && scope.block === node) { @@ -1169,7 +1169,7 @@ module.exports = { version, }, }) - } else if (!nomalizeScope(context.getScope(), node).isStrict) { + } else if (!normalizeScope(context.getScope(), node).isStrict) { context.report({ node, message: diff --git a/lib/rules/no-unsupported-features/es-syntax.js b/lib/rules/no-unsupported-features/es-syntax.js index f33b700e..f87ac937 100644 --- a/lib/rules/no-unsupported-features/es-syntax.js +++ b/lib/rules/no-unsupported-features/es-syntax.js @@ -372,7 +372,7 @@ function parseOptions(context) { * @param {Node} node The AST node. * @returns {Scope} The scope that the node belongs to. */ -function nomalizeScope(initialScope, node) { +function normalizeScope(initialScope, node) { let scope = getInnermostScope(initialScope, node) while (scope && scope.block === node) { @@ -426,7 +426,7 @@ function dispatch(handlers, node) { function defineVisitor(context, options) { const testInfoPrototype = { get isStrict() { - return nomalizeScope(context.getScope(), this.node).isStrict + return normalizeScope(context.getScope(), this.node).isStrict }, }