Skip to content

Commit fabf014

Browse files
[frontend] chore(deps): update dependency @stylistic/eslint-plugin to v5
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Guillaume Paris <[email protected]>
1 parent 1c84e8f commit fabf014

File tree

8 files changed

+30
-22
lines changed

8 files changed

+30
-22
lines changed

openaev-front/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@eslint/js": "9.38.0",
8080
"@faker-js/faker": "10.1.0",
8181
"@playwright/test": "1.56.1",
82-
"@stylistic/eslint-plugin": "4.4.1",
82+
"@stylistic/eslint-plugin": "5.6.1",
8383
"@testing-library/dom": "10.4.1",
8484
"@testing-library/react": "16.3.0",
8585
"@types/d3-hierarchy": "3.1.7",

openaev-front/src/admin/components/workspaces/custom_dashboards/widgets/WidgetTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const WidgetTitle = ({ widget, setFullscreen, readOnly, handleWidgetUpdate, hand
5959
widgetTimeRange = widget.widget_config.time_range;
6060
}
6161
const formattedDiff
62-
= !difference_count || difference_count > 0 ? `+${difference_count}` : `${difference_count}`;
62+
= !difference_count || difference_count > 0 ? `+${difference_count}` : `${difference_count}`;
6363
// Pick icon & color based on difference_count
6464
let Icon = ArrowForwardOutlined;
6565
let color = 'grey.400';

openaev-front/src/admin/components/workspaces/custom_dashboards/widgets/WidgetUtils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ export enum WidgetVizDataType {
258258
}
259259

260260
// Define the discriminated union
261-
export type WidgetVizData =
262-
| {
261+
export type WidgetVizData
262+
= | {
263263
type: WidgetVizDataType.SERIES;
264264
data: EsSeries[];
265265
}

openaev-front/src/admin/components/workspaces/custom_dashboards/widgets/viz/DonutChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DonutChart: FunctionComponent<Props> = ({ widgetId, widgetConfig, datas }:
4444
const labels = datas.map(s => s?.x ?? t('-'));
4545
// Apply custom color mapping only when the widget field represents a status breakdown
4646
const isStatusBreakdown
47-
= 'field' in widgetConfig && (widgetConfig.field.toLowerCase().includes('status') || widgetConfig.field.toLowerCase().includes('vulnerable_endpoint_action'));
47+
= 'field' in widgetConfig && (widgetConfig.field.toLowerCase().includes('status') || widgetConfig.field.toLowerCase().includes('vulnerable_endpoint_action'));
4848
const chartColors = isStatusBreakdown
4949
? labels.map(label => getStatusColor(theme, label))
5050
: [];

openaev-front/src/utils/api-types-custom.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ type PayloadCreateInputMore = {
1515
}
1616
)[];
1717
};
18-
export type PayloadCreateInput = Omit<ApiTypes.BasePayload, PayloadCreateInputOmit> & PayloadCreateInputMore &
19-
(
18+
export type PayloadCreateInput = Omit<ApiTypes.BasePayload, PayloadCreateInputOmit> & PayloadCreateInputMore
19+
& (
2020
| Omit<ApiTypes.Command, PayloadCreateInputOmit> & PayloadCreateInputMore & { payload_type: 'Command' }
2121
| Omit<ApiTypes.Executable, PayloadCreateInputOmit> & PayloadCreateInputMore & { payload_type: 'Executable' }
2222
| Omit<ApiTypes.FileDrop, PayloadCreateInputOmit> & PayloadCreateInputMore & { payload_type: 'FileDrop' }

openaev-front/src/utils/flows/algorithms/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type LayoutAlgorithmOptions = {
1414
export type LayoutAlgorithm = (
1515
nodes: Node[],
1616
edges: Edge[],
17-
options: LayoutAlgorithmOptions
17+
options: LayoutAlgorithmOptions,
1818
) => Promise<{
1919
nodes: Node[];
2020
edges: Edge[];

openaev-front/src/utils/hooks/useEntityToggle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface UseEntityToggle<T> {
99
onToggleEntity: (
1010
entity: T,
1111
_?: SyntheticEvent,
12-
forceRemove?: T[]
12+
forceRemove?: T[],
1313
) => void;
1414
handleClearSelectedElements: () => void;
1515
handleToggleSelectAll: () => void;

openaev-front/yarn.lock

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ __metadata:
18171817
languageName: node
18181818
linkType: hard
18191819

1820-
"@eslint-community/eslint-utils@npm:^4.7.0, @eslint-community/eslint-utils@npm:^4.8.0":
1820+
"@eslint-community/eslint-utils@npm:^4.7.0, @eslint-community/eslint-utils@npm:^4.8.0, @eslint-community/eslint-utils@npm:^4.9.0":
18211821
version: 4.9.0
18221822
resolution: "@eslint-community/eslint-utils@npm:4.9.0"
18231823
dependencies:
@@ -3038,18 +3038,19 @@ __metadata:
30383038
languageName: node
30393039
linkType: hard
30403040

3041-
"@stylistic/eslint-plugin@npm:4.4.1":
3042-
version: 4.4.1
3043-
resolution: "@stylistic/eslint-plugin@npm:4.4.1"
3041+
"@stylistic/eslint-plugin@npm:5.6.1":
3042+
version: 5.6.1
3043+
resolution: "@stylistic/eslint-plugin@npm:5.6.1"
30443044
dependencies:
3045-
"@typescript-eslint/utils": "npm:^8.32.1"
3046-
eslint-visitor-keys: "npm:^4.2.0"
3047-
espree: "npm:^10.3.0"
3045+
"@eslint-community/eslint-utils": "npm:^4.9.0"
3046+
"@typescript-eslint/types": "npm:^8.47.0"
3047+
eslint-visitor-keys: "npm:^4.2.1"
3048+
espree: "npm:^10.4.0"
30483049
estraverse: "npm:^5.3.0"
3049-
picomatch: "npm:^4.0.2"
3050+
picomatch: "npm:^4.0.3"
30503051
peerDependencies:
30513052
eslint: ">=9.0.0"
3052-
checksum: 10c0/94160bfc172a3934dd35be87887f43f7e3ffe9d1645096860a4e4c61877bb0fb62eb20a90e50ad74767ee794ed10f334f7165952cf9bcbd8bae6b80dc10c0d62
3053+
checksum: 10c0/dfd33107209dac554a6b88d40813bfadd938e901ee7b853dfff9b66c9ffe0601790591865ad67e05f1f1061fc3c958087ad25efc1117375fe2487bfa69c44352
30533054
languageName: node
30543055
linkType: hard
30553056

@@ -3703,6 +3704,13 @@ __metadata:
37033704
languageName: node
37043705
linkType: hard
37053706

3707+
"@typescript-eslint/types@npm:^8.47.0":
3708+
version: 8.48.0
3709+
resolution: "@typescript-eslint/types@npm:8.48.0"
3710+
checksum: 10c0/865a8f4ae4a50aa8976f3d7e0f874f1a1c80227ec53ded68644d41011c729a489bb59f70683b29237ab945716ea0258e1d47387163379eab3edaaf5e5cc3b757
3711+
languageName: node
3712+
linkType: hard
3713+
37063714
"@typescript-eslint/typescript-estree@npm:8.38.0":
37073715
version: 8.38.0
37083716
resolution: "@typescript-eslint/typescript-estree@npm:8.38.0"
@@ -3758,7 +3766,7 @@ __metadata:
37583766
languageName: node
37593767
linkType: hard
37603768

3761-
"@typescript-eslint/utils@npm:^8.32.1, @typescript-eslint/utils@npm:^8.46.1":
3769+
"@typescript-eslint/utils@npm:^8.46.1":
37623770
version: 8.46.2
37633771
resolution: "@typescript-eslint/utils@npm:8.46.2"
37643772
dependencies:
@@ -6234,7 +6242,7 @@ __metadata:
62346242
languageName: node
62356243
linkType: hard
62366244

6237-
"eslint-visitor-keys@npm:^4.2.0, eslint-visitor-keys@npm:^4.2.1":
6245+
"eslint-visitor-keys@npm:^4.2.1":
62386246
version: 4.2.1
62396247
resolution: "eslint-visitor-keys@npm:4.2.1"
62406248
checksum: 10c0/fcd43999199d6740db26c58dbe0c2594623e31ca307e616ac05153c9272f12f1364f5a0b1917a8e962268fdecc6f3622c1c2908b4fcc2e047a106fe6de69dc43
@@ -6290,7 +6298,7 @@ __metadata:
62906298
languageName: node
62916299
linkType: hard
62926300

6293-
"espree@npm:^10.0.1, espree@npm:^10.3.0, espree@npm:^10.4.0":
6301+
"espree@npm:^10.0.1, espree@npm:^10.4.0":
62946302
version: 10.4.0
62956303
resolution: "espree@npm:10.4.0"
62966304
dependencies:
@@ -9855,7 +9863,7 @@ __metadata:
98559863
"@mui/x-date-pickers": "npm:8.16.0"
98569864
"@playwright/test": "npm:1.56.1"
98579865
"@redux-devtools/extension": "npm:3.3.0"
9858-
"@stylistic/eslint-plugin": "npm:4.4.1"
9866+
"@stylistic/eslint-plugin": "npm:5.6.1"
98599867
"@testing-library/dom": "npm:10.4.1"
98609868
"@testing-library/react": "npm:16.3.0"
98619869
"@types/d3-hierarchy": "npm:3.1.7"

0 commit comments

Comments
 (0)