From f04d8a0c116d63e75cf1f251fd3956989b28b9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Thu, 14 Sep 2023 12:19:26 +0200 Subject: [PATCH] Revert "build: ignore ESLint and TypeScript errors for Production build" This reverts commit fdab2a7ea8026867cdc493361c85ba907dfe998b. --- .github/workflows/lint.yml | 3 --- next.config.js | 6 ------ package-lock.json | 7 ------- package.json | 2 -- tsconfig.json | 2 +- 5 files changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37bb559..a716b1f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,9 +27,6 @@ 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 d7ca205..da9e976 100644 --- a/next.config.js +++ b/next.config.js @@ -2,12 +2,6 @@ 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 f8820d9..509ef3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,6 @@ "@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", @@ -2414,12 +2413,6 @@ "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 e413543..62e4f71 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "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", @@ -67,7 +66,6 @@ "@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 9674464..cbf7dc3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ }, "types": ["cypress"], "noEmit": true, - "moduleResolution": "Bundler", + "moduleResolution": "node", "resolveJsonModule": true, "jsx": "preserve", "incremental": true,