Skip to content

Commit

Permalink
chore: use prettier to format the code (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Nov 23, 2023
1 parent cee71b3 commit 9bf09e4
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 267 deletions.
12 changes: 6 additions & 6 deletions back/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.8",
"prettier": "^3.1.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
Expand Down
2 changes: 1 addition & 1 deletion back/src/oidc-client/oidc-client.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class OidcClientController {
HttpStatus.BAD_REQUEST,
{
cause: error,
}
},
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions back/src/oidc-client/oidc-client.saver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { v4 as uuidv4 } from 'uuid';
export class OidcClientSaver {
constructor(
@InjectRepository(OidcClient)
private oidcClientRepository: Repository<OidcClient>
private oidcClientRepository: Repository<OidcClient>,
) {}

oidcClient = new OidcClient();
Expand All @@ -29,7 +29,7 @@ export class OidcClientSaver {
};

save = async (
createOidcClientDto: CreateOidcClientDto
createOidcClientDto: CreateOidcClientDto,
): Promise<CreateOidcClientDto> => {
const oidcClient = this.hydrate(createOidcClientDto, this.oidcClient);
await this.oidcClientRepository.save(oidcClient);
Expand Down
2 changes: 1 addition & 1 deletion back/test/unit/app.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('AppController', () => {
describe('root', () => {
it('should return "Hello World!"', () => {
expect(appController.getHello()).toBe(
'Bonjour, bienvenue dans votre nouvel espace partenaires'
'Bonjour, bienvenue dans votre nouvel espace partenaires',
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion front/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ module.exports = {
{ allowConstantExport: true },
],
},
}
};
15 changes: 11 additions & 4 deletions front/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Espace Partenaire</title>


<!-- DSFR -->
<link rel="apple-touch-icon" href="./dsfr/favicon/apple-touch-icon.png" />
<link rel="icon" href="./dsfr/favicon/favicon.svg" type="image/svg+xml" />
<link rel="shortcut icon" href="./dsfr/favicon/favicon.ico" type="image/x-icon" />
<link rel="manifest" href="./dsfr/favicon/manifest.webmanifest" crossorigin="use-credentials" />
<link
rel="shortcut icon"
href="./dsfr/favicon/favicon.ico"
type="image/x-icon"
/>
<link
rel="manifest"
href="./dsfr/favicon/manifest.webmanifest"
crossorigin="use-credentials"
/>

<link rel="stylesheet" href="./dsfr/utility/icons/icons.min.css" />
<link rel="stylesheet" href="./dsfr/dsfr.min.css" />
<link rel="stylesheet" href="./dsfr/dsfr.min.css" />
</head>
<body>
<div id="root"></div>
Expand Down
Loading

0 comments on commit 9bf09e4

Please sign in to comment.