@@ -54,16 +54,15 @@ const DUMMY_PARENT: any = {}
5454// Like Vue, it judges whether it is a function expression or not.
5555// https://github.com/vuejs/vue/blob/0948d999f2fddf9f90991956493f976273c5da1f/src/compiler/codegen/events.js#L3
5656const IS_FUNCTION_EXPRESSION = / ^ \s * ( [ \w $ _ ] + | \( [ ^ ) ] * ?\) ) \s * = > | ^ f u n c t i o n \s * \( / u
57- const IS_SIMPLE_PATH = / ^ [ A - Z a - z _ $ ] [ \w $ ] * (?: \. [ A - Z a - z _ $ ] [ \w $ ] * | \[ ' [ ^ ' ] * ?' \] | \[ " [ ^ " ] * ?" \] | \[ \d + \] | \[ [ A - Z a - z _ $ ] [ \w $ ] * \] ) * $ / u
57+ const IS_SIMPLE_PATH =
58+ / ^ [ A - Z a - z _ $ ] [ \w $ ] * (?: \. [ A - Z a - z _ $ ] [ \w $ ] * | \[ ' [ ^ ' ] * ?' \] | \[ " [ ^ " ] * ?" \] | \[ \d + \] | \[ [ A - Z a - z _ $ ] [ \w $ ] * \] ) * $ / u
5859
5960/**
6061 * Parse the alias and iterator of 'v-for' directive values.
6162 * @param code The code to parse.
6263 * @returns The parsed result.
6364 */
64- function processVForAliasAndIterator (
65- code : string ,
66- ) : {
65+ function processVForAliasAndIterator ( code : string ) : {
6766 aliases : string
6867 hasParens : boolean
6968 delimiter : string
@@ -555,9 +554,8 @@ export function parseScriptElement(
555554 ? text . range [ 0 ]
556555 : node . startTag . range [ 1 ]
557556 const code = text != null && text . type === "VText" ? text . value : ""
558- const locationCalculator = globalLocationCalculator . getSubCalculatorAfter (
559- offset ,
560- )
557+ const locationCalculator =
558+ globalLocationCalculator . getSubCalculatorAfter ( offset )
561559 const result = parseScriptFragment ( code , locationCalculator , parserOptions )
562560
563561 // Needs the tokens of start/end tags for `lines-around-*` rules to work
@@ -624,7 +622,8 @@ export function parseExpression(
624622 if ( ! retB . expression ) {
625623 return retB
626624 }
627- const ret = ( retB as unknown ) as ExpressionParseResult < VFilterSequenceExpression >
625+ const ret =
626+ retB as unknown as ExpressionParseResult < VFilterSequenceExpression >
628627
629628 ret . expression = {
630629 type : "VFilterSequenceExpression" ,
@@ -1012,8 +1011,9 @@ function parseVOnExpressionBody(
10121011 ) . ast
10131012 const references = analyzeExternalReferences ( ast , parserOptions )
10141013 const outermostStatement = ast . body [ 0 ] as ESLintExpressionStatement
1015- const functionDecl = ( outermostStatement . expression as ESLintUnaryExpression )
1016- . argument as ESLintFunctionExpression
1014+ const functionDecl = (
1015+ outermostStatement . expression as ESLintUnaryExpression
1016+ ) . argument as ESLintFunctionExpression
10171017 const block = functionDecl . body
10181018 const body = block . body
10191019 const firstStatement = first ( body )
0 commit comments