Use prettier at root of repo

This commit is contained in:
Luke Vella 2024-11-09 15:38:01 +00:00
parent c00e575a61
commit 9c90c9b946
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C
13 changed files with 14 additions and 27 deletions

View file

@ -9,8 +9,7 @@
"start": "next start",
"lint": "eslint .",
"type-check": "tsc --pretty --noEmit",
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js",
"format": "prettier --write ./src"
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js"
},
"dependencies": {
"@rallly/billing": "*",

View file

@ -4,11 +4,11 @@
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"~/*": ["public/*"],
"~/*": ["public/*"]
},
"checkJs": false,
"strictNullChecks": true,
"strictNullChecks": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}

View file

@ -11,7 +11,6 @@
"lint": "eslint .",
"type-check": "tsc --pretty --noEmit",
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js",
"format": "prettier --write ./src",
"test:integration": "NODE_ENV=test playwright test",
"test:unit": "vitest run",
"test": "yarn test:unit && yarn test:e2e",

View file

@ -3,22 +3,17 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@/*": ["src/*"]
},
"strictNullChecks": true,
"types": ["vitest/globals"],
"types": ["vitest/globals"]
},
"include": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
".next/types/**/*.ts",
"vitest.config.mts",
],
"exclude": [
"node_modules",
".next/**/*",
"playwright-report",
"test-results",
"vitest.config.mts"
],
"exclude": ["node_modules", ".next/**/*", "playwright-report", "test-results"]
}

View file

@ -23,7 +23,7 @@
"lint": "turbo lint",
"i18n:scan": "turbo i18n:scan",
"type-check": "turbo type-check",
"format": "turbo format",
"format": "prettier --write .",
"release": "./scripts/create-release.sh",
"sherif": "npx sherif@latest",
"sherif:fix": "npx sherif@latest --fix"

View file

@ -11,7 +11,6 @@
"scripts": {
"normalize-subscription-metadata": "dotenv -e ../../.env -- tsx ./src/scripts/normalize-metadata.ts",
"type-check": "tsc --pretty --noEmit",
"format": "prettier --write .",
"lint": "eslint ./src"
},
"dependencies": {

View file

@ -8,8 +8,7 @@
"db:deploy": "prisma migrate deploy",
"db:migrate": "prisma migrate dev",
"db:seed": "tsx prisma/seed.ts",
"type-check": "tsc --pretty --noEmit",
"format": "prettier --write ."
"type-check": "tsc --pretty --noEmit"
},
"exports": "./index.ts",
"devDependencies": {

View file

@ -6,7 +6,6 @@
"dev": "email dev --port 3333 --dir ./src/previews",
"lint": "eslint ./src",
"type-check": "tsc --pretty --noEmit",
"format": "prettier --write .",
"i18n:scan": "i18next-scanner --config i18next-scanner.config.js"
},
"exports": {

View file

@ -1,5 +1,5 @@
{
"extends": "@rallly/tsconfig/next.json",
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}

View file

@ -1,5 +1,5 @@
{
"extends": "@rallly/tsconfig/base.json",
"include": ["**/*.ts"],
"exclude": ["node_modules"],
"exclude": ["node_modules"]
}

View file

@ -9,8 +9,7 @@
},
"scripts": {
"lint": "eslint ./src",
"type-check": "tsc --noEmit",
"format": "prettier --write ."
"type-check": "tsc --noEmit"
},
"dependencies": {
"posthog-js": "^1.178.0",

View file

@ -7,8 +7,7 @@
"scripts": {
"ui:add": "npx shadcn-ui@latest add",
"lint": "eslint .",
"type-check": "tsc --noEmit",
"format": "prettier --write ."
"type-check": "tsc --noEmit"
},
"exports": {
".": "./src/lib/utils.ts",

View file

@ -4,7 +4,6 @@
"private": true,
"scripts": {
"test:unit": "vitest run",
"format": "prettier --write .",
"lint": "eslint ./src",
"type-check": "tsc --noEmit"
},