2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

[PUI] Switch linting to biome (#8317)

* bump pre-commit

* add biome

* autofixes

* use number functions

* fix string usage

* use specific variable definition

* fix missing translations

* reduce alerts

* add missing keys

* fix index creation

* fix more strings

* fix types

* fix function

* add missing keys

* fiy array access

* fix string functions

* do not redefine var

* extend exlcusions

* reduce unnecessary operators

* simplify request

* use number functions

* fix missing translation

* add missing type

* fix filter

* use newer func

* remove unused fragment

* fix confusing assigment

* pass children as elements

* add missing translation

* fix imports

* fix import

* auto-fix problems

* add autfix for unused imports

* fix SAST error

* fix useSelfClosingElements

* fix useTemplate

* add codespell exception

* Update pui_printing.spec.ts

* Update pui_printing.spec.ts

* add vscode defaults
This commit is contained in:
Matthias Mair
2024-11-12 01:03:08 +01:00
committed by GitHub
parent e7cfb4c3c0
commit 0872beaba9
308 changed files with 2635 additions and 2550 deletions

View File

@ -194,7 +194,7 @@ test('Parts - Pricing (Nothing, BOM)', async ({ page }) => {
await page.getByRole('button', { name: 'BOM Pricing' }).isEnabled();
// Overview Graph
let graph = page.getByLabel('pricing-overview-chart');
const graph = page.getByLabel('pricing-overview-chart');
await graph.waitFor();
await graph.getByText('$60').waitFor();
await graph.locator('tspan').filter({ hasText: 'BOM Pricing' }).waitFor();
@ -236,7 +236,7 @@ test('Parts - Pricing (Supplier)', async ({ page }) => {
await page.getByRole('button', { name: 'SKU Not sorted' }).waitFor();
// Supplier Pricing - linkjumping
let target = page.getByText('ARR-26041-LPC').first();
const target = page.getByText('ARR-26041-LPC').first();
await target.waitFor();
await target.click();
// await page.waitForURL('**/purchasing/supplier-part/697/');
@ -262,7 +262,7 @@ test('Parts - Pricing (Variant)', async ({ page }) => {
await page.getByRole('button', { name: 'Variant Pricing' }).click();
// Variant Pricing - linkjumping
let target = page.getByText('Green Chair').first();
const target = page.getByText('Green Chair').first();
await target.waitFor();
await target.click();
await page.waitForURL('**/part/109/**');