@@ -8,7 +8,7 @@ const glob = require('glob')
88const { resolve } = require ( 'path' )
99const jsonAstParse = require ( 'json-to-ast' )
1010
11- const UNEXPETECD_ERROR_LOCATION = { line : 1 , column : 0 }
11+ const UNEXPECTED_ERROR_LOCATION = { line : 1 , column : 0 }
1212
1313/**
1414 * Register the given visitor to parser services.
@@ -18,7 +18,7 @@ const UNEXPETECD_ERROR_LOCATION = { line: 1, column: 0 }
1818function defineTemplateBodyVisitor ( context , templateBodyVisitor , scriptVisitor ) {
1919 if ( context . parserServices . defineTemplateBodyVisitor === null ) {
2020 context . report ( {
21- loc : UNEXPETECD_ERROR_LOCATION ,
21+ loc : UNEXPECTED_ERROR_LOCATION ,
2222 message : 'Use the latest vue-eslint-parser. See also https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error'
2323 } )
2424 return { }
@@ -83,7 +83,7 @@ function extractJsonInfo (context, node) {
8383 ]
8484 } catch ( e ) {
8585 context . report ( {
86- loc : UNEXPETECD_ERROR_LOCATION ,
86+ loc : UNEXPECTED_ERROR_LOCATION ,
8787 message : e . message
8888 } )
8989 return [ ]
@@ -107,7 +107,7 @@ function generateJsonAst (context, json, filename) {
107107}
108108
109109module . exports = {
110- UNEXPETECD_ERROR_LOCATION ,
110+ UNEXPECTED_ERROR_LOCATION ,
111111 defineTemplateBodyVisitor,
112112 getLocaleMessages,
113113 findMissingsFromLocaleMessages,
0 commit comments