Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: figure out what is happening with prettier eslint (#429)

Jim Burbridge7f61ccdf5a99
diff --git a/.eslintrc.js b/.eslintrc.js
index c70cff86..f3f2f856 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -2,7 +2,7 @@
module.exports = {
root: true,
extends: [require.resolve('./tooling/config-eslint/node')],
- ignorePatterns: ['apps/**', 'packages/**', 'tooling/**'],
+ ignorePatterns: ['apps/**', 'packages/**', 'tooling/**', 'monaco-editor.d.ts', 'next-env.d.ts'],
parserOptions: {
project: `${__dirname}/tsconfig.json`,
},
diff --git a/.prettierignore b/.prettierignore
index e82de4d7..cc182593 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -5,7 +5,9 @@
.env
.next
.github
+.next
node_modules
*.log
+monaco-editor.d.ts
pnpm-lock.yaml
diff --git a/apps/admin/package.json b/apps/admin/package.json
index 415b7f8d..3beac819 100644
--- a/apps/admin/package.json
+++ b/apps/admin/package.json
@@ -9,8 +9,8 @@
"dev": "dotenv -e ../../.env next dev -- -p 3001",
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"start": "next start",
"typecheck": "tsc --noEmit"
},
diff --git a/apps/web/package.json b/apps/web/package.json
index 4b07c850..6e2b9aad 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -9,8 +9,8 @@
"dev": "dotenv -e ../../.env next dev -- -p 3000",
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"start": "next start",
"typecheck": "tsc --noEmit"
},
diff --git a/package.json b/package.json
index 59c0c045..070bce7e 100644
--- a/package.json
+++ b/package.json
@@ -15,8 +15,8 @@
"dl-monaco:force": "turbo dl-monaco",
"format": "prettier . \"!./apps/**\" \"!./packages/**\" \"!./tooling/**\" --check --cache --cache-location=\"node_modules/.cache/prettiercache\" ",
"format:fix": "prettier . \"!./apps/**\" \"!./packages/**\" \"!./tooling/**\" --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"refresh": "turbo db:reset db:seed --concurrency=1",
"tunnel": "cloudflared tunnel --url http://localhost:3000",
"typecheck": "turbo typecheck --continue"
diff --git a/packages/auth/package.json b/packages/auth/package.json
index 095a0f72..cf88f167 100644
--- a/packages/auth/package.json
+++ b/packages/auth/package.json
@@ -23,8 +23,8 @@
"scripts": {
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/packages/db/package.json b/packages/db/package.json
index bfcdc556..bf3c282b 100644
--- a/packages/db/package.json
+++ b/packages/db/package.json
@@ -26,8 +26,8 @@
"db:studio": "dotenv -e ../../.env prisma studio",
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/packages/monaco/package.json b/packages/monaco/package.json
index 7d47d2b6..adb8ae4f 100644
--- a/packages/monaco/package.json
+++ b/packages/monaco/package.json
@@ -31,8 +31,8 @@
"scripts": {
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/packages/ui/package.json b/packages/ui/package.json
index db385667..f94660f6 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -23,8 +23,8 @@
"scripts": {
"format": "prettier . --check --cache --cache-location=\"node_modules/.cache/prettiercache\"",
"format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --loglevel=warn",
- "lint": "eslint . --cache --cache-location 'node_modules/.cache/.eslintcache'",
- "lint:fix": "eslint . --fix --cache --cache-location 'node_modules/.cache/.eslintcache'",
+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\"",
+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
diff --git a/packages/ui/src/components/alert.tsx b/packages/ui/src/components/alert.tsx
index d77db9a6..fbc42fa7 100644
--- a/packages/ui/src/components/alert.tsx
+++ b/packages/ui/src/components/alert.tsx
@@ -43,7 +43,7 @@ const AlertDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
- <div className={cn('text-sm [&_p]:leading-relaxed pl-6', className)} ref={ref} {...props} />
+ <div className={cn('pl-6 text-sm [&_p]:leading-relaxed', className)} ref={ref} {...props} />
));
AlertDescription.displayName = 'AlertDescription';
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 00000000..74b36d7c
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,3 @@
+{
+ "extends": ["./tooling/config-typescript/nextjs.json"]
+}