1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-09 14:51:30 +01: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' - name: 'lint:editorconfig'
run: 'npm run lint:editorconfig' run: 'npm run lint:editorconfig'
- name: 'lint:typescript'
run: 'npm run lint:typescript'
- name: 'lint:markdown' - name: 'lint:markdown'
run: 'npm run lint:markdown' run: 'npm run lint:markdown'

View File

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

7
package-lock.json generated
View File

@ -46,6 +46,7 @@
"@semantic-release/git": "10.0.1", "@semantic-release/git": "10.0.1",
"@tailwindcss/typography": "0.5.9", "@tailwindcss/typography": "0.5.9",
"@tsconfig/strictest": "2.0.1", "@tsconfig/strictest": "2.0.1",
"@types/date-and-time": "0.13.0",
"@types/negotiator": "0.6.1", "@types/negotiator": "0.6.1",
"@types/node": "20.5.4", "@types/node": "20.5.4",
"@types/react": "18.2.21", "@types/react": "18.2.21",
@ -2413,6 +2414,12 @@
"resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.1.tgz", "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.1.tgz",
"integrity": "sha512-COUnqfB2+ckwXXSFInsFdOAWQzCCx+a5hq2ruyj+Vjund94RJQd4LG2u9hnvJrTgunKAaax7ancBYlDrNYxA0g==" "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": { "node_modules/@types/debug": {
"version": "4.1.8", "version": "4.1.8",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.8.tgz", "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", "build": "npm run curriculum-vitae:build && next build",
"lint:commit": "commitlint", "lint:commit": "commitlint",
"lint:editorconfig": "editorconfig-checker", "lint:editorconfig": "editorconfig-checker",
"lint:typescript": "tsc",
"lint:markdown": "markdownlint-cli2", "lint:markdown": "markdownlint-cli2",
"lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore", "lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore",
"lint:prettier": "prettier . --check", "lint:prettier": "prettier . --check",
@ -66,6 +67,7 @@
"@semantic-release/git": "10.0.1", "@semantic-release/git": "10.0.1",
"@tailwindcss/typography": "0.5.9", "@tailwindcss/typography": "0.5.9",
"@tsconfig/strictest": "2.0.1", "@tsconfig/strictest": "2.0.1",
"@types/date-and-time": "0.13.0",
"@types/negotiator": "0.6.1", "@types/negotiator": "0.6.1",
"@types/node": "20.5.4", "@types/node": "20.5.4",
"@types/react": "18.2.21", "@types/react": "18.2.21",

View File

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