1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-17 05:25:54 +02:00

build: ignore ESLint and TypeScript errors for Production build

It improves performance when extra checking is not necessary.
This commit is contained in:
Théo LUDWIG 2023-09-14 11:49:52 +02:00
parent 35211fa279
commit fdab2a7ea8
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
5 changed files with 19 additions and 1 deletions

View File

@ -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'

View File

@ -2,6 +2,12 @@
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: true
},
eslint: {
ignoreDuringBuilds: true
},
experimental: {
serverActions: true
}

7
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -11,7 +11,7 @@
},
"types": ["cypress"],
"noEmit": true,
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"jsx": "preserve",
"incremental": true,