Skip to content

Commit 16a6438

Browse files
chore(deps): update lint (#9627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 9b634cb commit 16a6438

File tree

39 files changed

+264
-264
lines changed

39 files changed

+264
-264
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,27 @@
6767
"@rollup/plugin-terser": "^0.4.4",
6868
"@types/hash-sum": "^1.0.2",
6969
"@types/node": "^20.9.0",
70-
"@typescript-eslint/parser": "^6.10.0",
70+
"@typescript-eslint/parser": "^6.11.0",
7171
"@vitest/coverage-istanbul": "^0.34.6",
7272
"@vue/consolidate": "0.17.3",
7373
"conventional-changelog-cli": "^4.1.0",
7474
"enquirer": "^2.4.1",
7575
"esbuild": "^0.19.5",
7676
"esbuild-plugin-polyfill-node": "^0.3.0",
77-
"eslint": "^8.53.0",
77+
"eslint": "^8.54.0",
7878
"eslint-plugin-jest": "^27.6.0",
7979
"estree-walker": "^2.0.2",
8080
"execa": "^8.0.1",
8181
"jsdom": "^22.1.0",
82-
"lint-staged": "^15.0.2",
82+
"lint-staged": "^15.1.0",
8383
"lodash": "^4.17.21",
8484
"magic-string": "^0.30.5",
8585
"markdown-table": "^3.0.3",
8686
"marked": "^9.1.6",
8787
"minimist": "^1.2.8",
8888
"npm-run-all": "^4.1.5",
8989
"picocolors": "^1.0.0",
90-
"prettier": "^3.0.3",
90+
"prettier": "^3.1.0",
9191
"pretty-bytes": "^6.1.1",
9292
"pug": "^3.0.2",
9393
"puppeteer": "~21.5.1",

packages/compiler-core/__tests__/transforms/vFor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ describe('compiler: v-for', () => {
674674
patchFlag: !disableTracking
675675
? genFlagText(PatchFlags.STABLE_FRAGMENT)
676676
: keyed
677-
? genFlagText(PatchFlags.KEYED_FRAGMENT)
678-
: genFlagText(PatchFlags.UNKEYED_FRAGMENT),
677+
? genFlagText(PatchFlags.KEYED_FRAGMENT)
678+
: genFlagText(PatchFlags.UNKEYED_FRAGMENT),
679679
children: {
680680
type: NodeTypes.JS_CALL_EXPRESSION,
681681
callee: RENDER_LIST,

packages/compiler-core/src/codegen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ function genAssets(
448448
__COMPAT__ && type === 'filter'
449449
? RESOLVE_FILTER
450450
: type === 'component'
451-
? RESOLVE_COMPONENT
452-
: RESOLVE_DIRECTIVE
451+
? RESOLVE_COMPONENT
452+
: RESOLVE_DIRECTIVE
453453
)
454454
for (let i = 0; i < assets.length; i++) {
455455
let id = assets[i]

packages/compiler-core/src/compile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export function getBaseTransformPreset(
4141
transformExpression
4242
]
4343
: __BROWSER__ && __DEV__
44-
? [transformExpression]
45-
: []),
44+
? [transformExpression]
45+
: []),
4646
transformSlotOutlet,
4747
transformElement,
4848
trackSlotScopes,

packages/compiler-core/src/parse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@ function parseAttribute(
811811
(isPropShorthand || startsWith(name, ':')
812812
? 'bind'
813813
: startsWith(name, '@')
814-
? 'on'
815-
: 'slot')
814+
? 'on'
815+
: 'slot')
816816
let arg: ExpressionNode | undefined
817817

818818
if (match[2]) {

packages/compiler-core/src/transform.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ export function createTransformContext(
238238
const removalIndex = node
239239
? list.indexOf(node)
240240
: context.currentNode
241-
? context.childIndex
242-
: -1
241+
? context.childIndex
242+
: -1
243243
/* istanbul ignore if */
244244
if (__DEV__ && removalIndex < 0) {
245245
throw new Error(`node being removed is not a child of current parent`)

packages/compiler-core/src/transforms/vFor.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export const transformFor = createStructuralDirectiveTransform(
9595
const fragmentFlag = isStableFragment
9696
? PatchFlags.STABLE_FRAGMENT
9797
: keyProp
98-
? PatchFlags.KEYED_FRAGMENT
99-
: PatchFlags.UNKEYED_FRAGMENT
98+
? PatchFlags.KEYED_FRAGMENT
99+
: PatchFlags.UNKEYED_FRAGMENT
100100

101101
forNode.codegenNode = createVNodeCall(
102102
context,
@@ -141,10 +141,10 @@ export const transformFor = createStructuralDirectiveTransform(
141141
const slotOutlet = isSlotOutlet(node)
142142
? node
143143
: isTemplate &&
144-
node.children.length === 1 &&
145-
isSlotOutlet(node.children[0])
146-
? (node.children[0] as SlotOutletNode) // api-extractor somehow fails to infer this
147-
: null
144+
node.children.length === 1 &&
145+
isSlotOutlet(node.children[0])
146+
? (node.children[0] as SlotOutletNode) // api-extractor somehow fails to infer this
147+
: null
148148

149149
if (slotOutlet) {
150150
// <slot v-for="..."> or <template v-for="..."><slot/></template>

packages/compiler-core/src/transforms/vSlot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ export function buildSlots(
349349
const slotFlag = hasDynamicSlots
350350
? SlotFlags.DYNAMIC
351351
: hasForwardedSlots(node.children)
352-
? SlotFlags.FORWARDED
353-
: SlotFlags.STABLE
352+
? SlotFlags.FORWARDED
353+
: SlotFlags.STABLE
354354

355355
let slots = createObjectExpression(
356356
slotsProperties.concat(

packages/compiler-dom/src/transforms/stringifyStatic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ const isStringifiableAttr = (name: string, ns: DOMNamespaces) => {
153153
(ns === DOMNamespaces.HTML
154154
? isKnownHtmlAttr(name)
155155
: ns === DOMNamespaces.SVG
156-
? isKnownSvgAttr(name)
157-
: false) || dataAriaRE.test(name)
156+
? isKnownSvgAttr(name)
157+
: false) || dataAriaRE.test(name)
158158
)
159159
}
160160

packages/compiler-dom/src/transforms/vOn.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ const transformClick = (key: ExpressionNode, event: string) => {
9696
return isStaticClick
9797
? createSimpleExpression(event, true)
9898
: key.type !== NodeTypes.SIMPLE_EXPRESSION
99-
? createCompoundExpression([
100-
`(`,
101-
key,
102-
`) === "onClick" ? "${event}" : (`,
103-
key,
104-
`)`
105-
])
106-
: key
99+
? createCompoundExpression([
100+
`(`,
101+
key,
102+
`) === "onClick" ? "${event}" : (`,
103+
key,
104+
`)`
105+
])
106+
: key
107107
}
108108

109109
export const transformOn: DirectiveTransform = (dir, node, context) => {

0 commit comments

Comments
 (0)