From 96ad2129bb92f7e3cd5609b29e6b736d3a644f4d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Sep 2024 13:11:33 +0200 Subject: [PATCH] update config --- next.config.js | 11 ++++++++++- package.json | 9 ++++++++- tsconfig.json | 27 ++++++++++++++++++++++----- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/next.config.js b/next.config.js index e493b2f..506c17c 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,5 @@ /** @type {import('next').NextConfig} */ -const nextConfig = { +const nextConfig = { reactStrictMode: false, images: { remotePatterns: [ @@ -35,6 +35,15 @@ const nextConfig = { }, ], }, + typescript: { + ignoreBuildErrors: true, + }, + eslint: { + ignoreDuringBuilds: true, + }, + trailingSlash: true, }; module.exports = nextConfig; + + diff --git a/package.json b/package.json index c76d8ab..c9bc2ff 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,16 @@ "private": true, "scripts": { "dev": "next dev", + "lint:es": "eslint --ext .js,.jsx .", + "lint:fix": "eslint --fix --ext .js,.jsx .", "build": "next build", "start": "next start", - "lint": "next lint" + "lint": "next lint", + "export": "next export", + "clear-all": "rm -rf .next node_modules", + "re-start": "rm -rf .next node_modules && yarn install && yarn dev", + "re-build": "rm -rf .next node_modules && yarn install && yarn build" + }, "dependencies": { "@headlessui/react": "^1.7.14", diff --git a/tsconfig.json b/tsconfig.json index 6a9c1a2..e2d9355 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,16 +14,33 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, + "paths": { + "@/*": ["./src/*"], + "@components/*": ["src/components/*"], + "@containers/*": ["src/containers/*"], + "@contexts/*": ["src/contexts/*"], + "@framework/*": ["src/framework/basic-rest/*"], + "@settings/*": ["src/settings/*"], + "@styles/*": ["src/styles/*"], + "@utils/*": ["src/utils/*"] + }, + + // "paths": { + // }, + "incremental": true, + "baseUrl": ".", "plugins": [ { "name": "next" } ], - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + // "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": [ + "next-env.d.ts", + "additional.d.ts", + "src/**/*.ts", + "src/**/*.tsx" + ], "exclude": ["node_modules"] }