Skip to content

Commit

Permalink
fix: prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
kriptonian1 committed Feb 22, 2024
1 parent 785556f commit 63bcdac
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ testem.log
.DS_Store
Thumbs.db

.nx/cache

# Next.js
.next
.vscode
Expand All @@ -49,7 +47,7 @@ Thumbs.db
pnpm-lock.yaml

# Database
data/
/data
# Sentry Config File
.sentryclirc

Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint && pnpm test:api
pnpm lint && pnpm format && pnpm test:api
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage
/.nx/cache
auto-changelog-template.hbs
/data
/node_modules
.turbo
6 changes: 3 additions & 3 deletions apps/web/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
export const ReactComponent: any;
export default content;
const content: any
export const ReactComponent: any
export default content
}
6 changes: 3 additions & 3 deletions apps/web/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }],
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/web',
};
coverageDirectory: '../../coverage/apps/web'
}
6 changes: 3 additions & 3 deletions apps/workspace/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
export const ReactComponent: any;
export default content;
const content: any
export const ReactComponent: any
export default content
}
6 changes: 3 additions & 3 deletions apps/workspace/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
preset: '../../jest.preset.js',
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }],
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/workspace',
};
coverageDirectory: '../../coverage/apps/workspace'
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"db:validate": "pnpm dlx prisma validate --schema=apps/api/src/prisma/schema.prisma",
"db:format": "pnpm dlx prisma format --schema=apps/api/src/prisma/schema.prisma",
"db:reset": "pnpm dlx prisma migrate reset --force --schema=apps/api/src/prisma/schema.prisma",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"format": "prettier **/*.{ts,tsx} --write",
"prepare": "husky install",
"sentry:sourcemaps": "sentry-cli sourcemaps inject ./dist && sentry-cli sourcemaps upload ./dist || pnpm run sentry:sourcemaps:exit",
"sentry:sourcemaps:exit": "echo 'Failed to upload source maps to Sentry'"
Expand Down

0 comments on commit 63bcdac

Please sign in to comment.