The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[FIX] `Out of memory` while running app localy (#11341)
Paul Rastoin183dc409167b
diff --git a/.eslintrc.cjs b/.eslintrc.global.cjssimilarity index 99%rename from .eslintrc.cjsrename to .eslintrc.global.cjsindex b56016745ee..2a8ab0b2af8 100644--- a/.eslintrc.cjs+++ b/.eslintrc.global.cjs@@ -1,6 +1,7 @@module.exports = {root: true,extends: ['plugin:prettier/recommended', 'plugin:lingui/recommended'],+ ignorePatterns: ['node_modules'],plugins: ['@nx','prefer-arrow',diff --git a/.eslintrc.react.cjs b/.eslintrc.react.cjsindex 77c307222b0..ce434e84d76 100644--- a/.eslintrc.react.cjs+++ b/.eslintrc.react.cjs@@ -10,10 +10,7 @@ module.exports = {plugins: ['react-hooks', 'react-refresh'],overrides: [{- files: ['*.ts', '*.tsx'],- parserOptions: {- project: ['./tsconfig.base.{json,*.json}'],- },+ files: ['**/*.ts', '**/*.tsx'],rules: {'no-restricted-imports': ['error',diff --git a/packages/twenty-chrome-extension/.eslintrc.cjs b/packages/twenty-chrome-extension/.eslintrc.cjsindex d5d38934e7f..836a34a41da 100644--- a/packages/twenty-chrome-extension/.eslintrc.cjs+++ b/packages/twenty-chrome-extension/.eslintrc.cjs@@ -1,11 +1,16 @@module.exports = {- extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],- ignorePatterns: ['!**/*', 'node_modules', 'dist', '**/generated/*'],+ root: true,+ extends: ['../../.eslintrc.global.cjs', '../../.eslintrc.react.cjs'],+ ignorePatterns: [+ 'node_modules',+ 'dist',+ '**/generated/*',+ ],overrides: [{- files: ['*.ts', '*.tsx'],+ files: ['**/*.ts', '**/*.tsx'],parserOptions: {- project: ['packages/twenty-chrome-extension/tsconfig.{json,*.json}'],+ project: ['packages/twenty-chrome-extension/tsconfig.*.json'],},rules: {'@nx/workspace-explicit-boolean-predicates-in-if': 'warn',diff --git a/packages/twenty-emails/.eslintrc.cjs b/packages/twenty-emails/.eslintrc.cjsindex fba68ff6c3c..db6260e8d5d 100644--- a/packages/twenty-emails/.eslintrc.cjs+++ b/packages/twenty-emails/.eslintrc.cjs@@ -1,11 +1,10 @@module.exports = {- extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],- ignorePatterns: ['!**/*'],+ extends: ['../../.eslintrc.global.cjs', '../../.eslintrc.react.cjs'],overrides: [{- files: ['*.ts', '*.tsx'],+ files: ['**/*.ts', '**/*.tsx'],parserOptions: {- project: ['packages/twenty-emails/tsconfig.{json,*.json}'],+ project: ['packages/twenty-emails/tsconfig.*.json'],},rules: {'@nx/dependency-checks': 'error',diff --git a/packages/twenty-front/.eslintrc.cjs b/packages/twenty-front/.eslintrc.cjsindex 7d4a4d87f6a..35782f8a45a 100644--- a/packages/twenty-front/.eslintrc.cjs+++ b/packages/twenty-front/.eslintrc.cjs@@ -1,9 +1,8 @@const path = require('path');module.exports = {- extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],+ extends: ['../../.eslintrc.global.cjs', '../../.eslintrc.react.cjs'],ignorePatterns: [- '!**/*','node_modules','mockServiceWorker.js','**/generated*/*',@@ -19,9 +18,9 @@ module.exports = {],overrides: [{- files: ['*.ts', '*.tsx'],+ files: ['**/*.ts', '**/*.tsx'],parserOptions: {- project: ['packages/twenty-front/tsconfig.{json,*.json}'],+ project: ['packages/twenty-front/tsconfig.*.json'],},plugins: ['project-structure'],settings: {diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.jsonindex 1d8db18f4ad..d967ea576aa 100644--- a/packages/twenty-front/package.json+++ b/packages/twenty-front/package.json@@ -62,6 +62,27 @@"@lingui/cli": "^5.1.2","@lingui/swc-plugin": "^5.1.0","@lingui/vite-plugin": "^5.1.2",- "@types/file-saver": "^2"+ "@types/file-saver": "^2",+ "@typescript-eslint/eslint-plugin": "6.21.0",+ "@typescript-eslint/experimental-utils": "^5.62.0",+ "@typescript-eslint/parser": "6.21.0",+ "@typescript-eslint/utils": "6.21.0",+ "eslint": "^8.53.0",+ "eslint-config-next": "14.0.4",+ "eslint-config-prettier": "^9.1.0",+ "eslint-plugin-import": "2.29.1",+ "eslint-plugin-jsx-a11y": "^6.8.0",+ "eslint-plugin-lingui": "^0.9.0",+ "eslint-plugin-prefer-arrow": "^1.2.3",+ "eslint-plugin-prettier": "^5.1.2",+ "eslint-plugin-project-structure": "^3.9.1",+ "eslint-plugin-react": "^7.33.2",+ "eslint-plugin-react-hooks": "^4.6.0",+ "eslint-plugin-react-refresh": "^0.4.4",+ "eslint-plugin-simple-import-sort": "^10.0.0",+ "eslint-plugin-storybook": "^0.6.15",+ "eslint-plugin-unicorn": "^51.0.1",+ "eslint-plugin-unused-imports": "^3.0.0",+ "optionator": "^0.9.1"}}diff --git a/packages/twenty-front/project.json b/packages/twenty-front/project.jsonindex 4f541de4f58..7453435fd37 100644--- a/packages/twenty-front/project.json+++ b/packages/twenty-front/project.json@@ -52,10 +52,6 @@"typecheck": {},"lint": {"options": {- "lintFilePatterns": [- "{projectRoot}/src/**/*.{ts,tsx,json}",- "{projectRoot}/package.json"- ],"maxWarnings": 0,"reportUnusedDisableDirectives": "error"},diff --git a/packages/twenty-front/setupTests.ts b/packages/twenty-front/setupTests.tsindex d995aadc1eb..e5aa41c46c9 100644--- a/packages/twenty-front/setupTests.ts+++ b/packages/twenty-front/setupTests.ts@@ -13,4 +13,4 @@ import '@testing-library/jest-dom';*/global.structuredClone = (val) => {return JSON.parse(JSON.stringify(val));-};\ No newline at end of file+};diff --git a/packages/twenty-front/tsconfig.spec.json b/packages/twenty-front/tsconfig.spec.jsonindex 026604daaac..d598c09768b 100644--- a/packages/twenty-front/tsconfig.spec.json+++ b/packages/twenty-front/tsconfig.spec.json@@ -4,7 +4,7 @@"types": ["jest", "node"],"baseUrl": "../..","paths": {- "@/*": ["./packages/twenty-front/src/modules/*"],+ "@/*": ["./packages/twenty-front/src/modules/*"],"~/*": ["./packages/twenty-front/src/*"],"twenty-ui": ["./packages/twenty-ui/src/index.ts"],"@ui/*": ["./packages/twenty-ui/src/*"]diff --git a/packages/twenty-front/vite.config.ts b/packages/twenty-front/vite.config.tsindex e694870eaed..73839a39573 100644--- a/packages/twenty-front/vite.config.ts+++ b/packages/twenty-front/vite.config.ts@@ -63,7 +63,8 @@ export default defineConfig(({ command, mode }) => {if (VITE_DISABLE_ESLINT_CHECKER !== 'true') {checkers['eslint'] = {lintCommand:- 'cd ../.. && eslint packages/twenty-front --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs',+ // Appended to packages/twenty-front/.eslintrc.cjs+ 'eslint ../../packages/twenty-front --report-unused-disable-directives --max-warnings 0 --config .eslintrc.cjs',};}diff --git a/packages/twenty-server/.eslintrc.cjs b/packages/twenty-server/.eslintrc.cjsindex ee2aeedeadf..008a3fbbf80 100644--- a/packages/twenty-server/.eslintrc.cjs+++ b/packages/twenty-server/.eslintrc.cjs@@ -1,6 +1,6 @@module.exports = {plugins: ['@stylistic'],- extends: ['../../.eslintrc.cjs'],+ extends: ['../../.eslintrc.global.cjs'],ignorePatterns: ['src/engine/workspace-manager/demo-objects-prefill-data/**','src/engine/seeder/data-seeds/**',@@ -9,7 +9,7 @@ module.exports = {],overrides: [{- files: ['*.ts'],+ files: ['**/*.ts'],parserOptions: {project: ['packages/twenty-server/tsconfig.json'],},diff --git a/packages/twenty-shared/.eslintrc.cjs b/packages/twenty-shared/.eslintrc.cjsindex dba2eae3dc1..01d83ee4f8b 100644--- a/packages/twenty-shared/.eslintrc.cjs+++ b/packages/twenty-shared/.eslintrc.cjs@@ -1,11 +1,10 @@module.exports = {- extends: ['../../.eslintrc.cjs'],- ignorePatterns: ['!**/*'],+ extends: ['../../.eslintrc.global.cjs'],overrides: [{- files: ['*.ts', '*.tsx'],+ files: ['**/*.ts'],parserOptions: {- project: ['packages/twenty-shared/tsconfig.{json,*.json}'],+ project: ['packages/twenty-shared/tsconfig.*.json'],},rules: {'@nx/dependency-checks': 'error',diff --git a/packages/twenty-ui/.eslintrc.cjs b/packages/twenty-ui/.eslintrc.cjsindex 50ca951215a..b562880839b 100644--- a/packages/twenty-ui/.eslintrc.cjs+++ b/packages/twenty-ui/.eslintrc.cjs@@ -1,11 +1,10 @@module.exports = {- extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],- ignorePatterns: ['!**/*'],+ extends: ['../../.eslintrc.global.cjs', '../../.eslintrc.react.cjs'],overrides: [{- files: ['*.ts', '*.tsx'],+ files: ['**/*.ts', '**/*.tsx'],parserOptions: {- project: ['packages/twenty-ui/tsconfig.{json,*.json}'],+ project: ['packages/twenty-ui/tsconfig.*.json'],},rules: {'no-restricted-imports': [diff --git a/packages/twenty-website/.eslintrc.js b/packages/twenty-website/.eslintrc.jsindex 3afe9205c75..0113d397a94 100644--- a/packages/twenty-website/.eslintrc.js+++ b/packages/twenty-website/.eslintrc.js@@ -1,5 +1,5 @@module.exports = {- extends: ['../../.eslintrc.cjs', 'plugin:@next/next/recommended'],+ extends: ['../../.eslintrc.global.cjs', 'plugin:@next/next/recommended'],rules: {'no-console': 'off','prefer-arrow/prefer-arrow-functions': 'off',diff --git a/yarn.lock b/yarn.lockindex b8094650b0e..0ff368dfcc6 100644--- a/yarn.lock+++ b/yarn.lock@@ -44955,7 +44955,7 @@ __metadata:languageName: nodelinkType: hard-"optionator@npm:^0.9.3":+"optionator@npm:^0.9.1, optionator@npm:^0.9.3":version: 0.9.4resolution: "optionator@npm:0.9.4"dependencies:@@ -53144,10 +53144,31 @@ __metadata:"@tiptap/extension-text-style": "npm:^2.10.4""@tiptap/react": "npm:^2.10.4""@types/file-saver": "npm:^2"+ "@typescript-eslint/eslint-plugin": "npm:6.21.0"+ "@typescript-eslint/experimental-utils": "npm:^5.62.0"+ "@typescript-eslint/parser": "npm:6.21.0"+ "@typescript-eslint/utils": "npm:6.21.0""@xyflow/react": "npm:^12.4.2"buffer: "npm:^6.0.3"docx: "npm:^9.1.0"+ eslint: "npm:^8.53.0"+ eslint-config-next: "npm:14.0.4"+ eslint-config-prettier: "npm:^9.1.0"+ eslint-plugin-import: "npm:2.29.1"+ eslint-plugin-jsx-a11y: "npm:^6.8.0"+ eslint-plugin-lingui: "npm:^0.9.0"+ eslint-plugin-prefer-arrow: "npm:^1.2.3"+ eslint-plugin-prettier: "npm:^5.1.2"+ eslint-plugin-project-structure: "npm:^3.9.1"+ eslint-plugin-react: "npm:^7.33.2"+ eslint-plugin-react-hooks: "npm:^4.6.0"+ eslint-plugin-react-refresh: "npm:^0.4.4"+ eslint-plugin-simple-import-sort: "npm:^10.0.0"+ eslint-plugin-storybook: "npm:^0.6.15"+ eslint-plugin-unicorn: "npm:^51.0.1"+ eslint-plugin-unused-imports: "npm:^3.0.0"file-saver: "npm:^2.0.5"+ optionator: "npm:^0.9.1"recoil-sync: "npm:^0.2.0"transliteration: "npm:^2.3.5"twenty-shared: "workspace:*"