Skip to content

Commit dc6ab1f

Browse files
committed
Format all files with Prettier v3.7
1 parent 50955bf commit dc6ab1f

File tree

11 files changed

+32
-30
lines changed

11 files changed

+32
-30
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"console": "integratedTerminal"
1919
}
2020
]
21-
}
21+
}

.vscode/settings.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
22
"editor.tabSize": 2,
3-
"eslint.validate": ["javascript", "javascriptreact", "vue", "json", "jsonc", "markdown"],
3+
"eslint.validate": [
4+
"javascript",
5+
"javascriptreact",
6+
"vue",
7+
"json",
8+
"jsonc",
9+
"markdown"
10+
],
411
"typescript.tsdk": "./node_modules/typescript/lib",
512
"vetur.validation.script": false,
613
"[typescript]": {

lib/rules/max-len.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ function computeLineLength(line, tabWidth) {
101101
function isTrailingComment(line, lineNumber, comment) {
102102
return Boolean(
103103
comment &&
104-
comment.loc.start.line === lineNumber &&
105-
lineNumber <= comment.loc.end.line &&
106-
(comment.loc.end.line > lineNumber ||
107-
comment.loc.end.column === line.length)
104+
comment.loc.start.line === lineNumber &&
105+
lineNumber <= comment.loc.end.line &&
106+
(comment.loc.end.line > lineNumber ||
107+
comment.loc.end.column === line.length)
108108
)
109109
}
110110

lib/rules/no-restricted-v-bind.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ function parseOption(option) {
3333
test(key) {
3434
return Boolean(
3535
key.argument &&
36-
key.argument.type === 'VIdentifier' &&
37-
matcher.test(key.argument.rawName)
36+
key.argument.type === 'VIdentifier' &&
37+
matcher.test(key.argument.rawName)
3838
)
3939
},
4040
modifiers: []

lib/rules/no-restricted-v-on.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ function parseOption(option) {
2626
test(key) {
2727
return Boolean(
2828
key.argument &&
29-
key.argument.type === 'VIdentifier' &&
30-
matcher.test(key.argument.rawName)
29+
key.argument.type === 'VIdentifier' &&
30+
matcher.test(key.argument.rawName)
3131
)
3232
}
3333
}

lib/rules/padding-lines-in-component-definition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ function isComma(node) {
4444
function isValidProperties(propOrEmit) {
4545
return Boolean(
4646
propOrEmit.type !== 'infer-type' &&
47-
propOrEmit.node &&
48-
['Property', 'SpreadElement'].includes(propOrEmit.node.type)
47+
propOrEmit.node &&
48+
['Property', 'SpreadElement'].includes(propOrEmit.node.type)
4949
)
5050
}
5151

lib/rules/require-valid-default-prop.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ module.exports = {
435435
(prop) =>
436436
Boolean(
437437
prop.type === 'type' ||
438-
prop.type === 'infer-type' ||
439-
prop.type === 'object'
438+
prop.type === 'infer-type' ||
439+
prop.type === 'object'
440440
)
441441
)
442442
const defaultsByWithDefaults =

lib/utils/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,10 +2813,10 @@ function isVueInstance(node) {
28132813
const callee = node.callee
28142814
return Boolean(
28152815
node.type === 'NewExpression' &&
2816-
callee.type === 'Identifier' &&
2817-
callee.name === 'Vue' &&
2818-
node.arguments.length > 0 &&
2819-
skipTSAsExpression(node.arguments[0]).type === 'ObjectExpression'
2816+
callee.type === 'Identifier' &&
2817+
callee.name === 'Vue' &&
2818+
node.arguments.length > 0 &&
2819+
skipTSAsExpression(node.arguments[0]).type === 'ObjectExpression'
28202820
)
28212821
}
28222822

tools/update-html-resources.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ async function main() {
2121
// Update deprecated-html-elements.json
2222
// ------------------------------------------------------------------------------
2323
function updateDeprecatedHTMLElements() {
24-
const DEPRECATED_HTML_ELEMENTS_PATH = require.resolve(
25-
'../lib/utils/deprecated-html-elements.json'
26-
)
24+
const DEPRECATED_HTML_ELEMENTS_PATH =
25+
require.resolve('../lib/utils/deprecated-html-elements.json')
2726
const elements = new Set()
2827

2928
const domDl = jsdom.JSDOM.fragment(obsoleteHtml).querySelector(
@@ -49,9 +48,8 @@ async function main() {
4948
// Update html-elements.json
5049
// ------------------------------------------------------------------------------
5150
function updateHTMLElements() {
52-
const HTML_ELEMENTS_PATH = require.resolve(
53-
'../lib/utils/html-elements.json'
54-
)
51+
const HTML_ELEMENTS_PATH =
52+
require.resolve('../lib/utils/html-elements.json')
5553
const elements = new Set()
5654
const deprecatedHtmlElements = new Set(
5755
require('../lib/utils/deprecated-html-elements.json')

typings/eslint-plugin-vue/util-types/ast/es-ast.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ interface BasePropertyDefinition extends HasParentNode {
227227
static: boolean
228228
parent: ClassBody
229229
}
230-
export interface PropertyDefinitionNonComputedName
231-
extends BasePropertyDefinition {
230+
export interface PropertyDefinitionNonComputedName extends BasePropertyDefinition {
232231
computed: false
233232
key: Identifier | Literal
234233
}
@@ -627,8 +626,7 @@ interface BaseAssignmentProperty extends HasParentNode {
627626
value: Pattern
628627
parent: ObjectPattern
629628
}
630-
export interface AssignmentPropertyNonComputedName
631-
extends BaseAssignmentProperty {
629+
export interface AssignmentPropertyNonComputedName extends BaseAssignmentProperty {
632630
computed: false
633631
key: Identifier | Literal
634632
}

0 commit comments

Comments
 (0)