Format codebase to ensure consistent style

Ce commit applique un formatage uniforme au code en utilisant des guillemets doubles. Cela améliore la lisibilité et maintient une style cohérente à travers tous les fichiers. De plus, une configuration Biome a été ajoutée pour automatiser ce processus à l'avenir.
This commit is contained in:
2024-08-21 13:51:53 +02:00
parent 3b8f3565d4
commit 0bb8185247
26 changed files with 232 additions and 149 deletions

View File

@@ -1,13 +1,13 @@
import { getGreeting } from '../support/app.po';
import { getGreeting } from "../support/app.po";
describe('frontend-e2e', () => {
beforeEach(() => cy.visit('/'));
describe("frontend-e2e", () => {
beforeEach(() => cy.visit("/"));
it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('my-email@something.com', 'myPassword');
it("should display welcome message", () => {
// Custom command example, see `../support/commands.ts` file
cy.login("my-email@something.com", "myPassword");
// Function helper example, see `../support/app.po.ts` file
getGreeting().contains(/Welcome/);
});
// Function helper example, see `../support/app.po.ts` file
getGreeting().contains(/Welcome/);
});
});

View File

@@ -1 +1 @@
export const getGreeting = () => cy.get('h1');
export const getGreeting = () => cy.get("h1");

View File

@@ -12,15 +12,15 @@
// eslint-disable-next-line @typescript-eslint/no-namespace
declare namespace Cypress {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Chainable<Subject> {
login(email: string, password: string): void;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface Chainable<Subject> {
login(email: string, password: string): void;
}
}
// -- This is a parent command --
Cypress.Commands.add('login', (email, password) => {
console.log('Custom command example: Login', email, password);
Cypress.Commands.add("login", (email, password) => {
console.log("Custom command example: Login", email, password);
});
//
// -- This is a child command --

View File

@@ -14,4 +14,4 @@
// ***********************************************************
// Import commands.ts using ES2015 syntax:
import './commands';
import "./commands";