Commit Graph

91 Commits

Author SHA1 Message Date
Patrik Oldsberg bee7082094 cli: detect edge-case for MUI icon imports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-05 01:52:35 +01:00
Patrik Oldsberg 25dfc2d483 add more explicit support for .mjs and .cjs extensions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-02 22:48:16 +01:00
Patrik Oldsberg dde216acf4 cli: switch to v8 coverage provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 11:32:22 +01:00
Patrik Oldsberg 719cc87d2f cli: disable ES transform in tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 11:24:08 +01:00
Patrik Oldsberg a10ff21d59 cli: add in a redirect for jestEsmTransform for compatibility
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-20 10:45:23 +02:00
Patrik Oldsberg 4050e33f03 cli: remove old jest ESM transform
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-13 18:37:05 +02:00
Patrik Oldsberg b486adb8c6 cli: rework jest ESM handling by transforming by default
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-13 18:37:05 +02:00
Patrik Oldsberg 668df8d33f cli: set project display name when running mmultiple projects
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-10 20:00:42 +02:00
Patrik Oldsberg 16f044cb6b cli: update backend eslint config to allow __dirname in tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-10 20:00:41 +02:00
Patrik Oldsberg 185fec5c0c cli: add support for using the default jest config from project roots
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-02 18:47:20 +02:00
Fredrik Adelöw e9f332a51c Restrict imports on the form ../../plugins/x/src
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-09-20 13:55:44 +02:00
Patrik Oldsberg c0c51c9710 cli: disable sucrase ES transforms
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-18 17:59:28 +02:00
blam bb6841b0cb chore: fix prettier
Signed-off-by: blam <ben@blam.sh>
2021-09-17 23:03:59 +02:00
Patrik Oldsberg 050797c5b3 cli: switch out the jest yaml transform
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-17 23:03:59 +02:00
Oliver Sand 13895db371 Support importing font files in tests
Follow up for #7019

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-09-06 13:01:02 +02:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
Patrik Oldsberg 9cd3c533c6 cli: switch to @sucrase/plugin-jest instead of ts-jest
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-07 22:45:27 +02:00
Patrik Oldsberg c112abe6f6 cli: update eslint config to match eslint-plugin-prettier 8
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-05-26 18:56:24 +02:00
Marcus Eide 76e6c0b53b Add yaml support in jest
Signed-off-by: Marcus Eide <eide@spotify.com>
2021-05-21 15:14:37 +02:00
Patrik Oldsberg 5136ae0db6 Update packages/cli/config/tsconfig.json
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-07 16:52:35 +02:00
MarceloLeite2604 16c41c290c Replace "ESNext.Promise" with "ES2020.Promise" on tsc lib property
Signed-off-by: MarceloLeite2604 <marceloleite2604@gmail.com>
2021-03-18 09:57:24 -03:00
Patrik Oldsberg 84972540b0 cli: lint storybook file dependencies as if they were tests
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:01:14 +01:00
Johan Haals 257a753fff cli: Fix handling of dynamic imports in esm.js files
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-18 11:00:29 +01:00
Debajyoti Halder c9d6493bef Add missing eslint rule 2021-01-29 12:15:35 +05:30
Debajyoti Halder 6106345e6d Update project with latest eslint rules 2021-01-29 11:55:12 +05:30
Debajyoti Halder da661f836e Update eslint rules 2021-01-26 12:29:48 +05:30
blam d61cb0f7ed chore: fixing create-app issue with linting and simplify tslint configs 2021-01-22 15:40:30 +01:00
blam 5b9bcce28f chore(lint): Updating to latest eslint with typescript and enabling some rules that we can. Also fixing issues with the project after update 2021-01-22 15:01:29 +01:00
Ryan Vazquez c8e5a78443 merge 2020-11-30 16:22:19 -05:00
Ryan Vazquez bd9578870d use ES2020 2020-11-25 11:13:59 -05:00
Himanshu Mishra ef5810f513 eslint: Enforce consistent TS type assertions
https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/consistent-type-assertions.md
2020-11-23 21:40:12 +01:00
Patrik Oldsberg 1249cbb07a cli: disable lint rules that depend on @typescript-eslint v4 2020-11-03 00:29:09 +01:00
Patrik Oldsberg 64df8d7d8e cli: fix for ts-jest config not being applied 2020-10-31 12:07:12 +01:00
Patrik Oldsberg 468d4a2dae Merge pull request #2684 from themousepotato/lintrule-dirname-fix
Add a lint rule to avoid using __dirname
2020-10-09 21:03:13 +02:00
Navaneeth Suresh bbeaff9daf Add a lint rule to avoid using __dirname 2020-10-09 15:03:29 +05:30
Patrik Oldsberg f9c42befc6 cli: simplify jest transform ignore regex 2020-10-09 10:54:23 +02:00
Andrew Thauer 1f21de7b43 feat(catalog): add codeowners processor 2020-09-29 07:35:05 -04:00
Patrik Oldsberg 3ec99fbc55 cli: make skipLibCheck default in tsconfig, but provide tsc:full 2020-09-07 17:30:57 +02:00
Fabian Chong df9fc649fd ignore dist-types dir 2020-09-05 19:20:24 +08:00
Ivan Shmidt a62d0af2c8 chore(eslint): adjust no-unused-vars rule 2020-09-01 11:12:43 +02:00
Patrik Oldsberg 5c0446617b Merge branch 'master' into rugvip/bapp 2020-08-31 13:19:02 +02:00
Patrik Oldsberg b8858e1220 cli: add __non_webpack_require__ to backend eslint globals 2020-08-27 07:22:13 +02:00
Patrik Oldsberg 3ca9863f03 cli: introduce jest transformModules options for providing a list of modules to transform 2020-08-25 16:53:57 +02:00
Patrik Oldsberg 950b316820 cli: switch ts-jest to use isolatedModules 2020-08-22 10:08:06 +02:00
Patrik Oldsberg 4d17c1fd94 cli: fix jest transform pattern termination 2020-08-21 13:24:43 +02:00
Dominik Henneke bf76f07c06 chore: fix jest rule to be able to the use the asyncapi-react module 2020-08-12 13:58:49 +02:00
Patrik Oldsberg 0a7d3a6538 cli: eslint.backend: disallow default winston import 2020-08-09 10:23:54 +02:00
Paul Pacheco 3158c2390b images have extension jpg or jpeg, not jpe (#1742) 2020-07-26 08:56:30 +02:00
Patrik Oldsberg b101453e4e cli: merge together all jest configs that are found in package.jsons 2020-07-15 18:54:57 +02:00
Patrik Oldsberg 63a13aa70b cli: be more opinionated about what test files look like 2020-07-15 18:54:57 +02:00