Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore: upgrade eslint + @eslint/js to v10 (#1794)

Cindy Zhang20af6c9307bb
diff --git a/apps/sandbox/scripts/generate-changelog.js b/apps/sandbox/scripts/generate-changelog.js
index 75637dbcc3..6362bbfd6f 100644
--- a/apps/sandbox/scripts/generate-changelog.js
+++ b/apps/sandbox/scripts/generate-changelog.js
@@ -1,4 +1,3 @@
-/* eslint-env node */
/* eslint-disable no-undef, @typescript-eslint/no-require-imports */
/**
* Generates apps/sandbox/src/generated/changelogRegistry.ts from CHANGELOG.md
diff --git a/apps/sandbox/scripts/generate-versions.js b/apps/sandbox/scripts/generate-versions.js
index 9a0f03534f..5bde1c268e 100644
--- a/apps/sandbox/scripts/generate-versions.js
+++ b/apps/sandbox/scripts/generate-versions.js
@@ -1,4 +1,4 @@
-/* eslint-env node */
+/* global require, console, __dirname */
/* eslint-disable no-undef, @typescript-eslint/no-require-imports */
/**
* Generates apps/sandbox/src/generated/versionRegistry.ts from git tags.
diff --git a/package.json b/package.json
index 608a047ac5..432bbd7cb0 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
"devDependencies": {
"@axe-core/playwright": "^4.11.2",
"@changesets/cli": "^2.31.0",
- "@eslint/js": "^9.39.2",
+ "@eslint/js": "^10.0.1",
"@playwright/test": "^1.59.1",
"@testing-library/user-event": "^14.5.0",
"@types/node": "^25.6.0",
@@ -44,7 +44,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^4.3.0",
"@vitest/coverage-v8": "^2.1.0",
- "eslint": "^9.15.0",
+ "eslint": "^10.2.1",
"husky": "^9.1.7",
"jscodeshift": "^17.3.0",
"jsdom": "^27.4.0",
diff --git a/packages/core/src/Markdown/parser.perf.test.ts b/packages/core/src/Markdown/parser.perf.test.ts
index ea65c42933..32bb7c0c09 100644
--- a/packages/core/src/Markdown/parser.perf.test.ts
+++ b/packages/core/src/Markdown/parser.perf.test.ts
@@ -1,5 +1,9 @@
import {describe, it, expect} from 'vitest';
-import {parseMarkdown, parseMarkdownIncremental, createIncrementalState} from './parser';
+import {
+ parseMarkdown,
+ parseMarkdownIncremental,
+ createIncrementalState,
+} from './parser';
import type {BlockNode} from './parser';
function generateAIResponse(paragraphs: number): string {
@@ -8,45 +12,59 @@ function generateAIResponse(paragraphs: number): string {
const mod = i % 6;
switch (mod) {
case 0:
- sections.push(`## Section ${i + 1}\n\nThis is paragraph ${i + 1} of the AI response. It contains analysis about the data and provides context for the following sections.`);
+ sections.push(
+ `## Section ${i + 1}\n\nThis is paragraph ${i + 1} of the AI response. It contains analysis about the data and provides context for the following sections.`,
+ );
break;
case 1:
- sections.push('```typescript\nfunction process(data: Record<string, unknown>[]) {\n return data.filter(item => item.valid)\n .map(item => transform(item))\n .reduce((acc, val) => merge(acc, val), {});\n}\n```');
+ sections.push(
+ '```typescript\nfunction process(data: Record<string, unknown>[]) {\n return data.filter(item => item.valid)\n .map(item => transform(item))\n .reduce((acc, val) => merge(acc, val), {});\n}\n```',
+ );
break;
case 2:
- sections.push(`- First point about topic ${i}\n- Second important finding\n- Third observation with **bold emphasis**\n- Fourth conclusion`);
+ sections.push(
+ `- First point about topic ${i}\n- Second important finding\n- Third observation with **bold emphasis**\n- Fourth conclusion`,
+ );
break;
case 3:
- sections.push(`| Metric | Value | Change |\n| :--- | :---: | ---: |\n| Accuracy | ${90 + (i % 10)}% | +${i % 5}% |\n| Latency | ${10 + i}ms | -${i % 3}ms |`);
+ sections.push(
+ `| Metric | Value | Change |\n| :--- | :---: | ---: |\n| Accuracy | ${90 + (i % 10)}% | +${i % 5}% |\n| Latency | ${10 + i}ms | -${i % 3}ms |`,
+ );
break;
case 4:
- sections.push(`> **Note:** This is an important observation about item ${i}.\n> It spans multiple lines and contains *italic* text.`);
+ sections.push(
+ `> **Note:** This is an important observation about item ${i}.\n> It spans multiple lines and contains *italic* text.`,
+ );
break;
case 5:
- sections.push(`1. Step one of process ${i}\n2. Step two with \`inline code\`\n3. Final step with [link](https://example.com/${i})`);
+ sections.push(
+ `1. Step one of process ${i}\n2. Step two with \`inline code\`\n3. Final step with [link](https://example.com/${i})`,
+ );
break;
}
}
return sections.join('\n\n');
}
-function simulateStreamingFullReparse(fullText: string, chunkSize = 50): BlockNode[] {
- let result: BlockNode[] = [];
+function simulateStreamingFullReparse(
+ fullText: string,
+ chunkSize = 50,
+): BlockNode[] {
for (let i = chunkSize; i <= fullText.length; i += chunkSize) {
- result = parseMarkdown(fullText.slice(0, i));
+ parseMarkdown(fullText.slice(0, i));
}
- result = parseMarkdown(fullText);
- return result;
+ return parseMarkdown(fullText);
}
-function simulateStreamingIncremental(fullText: string, chunkSize = 50): BlockNode[] {
+function simulateStreamingIncremental(
+ fullText: string,
+ chunkSize = 50,
+): BlockNode[] {
const state = createIncrementalState();
- let result: BlockNode[] = [];
for (let i = chunkSize; i <= fullText.length; i += chunkSize) {
- result = parseMarkdownIncremental(fullText.slice(0, i), state);
+ parseMarkdownIncremental(fullText.slice(0, i), state);
}
- result = parseMarkdownIncremental(fullText, state);
- return result;
+ return parseMarkdownIncremental(fullText, state);
}
describe('parseMarkdown performance', () => {
@@ -63,7 +81,9 @@ describe('parseMarkdown performance', () => {
for (const size of sizes) {
const text = generateAIResponse(size.paragraphs);
const lines = text.split('\n').length;
- console.log(`${size.name} (${size.paragraphs} paragraphs): ${text.length} chars, ${lines} lines`);
+ console.log(
+ `${size.name} (${size.paragraphs} paragraphs): ${text.length} chars, ${lines} lines`,
+ );
}
});
@@ -74,14 +94,19 @@ describe('parseMarkdown performance', () => {
const start = performance.now();
const result = parseMarkdown(text);
const elapsed = performance.now() - start;
- console.log(` ${size.name} full parse: ${elapsed.toFixed(2)}ms → ${result.length} blocks`);
+ console.log(
+ ` ${size.name} full parse: ${elapsed.toFixed(2)}ms → ${result.length} blocks`,
+ );
expect(elapsed).toBeLessThan(size.maxMs);
expect(result.length).toBeGreaterThan(0);
});
}
// Streaming with full re-parse
- for (const size of [{name: 'Medium', paragraphs: 50, maxMs: 5000}, {name: 'XL', paragraphs: 500, maxMs: 30000}]) {
+ for (const size of [
+ {name: 'Medium', paragraphs: 50, maxMs: 5000},
+ {name: 'XL', paragraphs: 500, maxMs: 30000},
+ ]) {
it(`streaming full re-parse ${size.name} under ${size.maxMs}ms`, () => {
const text = generateAIResponse(size.paragraphs);
const chunkSize = 50;
@@ -89,14 +114,19 @@ describe('parseMarkdown performance', () => {
const start = performance.now();
const result = simulateStreamingFullReparse(text, chunkSize);
const elapsed = performance.now() - start;
- console.log(` ${size.name} streaming full re-parse: ${elapsed.toFixed(2)}ms (${iterations} iterations)`);
+ console.log(
+ ` ${size.name} streaming full re-parse: ${elapsed.toFixed(2)}ms (${iterations} iterations)`,
+ );
expect(elapsed).toBeLessThan(size.maxMs);
expect(result.length).toBeGreaterThan(0);
});
}
// Streaming with incremental parse
- for (const size of [{name: 'Medium', paragraphs: 50, maxMs: 5000}, {name: 'XL', paragraphs: 500, maxMs: 30000}]) {
+ for (const size of [
+ {name: 'Medium', paragraphs: 50, maxMs: 5000},
+ {name: 'XL', paragraphs: 500, maxMs: 30000},
+ ]) {
it(`streaming incremental ${size.name} under ${size.maxMs}ms`, () => {
const text = generateAIResponse(size.paragraphs);
const chunkSize = 50;
@@ -104,7 +134,9 @@ describe('parseMarkdown performance', () => {
const start = performance.now();
const result = simulateStreamingIncremental(text, chunkSize);
const elapsed = performance.now() - start;
- console.log(` ${size.name} streaming incremental: ${elapsed.toFixed(2)}ms (${iterations} iterations)`);
+ console.log(
+ ` ${size.name} streaming incremental: ${elapsed.toFixed(2)}ms (${iterations} iterations)`,
+ );
expect(elapsed).toBeLessThan(size.maxMs);
expect(result.length).toBeGreaterThan(0);
});
diff --git a/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx b/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
index fa2db6e647..6e22778742 100644
--- a/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
+++ b/packages/core/src/SegmentedControl/XDSSegmentedControl.tsx
@@ -17,7 +17,10 @@ import React, {useMemo, useRef, useCallback, type ReactNode} from 'react';
import * as stylex from '@stylexjs/stylex';
import {colorVars, spacingVars, radiusVars} from '../theme/tokens.stylex';
import {XDSSegmentedControlContext} from './XDSSegmentedControlContext';
-import type {XDSSegmentedControlSize, XDSSegmentedControlLayout} from './XDSSegmentedControlContext';
+import type {
+ XDSSegmentedControlSize,
+ XDSSegmentedControlLayout,
+} from './XDSSegmentedControlContext';
import {xdsClassName, mergeProps} from '../utils';
import {useXDSSize} from '../SizeContext/XDSSizeContext';
import type {XDSBaseProps} from '../XDSBaseProps';
@@ -144,7 +147,7 @@ export function XDSSegmentedControl({
const currentIndex = items.findIndex(
item => item === document.activeElement,
);
- let nextIndex: number | null = null;
+ let nextIndex: number;
switch (e.key) {
case 'ArrowRight':
@@ -167,14 +170,12 @@ export function XDSSegmentedControl({
return;
}
- if (nextIndex != null) {
- e.preventDefault();
- const nextItem = items[nextIndex];
- nextItem.focus();
- const nextValue = nextItem.dataset.value;
- if (nextValue != null) {
- onChange(nextValue);
- }
+ e.preventDefault();
+ const nextItem = items[nextIndex];
+ nextItem.focus();
+ const nextValue = nextItem.dataset.value;
+ if (nextValue != null) {
+ onChange(nextValue);
}
},
[isDisabled, onChange],
diff --git a/packages/core/src/Slider/XDSSlider.tsx b/packages/core/src/Slider/XDSSlider.tsx
index 24674a72d0..0703b91d40 100644
--- a/packages/core/src/Slider/XDSSlider.tsx
+++ b/packages/core/src/Slider/XDSSlider.tsx
@@ -521,7 +521,7 @@ export function XDSSlider({ref, ...props}: XDSSliderProps) {
(thumbIndex: number, e: KeyboardEvent<HTMLDivElement>) => {
if (isDisabled) return;
const currentVal = values[thumbIndex];
- let newVal = currentVal;
+ let newVal: number;
switch (e.key) {
case 'ArrowRight':
diff --git a/packages/lab/src/Chart/XDSChart.tsx b/packages/lab/src/Chart/XDSChart.tsx
index a78efc7d15..6696136253 100644
--- a/packages/lab/src/Chart/XDSChart.tsx
+++ b/packages/lab/src/Chart/XDSChart.tsx
@@ -201,11 +201,14 @@ export function XDSChart({
const pixelToData = useCallback(
(px: number, py: number) => {
const y = yScale.invert(py);
- let x: number | string | null = null;
+ let x: number | string;
if (isBandScale(xScale)) {
const domain = xScale.domain();
const step = xScale.step();
- const idx = Math.min(domain.length - 1, Math.max(0, Math.floor(px / step)));
+ const idx = Math.min(
+ domain.length - 1,
+ Math.max(0, Math.floor(px / step)),
+ );
x = domain[idx];
} else {
x = (xScale as ScaleLinear<number, number>).invert(px);
@@ -244,13 +247,35 @@ export function XDSChart({
pointerToData,
pixelToData,
}),
- [innerWidth, innerHeight, margin, xKey, data, xScale, yScale, pointerToData, pixelToData],
+ [
+ innerWidth,
+ innerHeight,
+ margin,
+ xKey,
+ data,
+ xScale,
+ yScale,
+ pointerToData,
+ pixelToData,
+ ],
);
return (
- <div ref={containerRef} style={{width: '100%', touchAction: interactive ? 'none' : undefined, userSelect: interactive ? 'none' : undefined} as React.CSSProperties}>
+ <div
+ ref={containerRef}
+ style={
+ {
+ width: '100%',
+ touchAction: interactive ? 'none' : undefined,
+ userSelect: interactive ? 'none' : undefined,
+ } as React.CSSProperties
+ }>
{containerWidth > 0 && (
- <svg ref={svgRef} width={containerWidth} height={height} style={interactive ? {touchAction: 'none'} : undefined}>
+ <svg
+ ref={svgRef}
+ width={containerWidth}
+ height={height}
+ style={interactive ? {touchAction: 'none'} : undefined}>
<defs>
<clipPath id="xds-chart-plot">
<rect x={0} y={0} width={innerWidth} height={innerHeight} />
diff --git a/packages/lab/src/Chart/XDSChartTooltip.tsx b/packages/lab/src/Chart/XDSChartTooltip.tsx
index 2672ef6fbc..c8692cdb16 100644
--- a/packages/lab/src/Chart/XDSChartTooltip.tsx
+++ b/packages/lab/src/Chart/XDSChartTooltip.tsx
@@ -215,13 +215,9 @@ export function XDSChartTooltip({
(e: React.PointerEvent<SVGRectElement>) => {
const dataPoint = pointerToData(e);
- let result: {index: number; point: DataPoint} | null = null;
-
- if (snap) {
- result = findNearest(dataPoint.px, dataPoint.py);
- } else {
- result = {index: -1, point: dataPoint};
- }
+ const result = snap
+ ? findNearest(dataPoint.px, dataPoint.py)
+ : {index: -1, point: dataPoint};
if (result) {
setHoverState(result);
diff --git a/yarn.lock b/yarn.lock
index 97e9d8a3e2..41baf9ac80 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1360,65 +1360,50 @@
dependencies:
eslint-visitor-keys "^3.4.3"
-"@eslint-community/regexpp@^4.12.1", "@eslint-community/regexpp@^4.12.2":
+"@eslint-community/regexpp@^4.12.2":
version "4.12.2"
resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz"
integrity sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==
-"@eslint/config-array@^0.21.1":
- version "0.21.1"
- resolved "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz"
- integrity sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==
+"@eslint/config-array@^0.23.5":
+ version "0.23.5"
+ resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.23.5.tgz#56e86d243049195d8acc0c06a1b3dfdc3fa3de95"
+ integrity sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==
dependencies:
- "@eslint/object-schema" "^2.1.7"
+ "@eslint/object-schema" "^3.0.5"
debug "^4.3.1"
- minimatch "^3.1.2"
+ minimatch "^10.2.4"
-"@eslint/config-helpers@^0.4.2":
- version "0.4.2"
- resolved "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz"
- integrity sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==
+"@eslint/config-helpers@^0.5.5":
+ version "0.5.5"
+ resolved "https://registry.yarnpkg.com/@eslint/config-helpers/-/config-helpers-0.5.5.tgz#ae16134e4792ac5fbdc533548a24ac1ea9f7f3ae"
+ integrity sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==
dependencies:
- "@eslint/core" "^0.17.0"
+ "@eslint/core" "^1.2.1"
-"@eslint/core@^0.17.0":
- version "0.17.0"
- resolved "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz"
- integrity sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==
+"@eslint/core@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@eslint/core/-/core-1.2.1.tgz#c1da7cd1b82fa8787f98b5629fb811848a1b63ce"
+ integrity sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==
dependencies:
"@types/json-schema" "^7.0.15"
-"@eslint/eslintrc@^3.3.1":
- version "3.3.3"
- resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz"
- integrity sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==
- dependencies:
- ajv "^6.12.4"
- debug "^4.3.2"
- espree "^10.0.1"
- globals "^14.0.0"
- ignore "^5.2.0"
- import-fresh "^3.2.1"
- js-yaml "^4.1.1"
- minimatch "^3.1.2"
- strip-json-comments "^3.1.1"
+"@eslint/js@^10.0.1":
+ version "10.0.1"
+ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-10.0.1.tgz#1e8a876f50117af8ab67e47d5ad94d38d6622583"
+ integrity sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==
-"@eslint/[email protected]", "@eslint/js@^9.39.2":
- version "9.39.2"
- resolved "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz"
- integrity sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==
-
-"@eslint/object-schema@^2.1.7":
- version "2.1.7"
- resolved "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz"
- integrity sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==
+"@eslint/object-schema@^3.0.5":
+ version "3.0.5"
+ resolved "https://registry.yarnpkg.com/@eslint/object-schema/-/object-schema-3.0.5.tgz#88e9bf4d11d2b19c082e78ebe7ce88724a5eb091"
+ integrity sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==
-"@eslint/plugin-kit@^0.4.1":
- version "0.4.1"
- resolved "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz"
- integrity sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==
+"@eslint/plugin-kit@^0.7.1":
+ version "0.7.1"
+ resolved "https://registry.yarnpkg.com/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz#c4125fd015eceeb09b793109fdbcd4dd0a02d346"
+ integrity sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==
dependencies:
- "@eslint/core" "^0.17.0"
+ "@eslint/core" "^1.2.1"
levn "^0.4.1"
"@exodus/bytes@^1.6.0":
@@ -2857,6 +2842,11 @@
resolved "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.9.tgz"
integrity sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA==
+"@types/esrecurse@^4.3.1":
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/@types/esrecurse/-/esrecurse-4.3.1.tgz#6f636af962fbe6191b830bd676ba5986926bccec"
+ integrity sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==
+
"@types/[email protected]", "@types/estree@^1.0.0", "@types/estree@^1.0.6", "@types/estree@^1.0.8":
version "1.0.8"
resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz"
@@ -3140,15 +3130,20 @@ acorn@^8.15.0:
resolved "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz"
integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==
+acorn@^8.16.0:
+ version "8.16.0"
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.16.0.tgz#4ce79c89be40afe7afe8f3adb902a1f1ce9ac08a"
+ integrity sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==
+
agent-base@^7.1.0, agent-base@^7.1.2:
version "7.1.4"
resolved "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz"
integrity sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==
-ajv@^6.12.4:
- version "6.14.0"
- resolved "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz"
- integrity sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==
+ajv@^6.14.0:
+ version "6.15.0"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.15.0.tgz#07e982c74626167aa7a2495c53817892d7139492"
+ integrity sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==
dependencies:
fast-deep-equal "^3.1.1"
fast-json-stable-stringify "^2.0.0"
@@ -3170,7 +3165,7 @@ ansi-regex@^6.0.1, ansi-regex@^6.2.2:
resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz"
integrity sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==
-ansi-styles@^4.0.0, ansi-styles@^4.1.0:
+ansi-styles@^4.0.0:
version "4.3.0"
resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
@@ -3337,11 +3332,6 @@ cac@^6.7.14:
resolved "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz"
integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==
-callsites@^3.0.0:
- version "3.1.0"
- resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz"
- integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
-
caniuse-lite@^1.0.30001579:
version "1.0.30001769"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz"
@@ -3363,14 +3353,6 @@ chai@^5.1.2, chai@^5.2.0:
loupe "^3.1.0"
pathval "^2.0.0"
-chalk@^4.0.0:
- version "4.1.2"
- resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz"
- integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
- dependencies:
- ansi-styles "^4.1.0"
- supports-color "^7.1.0"
-
chardet@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz"
@@ -4006,11 +3988,13 @@ escape-string-regexp@^4.0.0:
resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz"
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
-eslint-scope@^8.4.0:
- version "8.4.0"
- resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz"
- integrity sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==
+eslint-scope@^9.1.2:
+ version "9.1.2"
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-9.1.2.tgz#b9de6ace2fab1cff24d2e58d85b74c8fcea39802"
+ integrity sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==
dependencies:
+ "@types/esrecurse" "^4.3.1"
+ "@types/estree" "^1.0.8"
esrecurse "^4.3.0"
estraverse "^5.2.0"
@@ -4019,42 +4003,34 @@ eslint-visitor-keys@^3.4.3:
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz"
integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
-eslint-visitor-keys@^4.2.1:
- version "4.2.1"
- resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz"
- integrity sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==
-
-eslint-visitor-keys@^5.0.0:
+eslint-visitor-keys@^5.0.0, eslint-visitor-keys@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz#9e3c9489697824d2d4ce3a8ad12628f91e9f59be"
integrity sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==
-eslint@^9.15.0:
- version "9.39.2"
- resolved "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz"
- integrity sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==
+eslint@^10.2.1:
+ version "10.2.1"
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-10.2.1.tgz#224b2a6caeb34473eddcf918762363e2e063222a"
+ integrity sha512-wiyGaKsDgqXvF40P8mDwiUp/KQjE1FdrIEJsM8PZ3XCiniTMXS3OHWWUe5FI5agoCnr8x4xPrTDZuxsBlNHl+Q==
dependencies:
"@eslint-community/eslint-utils" "^4.8.0"
- "@eslint-community/regexpp" "^4.12.1"
- "@eslint/config-array" "^0.21.1"
- "@eslint/config-helpers" "^0.4.2"
- "@eslint/core" "^0.17.0"
- "@eslint/eslintrc" "^3.3.1"
- "@eslint/js" "9.39.2"
- "@eslint/plugin-kit" "^0.4.1"
+ "@eslint-community/regexpp" "^4.12.2"
+ "@eslint/config-array" "^0.23.5"
+ "@eslint/config-helpers" "^0.5.5"
+ "@eslint/core" "^1.2.1"
+ "@eslint/plugin-kit" "^0.7.1"
"@humanfs/node" "^0.16.6"
"@humanwhocodes/module-importer" "^1.0.1"
"@humanwhocodes/retry" "^0.4.2"
"@types/estree" "^1.0.6"
- ajv "^6.12.4"
- chalk "^4.0.0"
+ ajv "^6.14.0"
cross-spawn "^7.0.6"
debug "^4.3.2"
escape-string-regexp "^4.0.0"
- eslint-scope "^8.4.0"
- eslint-visitor-keys "^4.2.1"
- espree "^10.4.0"
- esquery "^1.5.0"
+ eslint-scope "^9.1.2"
+ eslint-visitor-keys "^5.0.1"
+ espree "^11.2.0"
+ esquery "^1.7.0"
esutils "^2.0.2"
fast-deep-equal "^3.1.3"
file-entry-cache "^8.0.0"
@@ -4064,28 +4040,27 @@ eslint@^9.15.0:
imurmurhash "^0.1.4"
is-glob "^4.0.0"
json-stable-stringify-without-jsonify "^1.0.1"
- lodash.merge "^4.6.2"
- minimatch "^3.1.2"
+ minimatch "^10.2.4"
natural-compare "^1.4.0"
optionator "^0.9.3"
-espree@^10.0.1, espree@^10.4.0:
- version "10.4.0"
- resolved "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz"
- integrity sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==
+espree@^11.2.0:
+ version "11.2.0"
+ resolved "https://registry.yarnpkg.com/espree/-/espree-11.2.0.tgz#01d5e47dc332aaba3059008362454a8cc34ccaa5"
+ integrity sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==
dependencies:
- acorn "^8.15.0"
+ acorn "^8.16.0"
acorn-jsx "^5.3.2"
- eslint-visitor-keys "^4.2.1"
+ eslint-visitor-keys "^5.0.1"
esprima@^4.0.0, esprima@~4.0.0:
version "4.0.1"
resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz"
integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==
-esquery@^1.5.0:
+esquery@^1.7.0:
version "1.7.0"
- resolved "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz"
+ resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.7.0.tgz#08d048f261f0ddedb5bae95f46809463d9c9496d"
integrity sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==
dependencies:
estraverse "^5.1.0"
@@ -4377,11 +4352,6 @@ glob@^13.0.1:
minipass "^7.1.3"
path-scurry "^2.0.2"
-globals@^14.0.0:
- version "14.0.0"
- resolved "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz"
- integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==
-
globby@^11.0.0:
version "11.1.0"
resolved "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz"
@@ -4485,14 +4455,6 @@ ignore@^7.0.5:
resolved "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz"
integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==
-import-fresh@^3.2.1:
- version "3.3.1"
- resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz"
- integrity sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==
- dependencies:
- parent-module "^1.0.0"
- resolve-from "^4.0.0"
-
imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz"
@@ -4885,11 +4847,6 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"
-lodash.merge@^4.6.2:
- version "4.6.2"
- resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz"
- integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==
-
lodash.startcase@^4.4.0:
version "4.4.0"
resolved "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz"
@@ -5005,7 +4962,7 @@ minimatch@^10.2.2:
dependencies:
brace-expansion "^5.0.5"
-minimatch@^3.1.2, minimatch@^3.1.4:
+minimatch@^10.2.4, minimatch@^3.1.4:
version "3.1.5"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e"
integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==
@@ -5200,13 +5157,6 @@ package-manager-detector@^0.2.0:
dependencies:
quansync "^0.2.7"
-parent-module@^1.0.0:
- version "1.0.1"
- resolved "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz"
- integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
- dependencies:
- callsites "^3.0.0"
-
parse5@^8.0.0:
version "8.0.0"
resolved "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz"
@@ -5548,11 +5498,6 @@ require-from-string@^2.0.2:
resolved "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz"
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
-resolve-from@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz"
- integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
-
resolve-from@^5.0.0:
version "5.0.0"
resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz"
@@ -5884,11 +5829,6 @@ strip-indent@^4.0.0:
resolved "https://registry.npmjs.org/strip-indent/-/strip-indent-4.1.1.tgz"
integrity sha512-SlyRoSkdh1dYP0PzclLE7r0M9sgbFKKMFXpFRUMNuKhQSbC6VQIGzq3E0qsfvGJaUFJPGv6Ws1NZ/haTAjfbMA==
-strip-json-comments@^3.1.1:
- version "3.1.1"
- resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz"
- integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
-
version "5.1.6"
resolved "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz"