Commit Graph

27 Commits

Author SHA1 Message Date
Jacob Overgaard
170169a2ca rename eslint rule 2023-11-06 10:55:59 +01:00
Jacob Overgaard
eb7c952074 move exceptions to .eslintrc config 2023-11-06 10:55:59 +01:00
Jacob Overgaard
a2c45e5fa4 add rule to detect erroneous external imports 2023-11-06 10:55:59 +01:00
Jacob Overgaard
02aed57c76 update eslint config 2023-07-18 09:52:23 +02:00
Niels Lyngsø
0f5582cf00 eslint rule for imports 2023-05-25 15:11:37 +02:00
Mads Rasmussen
3a2660b960 remove lint rule 2023-05-25 14:17:59 +02:00
Niels Lyngsø
f5894e26c2 Put style property of Elements below render method (#661)
* Put style property of Elements below render method

* the rule

* reverse this

* move styles

* only warn

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-21 12:01:09 +00:00
Mads Rasmussen
cd9a3a3275 add eslint to to ensure umb prefix on classes 2023-04-16 20:27:07 +02:00
Jacob Overgaard
27499d1344 add local eslint rule to force certain imports from router-slot 2023-04-04 16:47:44 +02:00
Niels Lyngsø
f8b8f2c259 updated models (#639)
* updated models

* potential fix of eslint

* fix eslint rules

* first batch

* dictionary corrections

* batch 2

* batch 3

* tiny correction

* batch 4

* rename key to id internal models

* batch 5

* batch 6

* correct LogLevelCountsReponseModel

* batch 7

* batch 8

* batch 9

* health check data

* _createTableItems

* revert to key for checkbox list

* batch 9
2023-04-04 13:19:19 +02:00
Mads Rasmussen
70c2f70420 Chore: Eslint rule to enforce element suffix (#625)
* add eslint rule to enforce element suffix on elements

* remove fixer

* rename first round of elements

* add element to element class name

* add element suffix

* rename element

* add element to UmbControllerHost instead of interface

* update imports after merge

* remove fixable flag

* fix after merge
2023-03-29 17:56:39 +02:00
Niels Lyngsø
fadc5580d0 rule to ensure libs imports 2023-03-23 23:06:29 +01:00
Lone Iversen
2eff95043c import aliases 2023-03-14 10:21:34 +01:00
Jacob Overgaard
62f3c2d6fa Feature/server packages v2 (#574)
* new api models

* use new PackageResource

* do not error out on missing default exports (esmodules auto-execute)

* do not check for js extensions (they might have been registered on the client without a js file)

* prepend the api baseurl to any relataive server JS dependencies

* ignore tsbuildinfo

* create base file for tsconfig

* extend from base config and optimise include/exclude paths

* install rollup plugin to handle json files

* use plugin to bundle json files

* call script for cms builds that builds libs

* add rollup config to utils lib

* add a context token to the extension registry instance itself and provide it through BackofficeElement

* add rollup node resolve

* add node resolve

* only include element mixin in element library

* add error description to module load error

* add types to UmbExtensionRegistry token

* set UmbNotificationService as string in its token to avoid minification

* correct comment

* reverse order of checks

* add host to server extensions and support life-cycle check

* add imports

* use lit rather than lit-html

* correct comment

* add PackageManifestModel

* add import

* run libs build for cms

* revert reorder

* use string name for NotificationContext token

* make alias public readonly of UmbContextToken

* remove TODO

* use UmbContextToken::toString() for all stores

* use string alias for contexts

* move default data so we avoid importing a big lit library just to get default data interface

* add rollup to two extra libraries

* make sure we build uui and lit into our libraries for the few cases we import something

* add lockfile

* add separate options for .js files

* add function to install types of module

* add types output

* remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
Jacob Overgaard
a9e7b08a7b turn off no-unresolved rule (not compatible with vite) 2023-02-10 11:16:55 +01:00
Jacob Overgaard
1063d856f1 disable unresolved rule (not compatible with vite) 2023-02-10 11:16:55 +01:00
Jacob Overgaard
cd7d5daa8d enable eslint rule for absolute imports as a warning 2023-01-23 11:02:06 +01:00
Jacob Overgaard
fcbd777c98 cleanup eslint config and enable eslint-plugin-wc 2023-01-11 16:22:59 +01:00
Jacob Overgaard
b18b5a5c1a add new local eslint rule to catch direct usage of resources without tryExecuteAndNotify 2023-01-03 15:51:37 +01:00
Mads Rasmussen
10a3edc287 add linting rule for import order 2022-09-09 16:43:48 +02:00
Jacob Overgaard
2c9ba6f81c add custom eslint rule to check for correct type imports 2022-08-25 12:42:15 +02:00
Jacob Overgaard
2d82ba4579 update eslint config so it only checks ts files for now 2022-08-11 13:24:29 +02:00
Jacob Overgaard
46ec8de5db add storybook eslint plugin to extensions 2022-08-04 11:21:47 +02:00
Jacob Overgaard
4c0fad6468 change spaces to tabs and remove double rule from eslint covered by prettier 2022-07-01 11:38:44 +02:00
Jacob Overgaard
dd744da690 add more typescript eslint plugins 2022-05-17 13:45:11 +02:00
JesmoDev
a2ee9b86a3 lint and prettier update 2022-05-17 13:03:27 +02:00
JesmoDev
d74d1c9f03 ESLint and prettier 2022-05-17 11:10:20 +02:00