diff --git a/package.json b/package.json index e7d0e1029123..d925525591b8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "test:browser:playwright": "pnpm -C test/browser run test:playwright" }, "devDependencies": { - "@antfu/eslint-config": "^3.8.0", + "@antfu/eslint-config": "^3.11.2", "@antfu/ni": "^0.23.1", "@playwright/test": "^1.49.0", "@rollup/plugin-commonjs": "^28.0.1", @@ -51,7 +51,7 @@ "bumpp": "^9.8.1", "changelogithub": "^0.13.11", "esbuild": "^0.24.0", - "eslint": "^9.14.0", + "eslint": "^9.16.0", "magic-string": "^0.30.14", "pathe": "^1.1.2", "rimraf": "^6.0.1", diff --git a/packages/coverage-istanbul/src/provider.ts b/packages/coverage-istanbul/src/provider.ts index 77d0f41847d9..cc85441919f7 100644 --- a/packages/coverage-istanbul/src/provider.ts +++ b/packages/coverage-istanbul/src/provider.ts @@ -1,5 +1,7 @@ import type { CoverageProvider, ReportContext, ResolvedCoverageOptions, Vitest } from 'vitest/node' import { promises as fs } from 'node:fs' +// @ts-expect-error missing types +import { defaults as istanbulDefaults } from '@istanbuljs/schema' import createDebug from 'debug' import libCoverage, { type CoverageMap } from 'istanbul-lib-coverage' import { createInstrumenter, type Instrumenter } from 'istanbul-lib-instrument' @@ -11,8 +13,6 @@ import { resolve } from 'pathe' import TestExclude from 'test-exclude' import c from 'tinyrainbow' import { BaseCoverageProvider } from 'vitest/coverage' -// @ts-expect-error missing types -import { defaults as istanbulDefaults } from '@istanbuljs/schema' import { version } from '../package.json' with { type: 'json' } import { COVERAGE_STORE_KEY } from './constants' diff --git a/packages/mocker/src/node/esmWalker.ts b/packages/mocker/src/node/esmWalker.ts index 42b8c6eb04c3..65b8f0cb9e59 100644 --- a/packages/mocker/src/node/esmWalker.ts +++ b/packages/mocker/src/node/esmWalker.ts @@ -195,7 +195,7 @@ export function esmWalker( if ( (parent?.type === 'TemplateLiteral' && parent?.expressions.includes(child)) - || (parent?.type === 'CallExpression' && parent?.callee === child) + || (parent?.type === 'CallExpression' && parent?.callee === child) ) { return } @@ -253,7 +253,7 @@ export function esmWalker( const classDeclaration = (parent.type === 'PropertyDefinition' && grandparent?.type === 'ClassBody') - || (parent.type === 'ClassDeclaration' && node === parent.superClass) + || (parent.type === 'ClassDeclaration' && node === parent.superClass) const classExpression = parent.type === 'ClassExpression' && node === parent.id @@ -277,7 +277,7 @@ function isRefIdentifier(id: Identifier, parent: _Node, parentStack: _Node[]) { parent.type === 'CatchClause' || ((parent.type === 'VariableDeclarator' || parent.type === 'ClassDeclaration') - && parent.id === id) + && parent.id === id) ) { return false } diff --git a/packages/pretty-format/src/plugins/DOMElement.ts b/packages/pretty-format/src/plugins/DOMElement.ts index 123e4040597e..791ec93255a6 100644 --- a/packages/pretty-format/src/plugins/DOMElement.ts +++ b/packages/pretty-format/src/plugins/DOMElement.ts @@ -41,9 +41,9 @@ function testNode(val: any) { return ( (nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement)) - || (nodeType === TEXT_NODE && constructorName === 'Text') - || (nodeType === COMMENT_NODE && constructorName === 'Comment') - || (nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment') + || (nodeType === TEXT_NODE && constructorName === 'Text') + || (nodeType === COMMENT_NODE && constructorName === 'Comment') + || (nodeType === FRAGMENT_NODE && constructorName === 'DocumentFragment') ) } diff --git a/packages/ui/client/components/BrowserIframe.vue b/packages/ui/client/components/BrowserIframe.vue index 365ad4b57ec7..a36e35eddbc9 100644 --- a/packages/ui/client/components/BrowserIframe.vue +++ b/packages/ui/client/components/BrowserIframe.vue @@ -1,6 +1,6 @@