diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..11bbe7fc --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,5 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true +} diff --git a/backend/.prettierrc.js b/backend/.prettierrc.js deleted file mode 100644 index a641ed03..00000000 --- a/backend/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import("prettier").Config} */ -const config = { - "trailingComma": "es5", - "tabWidth": 2, - "semi": true, -} - -export default config; \ No newline at end of file diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.js deleted file mode 100644 index 4a1935b7..00000000 --- a/frontend/.prettierrc.js +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import("prettier").Config} */ -const config = { - trailingComma: "es5", - tabWidth: 2, - semi: true, -}; - -export default config; diff --git a/wiki/Onboarding/Testing and CI.md b/wiki/Onboarding/Testing and CI.md index 7e3150c1..1336a7e4 100644 --- a/wiki/Onboarding/Testing and CI.md +++ b/wiki/Onboarding/Testing and CI.md @@ -7,7 +7,7 @@ This is information about running unit-tests on your code, and linting your code 1. Open terminal and `cd frontend` or `cd backend` depending on which folder you are testing 2. Run `yarn run test` to run unit tests 3. Run `yarn run lint` to lint; Run `yarn run lint:fix` to fix linting; -4. Run `yarn run prettier` to test for prettier; Run `yarn run prettify` to fix prettier issues; +4. Run `yarn run prettier` to test for prettier; Run `yarn run prettier:write` to fix prettier issues; To update the Jest snapshots (e.g. when updating the UI) and pass all the frontend tests: