@@ -8,7 +8,7 @@ const glob = require('glob')
8
8
const { resolve } = require ( 'path' )
9
9
const jsonAstParse = require ( 'json-to-ast' )
10
10
11
- const UNEXPETECD_ERROR_LOCATION = { line : 1 , column : 0 }
11
+ const UNEXPECTED_ERROR_LOCATION = { line : 1 , column : 0 }
12
12
13
13
/**
14
14
* Register the given visitor to parser services.
@@ -18,7 +18,7 @@ const UNEXPETECD_ERROR_LOCATION = { line: 1, column: 0 }
18
18
function defineTemplateBodyVisitor ( context , templateBodyVisitor , scriptVisitor ) {
19
19
if ( context . parserServices . defineTemplateBodyVisitor === null ) {
20
20
context . report ( {
21
- loc : UNEXPETECD_ERROR_LOCATION ,
21
+ loc : UNEXPECTED_ERROR_LOCATION ,
22
22
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'
23
23
} )
24
24
return { }
@@ -83,7 +83,7 @@ function extractJsonInfo (context, node) {
83
83
]
84
84
} catch ( e ) {
85
85
context . report ( {
86
- loc : UNEXPETECD_ERROR_LOCATION ,
86
+ loc : UNEXPECTED_ERROR_LOCATION ,
87
87
message : e . message
88
88
} )
89
89
return [ ]
@@ -107,7 +107,7 @@ function generateJsonAst (context, json, filename) {
107
107
}
108
108
109
109
module . exports = {
110
- UNEXPETECD_ERROR_LOCATION ,
110
+ UNEXPECTED_ERROR_LOCATION ,
111
111
defineTemplateBodyVisitor,
112
112
getLocaleMessages,
113
113
findMissingsFromLocaleMessages,
0 commit comments