UKForeignOffice / lists

MIT License
1 stars 3 forks source link

Chore/1824 format all the files with prettier #691

Open RichardBray opened 1 year ago

RichardBray commented 1 year ago

Description

The purpose of this PR is to format all the code with prettier so that it is possible to use the commit hooks without getting any errors.

Steps taken

1 - Prevent Prettier from checking .njk files by adding a .prettierignore 2 - Update .eslint.js file by adding parserOptions property to fix this issue 👇

Screenshot 2023-09-28 at 10 58 47

3 - Ignored all js files in the step_definitions folder for .eslint.js and tsconfig.json to fix this isue 👇

Screenshot 2023-09-28 at 11 02 21

4 - Format all files with prettier using (npm|pnpm|yarn|bun) prettier --write .

5 - Manually fix type import issues pointed out by Prettier