Skip to content

Commit

Permalink
🎨 fix typos in function names (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuchi authored and mysticatea committed Jul 30, 2019
1 parent b757c3e commit cfc6352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-unsupported-features.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-unsupported-features/es-syntax.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
},
}

Expand Down

0 comments on commit cfc6352

Please sign in to comment.