Skip to content

Commit

Permalink
chore: prettier checks and writes with prettierignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Oct 14, 2024
1 parent ac7e2fc commit 3247c50
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Ignore Cypress autogenerated files
.nyc_output
coverage
cypress
merged-coverage

# Ignore dev environment files
dev-env

# Ignore deployment files
deployment

# Ignore both dist folders from SPA and Design System
dist
/packages/design-system/dist

# Ignore css or scss files
*.css
*.scss

# Ignore mdx files due to different conflicts between prettier and mdx files
*.mdx

# Ignore config files
.babelrc
.eslintrc.json
.nycrc.json
.prettierrc
.stylelintrc.json
cypress.config.ts
dev.Dockerfile
lerna.json
LICENSE
package.json
package-lock.json
tsconfig.json
vite.config.ts
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "npm run lint:eslint && npm run lint:stylelint && npm run lint:prettier",
"lint:fix": "eslint --fix --ext .ts,.tsx ./src --ignore-path .gitignore . && stylelint --fix **/*.scss && prettier --write '**/*.(yml|json|md|css)'",
"lint:fix": "eslint --fix --ext .ts,.tsx ./src --ignore-path .gitignore . && stylelint --fix **/*.scss && prettier . --write",
"lint:eslint": "eslint --ignore-path .gitignore .",
"lint:stylelint": "stylelint **/*.scss ",
"lint:prettier": "prettier --check '**/*.(yml|json|md|css)' --ignore-path packages/design-system/.gitignore",
"lint:prettier": "prettier . --check",
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json,yml,md}' --config ./.prettierrc",
"cy:open-e2e": "cypress open --e2e --browser chrome",
"cy:open-unit": "cypress open --component --browser chrome",
Expand Down

0 comments on commit 3247c50

Please sign in to comment.