From fdab2a7ea8026867cdc493361c85ba907dfe998b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Thu, 14 Sep 2023 11:49:52 +0200 Subject: [PATCH] build: ignore ESLint and TypeScript errors for Production build It improves performance when extra checking is not necessary. --- .github/workflows/lint.yml | 3 +++ next.config.js | 6 ++++++ package-lock.json | 7 +++++++ package.json | 2 ++ tsconfig.json | 2 +- 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a716b1f..37bb559 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,6 +27,9 @@ jobs: - name: 'lint:editorconfig' run: 'npm run lint:editorconfig' + - name: 'lint:typescript' + run: 'npm run lint:typescript' + - name: 'lint:markdown' run: 'npm run lint:markdown' diff --git a/next.config.js b/next.config.js index da9e976..d7ca205 100644 --- a/next.config.js +++ b/next.config.js @@ -2,6 +2,12 @@ const nextConfig = { reactStrictMode: true, output: 'standalone', + typescript: { + ignoreBuildErrors: true + }, + eslint: { + ignoreDuringBuilds: true + }, experimental: { serverActions: true } diff --git a/package-lock.json b/package-lock.json index 509ef3e..f8820d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,6 +46,7 @@ "@semantic-release/git": "10.0.1", "@tailwindcss/typography": "0.5.9", "@tsconfig/strictest": "2.0.1", + "@types/date-and-time": "0.13.0", "@types/negotiator": "0.6.1", "@types/node": "20.5.4", "@types/react": "18.2.21", @@ -2413,6 +2414,12 @@ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.1.tgz", "integrity": "sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==" }, + "node_modules/@types/date-and-time": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@types/date-and-time/-/date-and-time-0.13.0.tgz", + "integrity": "sha512-kHEncapIgrqaY8r2tyb19EvdKyhNjwheLl5cYTorsWJtURoI+oGm5ehW8CLAaq4dvu8x9z56FcXqAT4Mm5Nvzw==", + "dev": true + }, "node_modules/@types/debug": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", diff --git a/package.json b/package.json index 62e4f71..e413543 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build": "npm run curriculum-vitae:build && next build", "lint:commit": "commitlint", "lint:editorconfig": "editorconfig-checker", + "lint:typescript": "tsc", "lint:markdown": "markdownlint-cli2", "lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore", "lint:prettier": "prettier . --check", @@ -66,6 +67,7 @@ "@semantic-release/git": "10.0.1", "@tailwindcss/typography": "0.5.9", "@tsconfig/strictest": "2.0.1", + "@types/date-and-time": "0.13.0", "@types/negotiator": "0.6.1", "@types/node": "20.5.4", "@types/react": "18.2.21", diff --git a/tsconfig.json b/tsconfig.json index cbf7dc3..9674464 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ }, "types": ["cypress"], "noEmit": true, - "moduleResolution": "node", + "moduleResolution": "Bundler", "resolveJsonModule": true, "jsx": "preserve", "incremental": true,