From ec53f2c3c3dc5dfef2bca7ad22307330fde6d86b Mon Sep 17 00:00:00 2001 From: Tony CABAYE Date: Mon, 13 Nov 2023 10:44:31 +0100 Subject: [PATCH] chore: update configurations --- .gitignore | 2 ++ packages/eslint-config-custom/index.js | 1 + packages/eslint-config-custom/next.js | 3 +++ packages/test/src/jest.config.ts | 3 ++- packages/tsconfig/base.json | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7402afe1..2a6227f0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,11 +7,13 @@ out build dist dist-ssr +tsconfig.tsbuildinfo # dependencies node_modules .pnp .pnp.js +.npm # Logs logs diff --git a/packages/eslint-config-custom/index.js b/packages/eslint-config-custom/index.js index c81e0107..019251b6 100644 --- a/packages/eslint-config-custom/index.js +++ b/packages/eslint-config-custom/index.js @@ -14,6 +14,7 @@ module.exports = { }, ], rules: { + '@typescript-eslint/ban-types': ['error', { types: { Object: false } }], '@typescript-eslint/consistent-type-imports': [ 'error', { disallowTypeAnnotations: false }, diff --git a/packages/eslint-config-custom/next.js b/packages/eslint-config-custom/next.js index 24fbe62f..44b5a664 100644 --- a/packages/eslint-config-custom/next.js +++ b/packages/eslint-config-custom/next.js @@ -1,3 +1,6 @@ module.exports = { extends: ['turbo', 'plugin:smile/next'], + rules: { + '@typescript-eslint/ban-types': ['error', { types: { Object: false } }], + }, }; diff --git a/packages/test/src/jest.config.ts b/packages/test/src/jest.config.ts index 3b5cb877..b9d998d2 100644 --- a/packages/test/src/jest.config.ts +++ b/packages/test/src/jest.config.ts @@ -6,7 +6,8 @@ const config: Config = { '\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'test/src/fileMock.ts', }, - setupFilesAfterEnv: ['/../test/setupTests.ts'], + roots: ['src'], + setupFilesAfterEnv: ['test/setupTests.ts'], testEnvironment: 'jsdom', transformIgnorePatterns: ['/node_modules/(?!(pretty-bytes)/)'], }; diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index c41373eb..f1c08c52 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -14,6 +14,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "preserveWatchOutput": true, + "resolveJsonModule": true, "skipLibCheck": true, "strict": true },