Skip to content

Commit cfc6352

Browse files
fukuchimysticatea
authored andcommitted
🎨 fix typos in function names (#177)
1 parent b757c3e commit cfc6352

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎lib/rules/no-unsupported-features.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ function parseOptions(options, defaultVersion) {
999999
* @param {Node} node The AST node.
10001000
* @returns {Scope} The scope that the node belongs to.
10011001
*/
1002-
function nomalizeScope(initialScope, node) {
1002+
function normalizeScope(initialScope, node) {
10031003
let scope = getInnermostScope(initialScope, node)
10041004

10051005
while (scope && scope.block === node) {
@@ -1169,7 +1169,7 @@ module.exports = {
11691169
version,
11701170
},
11711171
})
1172-
} else if (!nomalizeScope(context.getScope(), node).isStrict) {
1172+
} else if (!normalizeScope(context.getScope(), node).isStrict) {
11731173
context.report({
11741174
node,
11751175
message:

‎lib/rules/no-unsupported-features/es-syntax.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function parseOptions(context) {
372372
* @param {Node} node The AST node.
373373
* @returns {Scope} The scope that the node belongs to.
374374
*/
375-
function nomalizeScope(initialScope, node) {
375+
function normalizeScope(initialScope, node) {
376376
let scope = getInnermostScope(initialScope, node)
377377

378378
while (scope && scope.block === node) {
@@ -426,7 +426,7 @@ function dispatch(handlers, node) {
426426
function defineVisitor(context, options) {
427427
const testInfoPrototype = {
428428
get isStrict() {
429-
return nomalizeScope(context.getScope(), this.node).isStrict
429+
return normalizeScope(context.getScope(), this.node).isStrict
430430
},
431431
}
432432

0 commit comments

Comments
 (0)