Connect, collaborate, and grow with a community of TypeScript developers
Some cleanup on commands. (#464)
Anthony Shew274d7824c507
diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.ymlindex d282e22d..d1f1b98e 100644--- a/.github/workflows/quality.yml+++ b/.github/workflows/quality.yml@@ -28,7 +28,7 @@ jobs:uses: ./tooling/github-actions/install- name: Run Prettier- run: turbo format+ run: turbo format --continueeslint:name: ESLint@@ -42,7 +42,7 @@ jobs:uses: ./tooling/github-actions/install- name: Lint- run: turbo lint+ run: turbo lint --continuetypecheck:name: TypeCheck@@ -67,4 +67,4 @@ jobs:restore-keys: ${{ runner.os }}-cache-typescript-tsbuildinfo-- name: Run TypeScript type check- run: turbo typecheck+ run: turbo typecheck --continuediff --git a/.prettierignore b/.prettierignoreindex cc182593..1b3054f9 100644--- a/.prettierignore+++ b/.prettierignore@@ -11,3 +11,7 @@ node_modulesmonaco-editor.d.tspnpm-lock.yaml++!apps/**+!packages/**+!tooling/**diff --git a/apps/admin/package.json b/apps/admin/package.jsonindex 448ee9ba..411feb2e 100644--- a/apps/admin/package.json+++ b/apps/admin/package.json@@ -8,9 +8,9 @@"clean": "rm -rf .next dist node_modules","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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","start": "next start","typecheck": "tsc --noEmit"},diff --git a/apps/web/package.json b/apps/web/package.jsonindex 5b3c705c..dacda601 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -8,9 +8,9 @@"clean": "rm -rf .next dist node_modules","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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","start": "next start","typecheck": "tsc --noEmit"},diff --git a/package.json b/package.jsonindex f821150d..561993bc 100644--- a/package.json+++ b/package.json@@ -13,10 +13,10 @@"dev": "turbo dev --concurrency=1000","dl-git": "turbo dl-git","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\"",+ "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\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","refresh": "turbo db:reset db:seed --concurrency=1","tunnel": "cloudflared tunnel --url http://localhost:3000","typecheck": "turbo typecheck --continue"@@ -24,7 +24,7 @@"devDependencies": {"prettier": "^3.0.2","prettier-plugin-tailwindcss": "^0.4.1",- "turbo": "^1.10.12",+ "turbo": "^1.10.13","typescript": "^5.1.6"},"packageManager": "[email protected]",diff --git a/packages/auth/package.json b/packages/auth/package.jsonindex cf88f167..6dfd3dab 100644--- a/packages/auth/package.json+++ b/packages/auth/package.json@@ -22,9 +22,9 @@},"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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/packages/db/package.json b/packages/db/package.jsonindex bf3c282b..1af3c4e2 100644--- a/packages/db/package.json+++ b/packages/db/package.json@@ -25,9 +25,9 @@"db:seed": "dotenv -e ../../.env tsx ./seed/index.ts","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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/packages/monaco/package.json b/packages/monaco/package.jsonindex 8639e0c3..c718d419 100644--- a/packages/monaco/package.json+++ b/packages/monaco/package.json@@ -34,9 +34,9 @@},"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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/packages/monaco/src/vim-keybindings.ts b/packages/monaco/src/vim-keybindings.tsindex 284e4699..c5778b56 100644--- a/packages/monaco/src/vim-keybindings.ts+++ b/packages/monaco/src/vim-keybindings.ts@@ -1,10 +1,10 @@import { VimMode } from 'monaco-vim';-type Keybind = {+interface Keybind {key: string;action: string;name: string;-};+}function registerKeybind({ key, action, name }: Keybind) {VimMode.Vim.defineAction(name, function (ctx) {diff --git a/packages/monaco/src/vim-mode.tsx b/packages/monaco/src/vim-mode.tsxindex 98e87605..6865e808 100644--- a/packages/monaco/src/vim-mode.tsx+++ b/packages/monaco/src/vim-mode.tsx@@ -2,7 +2,8 @@import type * as monaco from 'monaco-editor';import { useEffect, useRef } from 'react';-import { VimMode, initVimMode } from 'monaco-vim';+import type { VimMode } from 'monaco-vim';+import { initVimMode } from 'monaco-vim';import { useEditorSettingsStore } from './settings-store';import './vim-keybindings';diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex f94660f6..da86aaaf 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -22,9 +22,9 @@},"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\"",+ "format:fix": "prettier . --write --cache --cache-location=\"node_modules/.cache/prettiercache\" --log-level=warn",+ "lint": "eslint . --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0",+ "lint:fix": "eslint . --fix --cache --cache-location \"node_modules/.cache/.eslintcache\" --max-warnings 0","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b28e42d0..34676c02 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -26,8 +26,8 @@ importers:specifier: ^0.4.1version: 0.4.1([email protected])turbo:- specifier: ^1.10.12- version: 1.10.12+ specifier: ^1.10.13+ version: 1.10.13typescript:specifier: ^5.1.6version: 5.1.6@@ -652,7 +652,7 @@ importers:dependencies:'@next/eslint-plugin-next':specifier: canary- version: 13.4.20-canary.0+ version: 13.4.20-canary.3'@repo/tsconfig':specifier: workspace:*version: link:../config-typescript@@ -664,7 +664,7 @@ importers:version: 5.62.0([email protected])([email protected])'@vercel/style-guide':specifier: ^4.0.2eslint:specifier: ^8.40.0version: 8.45.0@@ -1716,8 +1716,8 @@ packages:glob: 7.1.7dev: true- /@next/[email protected]:- resolution: {integrity: sha512-vFC1meiw/awh2xJZMWaoECsfZbgkt2fF3HIg8f2fSM/w41Z86L1SS7SjKmpbbD87yq3tiqgqHmFv0JCych4g4g==}+ /@next/[email protected]:+ resolution: {integrity: sha512-8GPnrUU4zgD3ACO72j5i9ssYnS3BExijJpNQGGJAzf6i1olDiv8okv+tKhKerIKxybx//oHM6+JvdcTVHyzuiw==}dependencies:glob: 7.1.7dev: false@@ -3951,7 +3951,7 @@ packages:yoga-wasm-web: 0.3.0dev: false- /@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected]):+ /@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-FroL+oOePzhw7n/I+f7zr4WNroGHT/+2TlW6WH9+CVSjMNsEyu7Qstj2mI5gWIBjT1Y2ZImKPppCzI2cIYmNZw==}engines: {node: '>=16'}peerDependencies:@@ -3971,7 +3971,7 @@ packages:dependencies:'@babel/core': 7.22.10'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])- '@next/eslint-plugin-next': 13.4.20-canary.0+ '@next/eslint-plugin-next': 13.4.20-canary.3'@rushstack/eslint-patch': 1.3.2'@typescript-eslint/eslint-plugin': 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])'@typescript-eslint/parser': 5.62.0([email protected])([email protected])@@ -9687,65 +9687,64 @@ packages:fsevents: 2.3.2dev: true- resolution: {integrity: sha512-vmDfGVPl5/aFenAbOj3eOx3ePNcWVUyZwYr7taRl0ZBbmv2TzjRiFotO4vrKCiTVnbqjQqAFQWY2ugbqCI1kOQ==}+ resolution: {integrity: sha512-vmngGfa2dlYvX7UFVncsNDMuT4X2KPyPJ2Jj+xvf5nvQnZR/3IeDEGleGVuMi/hRzdinoxwXqgk9flEmAYp0Xw==}cpu: [x64]os: [darwin]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-3JliEESLNX2s7g54SOBqqkqJ7UhcOGkS0ywMr5SNuvF6kWVTbuUq7uBU/sVbGq8RwvK1ONlhPvJne5MUqBCTCQ==}+ resolution: {integrity: sha512-eMoJC+k7gIS4i2qL6rKmrIQGP6Wr9nN4odzzgHFngLTMimok2cGLK3qbJs5O5F/XAtEeRAmuxeRnzQwTl/iuAw==}cpu: [arm64]os: [darwin]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-siYhgeX0DidIfHSgCR95b8xPee9enKSOjCzx7EjTLmPqPaCiVebRYvbOIYdQWRqiaKh9yfhUtFmtMOMScUf1gg==}+ resolution: {integrity: sha512-0CyYmnKTs6kcx7+JRH3nPEqCnzWduM0hj8GP/aodhaIkLNSAGAa+RiYZz6C7IXN+xUVh5rrWTnU2f1SkIy7Gdg==}cpu: [x64]os: [linux]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-K/ZhvD9l4SslclaMkTiIrnfcACgos79YcAo4kwc8bnMQaKuUeRpM15sxLpZp3xDjDg8EY93vsKyjaOhdFG2UbA==}+ resolution: {integrity: sha512-0iBKviSGQQlh2OjZgBsGjkPXoxvRIxrrLLbLObwJo3sOjIH0loGmVIimGS5E323soMfi/o+sidjk2wU1kFfD7Q==}cpu: [arm64]os: [linux]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-7FSgSwvktWDNOqV65l9AbZwcoueAILeE4L7JvjauNASAjjbuzXGCEq5uN8AQU3U5BOFj4TdXrVmO2dX+lLu8Zg==}+ resolution: {integrity: sha512-S5XySRfW2AmnTeY1IT+Jdr6Goq7mxWganVFfrmqU+qqq3Om/nr0GkcUX+KTIo9mPrN0D3p5QViBRzulwB5iuUQ==}cpu: [x64]os: [win32]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-gCNXF52dwom1HLY9ry/cneBPOKTBHhzpqhMylcyvJP0vp9zeMQQkt6yjYv+6QdnmELC92CtKNp2FsNZo+z0pyw==}+ resolution: {integrity: sha512-nKol6+CyiExJIuoIc3exUQPIBjP9nIq5SkMJgJuxsot2hkgGrafAg/izVDRDrRduQcXj2s8LdtxJHvvnbI8hEQ==}cpu: [arm64]os: [win32]requiresBuild: truedev: trueoptional: true- resolution: {integrity: sha512-WM3+jTfQWnB9W208pmP4oeehZcC6JQNlydb/ZHMRrhmQa+htGhWLCzd6Q9rLe0MwZLPpSPFV2/bN5egCLyoKjQ==}+ resolution: {integrity: sha512-vOF5IPytgQPIsgGtT0n2uGZizR2N3kKuPIn4b5p5DdeLoI0BV7uNiydT7eSzdkPRpdXNnO8UwS658VaI4+YSzQ==}hasBin: true- requiresBuild: trueoptionalDependencies:- turbo-darwin-64: 1.10.12- turbo-darwin-arm64: 1.10.12- turbo-linux-64: 1.10.12- turbo-linux-arm64: 1.10.12- turbo-windows-64: 1.10.12- turbo-windows-arm64: 1.10.12+ turbo-darwin-64: 1.10.13+ turbo-darwin-arm64: 1.10.13+ turbo-linux-64: 1.10.13+ turbo-linux-arm64: 1.10.13+ turbo-windows-64: 1.10.13+ turbo-windows-arm64: 1.10.13dev: truediff --git a/tsconfig.json b/tsconfig.jsondeleted file mode 100644index 74b36d7c..00000000--- a/tsconfig.json+++ /dev/null@@ -1,3 +0,0 @@-{- "extends": ["./tooling/config-typescript/nextjs.json"]-}diff --git a/turbo.json b/turbo.jsonindex 1d09ee67..83409824 100644--- a/turbo.json+++ b/turbo.json@@ -27,36 +27,41 @@"dependsOn": ["^topo"]},"//#format": {- "outputs": ["node_modules/.cache/.prettiercache"]+ "outputs": ["node_modules/.cache/prettiercache"],+ "outputMode": "errors-only"},"format": {- "outputs": ["node_modules/.cache/.prettiercache"]+ "dependsOn": ["@repo/db#db:generate", "^topo"],+ "outputs": ["node_modules/.cache/prettiercache"],+ "outputMode": "errors-only"},"//#format:fix": {- "outputs": ["node_modules/.cache/.prettiercache"]+ "outputs": ["node_modules/.cache/prettiercache"],+ "outputMode": "errors-only"},"format:fix": {- "dependsOn": ["^topo"],- "outputs": ["node_modules/.cache/.prettiercache"]+ "dependsOn": ["@repo/db#db:generate", "^topo"],+ "outputs": ["node_modules/.cache/prettiercache"],+ "outputMode": "errors-only"},"//#lint": {- "dependsOn": ["^topo"],- "outputs": ["node_modules/.cache/.eslintcache"]+ "outputs": ["node_modules/.cache/.eslintcache"],+ "outputMode": "errors-only"},"lint": {"dependsOn": ["@repo/db#db:generate", "^topo"],"outputs": ["node_modules/.cache/.eslintcache"],- "outputMode": "new-only"+ "outputMode": "errors-only"},"//#lint:fix": {"dependsOn": ["@repo/db#db:generate", "^topo"],"outputs": ["node_modules/.cache/.eslintcache"],- "outputMode": "new-only"+ "outputMode": "errors-only"},"lint:fix": {"dependsOn": ["@repo/db#db:generate", "^topo"],"outputs": ["node_modules/.cache/.eslintcache"],- "outputMode": "new-only"+ "outputMode": "errors-only"},"typecheck": {"dependsOn": ["@repo/db#db:generate", "^topo"],