diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ab292171..9d5629f8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -189,6 +189,9 @@ jobs: - run: name: Install packages command: yarn install + - run: + name: Run Prettier + command: yarn prettier:commit - save_cache: key: dependency-frontend-cache-{{ checksum "package.json" }} paths: diff --git a/packages/frontend/.prettierignore b/packages/frontend/.prettierignore new file mode 100644 index 000000000..2b4d8a7ae --- /dev/null +++ b/packages/frontend/.prettierignore @@ -0,0 +1,8 @@ +abis +public +node_modules +.next +cypress +*.json +*.md +*.test.ts \ No newline at end of file diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 82c9ffa22..56b3e77eb 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -10,6 +10,7 @@ "lint": "next lint", "test": "jest --watch", "test:ci": "jest --no-watch", + "prettier:commit":"prettier --write --ignore-unknown . && git add . && git commit -m 'Fix Prettier'", "cypress": "dotenv -e .env -- synpress run --configFile cypress.json --config supportFile='cypress/support/index.js',pluginsFile='cypress/plugins/index.js' -b chrome", "cypress:mobile": "dotenv -e .env -- synpress run --configFile cypress.json --config supportFile='cypress/support/index.js',pluginsFile='cypress/plugins/index.js,viewportWidth=375,viewportHeight=667' --env guildName='Cypress Mobile Gang',guildUrlName='cypress-mobile-gang',dcInvite='https://discord.gg/G6VWkWJrzp',tgId='-1001689086791' -b chromium", "cypress:record": "dotenv -e .env -e .env.development.local -- synpress run --record --configFile cypress.json --config supportFile='cypress/support/index.js',pluginsFile='cypress/plugins/index.js' -b chromium",