Commit Graph

162 Commits

Author SHA1 Message Date
Patrik Oldsberg fcd3462c98 cli: bump tsconfig from es2021 to es2022
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-04-18 17:12:08 +02:00
Patrik Oldsberg 53cf37008e Merge pull request #23419 from Pike/allow-deprecation-disable
Add the deprecation plugin to the default linter setup, switched off.
2024-04-01 22:27:33 +02:00
Tomasz Szuba cc371d6c3f Less breakages + changeset for CLI
Signed-off-by: Tomasz Szuba <szubster@gmail.com>
2024-03-19 19:53:05 +00:00
Tomasz Szuba 912fc263a9 Fix jest
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2024-03-19 19:53:04 +00:00
Patrik Oldsberg 1bc13fc329 cli: switch node transform type target es2022 and typescript
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-03-18 09:46:24 +01:00
Patrik Oldsberg 0d72065dfd cli: fix backend dev watch mode
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-03-17 21:37:48 +01:00
Axel Hecht e3c213eccf Add the deprecation plugin to the default linter setup, switched off.
This allows to disable deprecation warnings for `backstage-cli repo list-deprecations` with inline comments.

Signed-off-by: Axel Hecht <axel@pike.org>
2024-03-06 15:20:01 +01:00
Stephen A. Wilson f4c08bb671 Add ico extension to jest
Signed-off-by: Stephen A. Wilson <code@stephenawilson.ca>
2024-02-23 12:33:03 -05:00
Tomasz Szuba b6b15b2a0a Switch md5 to sha256
For FIPS compliance

Signed-off-by: Tomasz Szuba <tszuba@box.com>
2023-12-18 15:58:01 +01:00
Aramis Sennyey 38340678c3 feat(openapi): Create Backstage plugins through generator tooling.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
Signed-off-by: Aramis Sennyey <sennyeyaramis@gmail.com>
Signed-off-by: Aramis Sennyey <aramiss@spotify.com>
2023-11-17 13:58:25 -05:00
Patrik Oldsberg 9468a67b92 dev-utils,techdocs: add conditional support for React 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-13 16:06:21 +02:00
Olivier Tassinari a51fb51617 fix: use Material UI vs. MUI where relevant
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
2023-07-04 23:49:19 +02:00
blam 1aad4a99ce chore: review comments
Signed-off-by: blam <ben@blam.sh>
2023-06-19 14:02:53 +02:00
blam 5f599539c2 feat: fix this another way
Signed-off-by: blam <ben@blam.sh>
2023-06-14 10:19:43 +02:00
blam a63e691502 chore: fix the fetch method
Signed-off-by: blam <ben@blam.sh>
2023-06-13 17:30:00 +02:00
blam 5d8771e99d chore: namespace these a little bit
Signed-off-by: blam <ben@blam.sh>
2023-06-13 16:02:22 +02:00
blam d149bd5c0f chore: woops, need fetch here too
Signed-off-by: blam <ben@blam.sh>
2023-06-13 15:56:09 +02:00
blam aa318a0b6c feat: provide a decorated fetch environment for js-dom
Signed-off-by: blam <ben@blam.sh>
2023-06-13 15:51:34 +02:00
Philipp Hugenroth 05169a796d Fix lint factory & changeset
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-05-23 16:11:14 +02:00
Philipp Hugenroth 8e88caa029 Simplify PR after review
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
2023-05-23 16:11:14 +02:00
Patrik Oldsberg 906af5db53 cli: remove unnecessary lint rules and fix issues
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-02-03 16:48:43 +01:00
Patrik Oldsberg 11df6f42b9 cli: use new eslint plugin + fix issues
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-02-03 16:16:41 +01:00
Patrik Oldsberg 6d3abfded1 cli: switch to inline source maps for jest setup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-01-29 14:55:18 +01:00
Patrik Oldsberg 00196b700c cli: remove redundant caching from jest module loader
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-08 23:22:29 +01:00
Patrik Oldsberg 07283a62c1 cli: make next jest config the default
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-08 22:54:39 +01:00
Patrik Oldsberg dd721148b5 cli: fix coverage config warnings
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-08 22:33:20 +01:00
Patrik Oldsberg 43b2b9c791 cli: removed unused @sucrase/jest-plugin dependency
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-02 11:48:08 +01:00
aaronbraundmeier@gmail.com 8015ff1258 inclusive terms
Signed-off-by: aaronbraundmeier@gmail.com <aaronbraundmeier@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-30 12:15:00 +01:00
Patrik Oldsberg be40512430 Revert "chore: (eslint) restrict imports of @material-ui Link"
This reverts commit 7539b36748.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-12 17:23:20 +01:00
Patrik Oldsberg 4c16213e7d cli: explicit jest env resolution
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-11 10:21:17 +01:00
Patrik Oldsberg 7605c11cda bump Node.js to 16 & 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-11-07 11:39:08 +01:00
Dmitry Lobanov 7539b36748 chore: (eslint) restrict imports of @material-ui Link
BREAKING CHANGE: Added a new ESLint rule that restricts imports of Link from @material-ui

Signed-off-by: Dmitry Lobanov <lobanov.dmitry.s@gmail.com>
2022-10-25 13:05:19 +02:00
MT Lewis 1846952276 build: switch eslint-factory to use __testUtils__ instead of __tests__
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-10-17 09:41:40 +01:00
MT Lewis 24b40140c4 build: add __tests__ and __mocks__ dirs to relevant parts of eslint-factory
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-10-17 09:34:00 +01:00
Mitchell Hentges 78d5eb299e CachingJestRuntime should not do extra work if not watching
The benefits of `CachingJestRuntime` only apply if in `watch` mode.
If not, then we're doing FS calls but not getting benefit from them.

This is a small optimization that will hopefully make CI happier with
our caching runtime, if/when it's used.

Signed-off-by: Mitchell Hentges <mhentges@spotify.com>
2022-09-30 15:10:43 +02:00
Patrik Oldsberg 1720afed04 cli: fix yaml transform and add test for loading yaml
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 18:02:28 +02:00
Patrik Oldsberg 2dddb32fea cli: switch to custom jest yaml transform to support node 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg b179cd11f4 cli: update jest config for v29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg 2e4e6c3500 test fixes to support Jest 29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg ffa2d1f414 cli: bump to jest 29
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-20 14:51:19 +02:00
Patrik Oldsberg ff142d29cc cli: remove unnecessary react transforms in jest swc config
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-05 10:59:09 +02:00
blam d62982e62e chore: starting to look nicer
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:57:50 +02:00
blam c68a6ecbe6 chore: turn off tsx for .ts files
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:51:29 +02:00
blam b46b456501 chore: split up the config
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:41:39 +02:00
blam 742cb4f3d7 chore: update the config and add changeset
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:34:03 +02:00
blam 797591c510 chore: change how we load jest
Signed-off-by: blam <ben@blam.sh>
2022-09-02 13:20:59 +02:00
blam b27099595f chore: this should work (famous last words)
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
blam 9a05f6fc26 chore: remove the old esm transform too
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 1f7dbd35e8 chore: only transform things that smell like esm
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00
blam 684f9b4151 chore: removing the sucrase tranforms and tidy up the transforming
Signed-off-by: blam <ben@blam.sh>

Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:04 +02:00