Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: prettier action #926

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions packages/frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
abis
public
node_modules
.next
cypress
*.json
*.md
*.test.ts
1 change: 1 addition & 0 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down