Commit Graph
6 Commits
Author SHA1 Message Date
ThaïsandGitHub a3e5cf37b0 chore: upgrade Nx to v18.1.3 (#4706)
Split from https://github.com/twentyhq/twenty/pull/4518

- Upgrades dependencies and applies automatic config migrations with the
command: `npx nx migrate nx` (see
https://nx.dev/nx-api/nx/documents/migrate)
- Fixes lint errors after upgrading `@typescript-eslint`

Note: it was not possible (for now) to migrate Nx to the latest stable
version (v18.2.1) because it upgrades Typescript to v5.4.3, which seems
to cause a bug on install when Yarn tries to apply its native patches.
Might be a bug on the Yarn side.
2024-04-01 13:16:50 +02:00
60598bf235 [ESLint rule] prevent useRecoilCallback without a dependency array (#4411)
Co-authored-by: gitstart-twenty <[email protected]>
Co-authored-by: Matheus <[email protected]>
Co-authored-by: v1b3m <[email protected]>
2024-03-12 15:12:17 +01:00
17511be0cf TWNTY-3794 - ESLint rule: only take explicit boolean predicates in if statements (#4354)
* ESLint rule: only take explicit boolean predicates in if statements

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Merge main

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Fix frontend linter errors

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Fix jest

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Refactor according to review

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Refactor according to review

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

* Fix lint on new code

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>

---------

Co-authored-by: gitstart-twenty <[email protected]>
Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Toledodev <[email protected]>
2024-03-09 10:48:19 +01:00
b2210bd418 TWNTY-2244 - ESLint rule: enforce usage of .getLoadable() + .getValue() to get atoms (#4143)
* ESLint rule: enforce usage of .getLoadable() + .getValue() to get atoms

Co-authored-by: Matheus <[email protected]>

* Merge main

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Matheus <[email protected]>

* Fix

* Refactor according to review

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Matheus <[email protected]>

* Fix linter issue

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Matheus <[email protected]>

* Fix linter

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Matheus <[email protected]>

---------

Co-authored-by: gitstart-twenty <[email protected]>
Co-authored-by: Matheus <[email protected]>
Co-authored-by: v1b3m <[email protected]>
Co-authored-by: Lucas Bordeau <[email protected]>
2024-03-06 00:24:20 +01:00
f543191552 TWNTY-3825 - ESLint rule: const naming (#4171)
* ESLint rule: const naming

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: KlingerMatheus <[email protected]>

* Refactor according to review

Co-authored-by: v1b3m <[email protected]>
Co-authored-by: KlingerMatheus <[email protected]>

* refactor: Reverts changes on `twenty-server`

Co-authored-by: KlingerMatheus <[email protected]>
Co-authored-by: v1b3m <[email protected]>

---------

Co-authored-by: gitstart-twenty <[email protected]>
Co-authored-by: v1b3m <[email protected]>
Co-authored-by: KlingerMatheus <[email protected]>
2024-02-25 13:52:48 +01:00
8483cf0b4b POC: chore: use Nx workspace lint rules (#3163)
* chore: use Nx workspace lint rules

Closes #3162

* Fix lint

* Fix lint on BE

* Fix tests

---------

Co-authored-by: Charles Bochet <[email protected]>
2024-01-03 23:07:25 +01:00