@luzmo/lucero 0.0.1 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/package.json +185 -92
  2. package/.storybook/dark-theme.ts +0 -18
  3. package/.storybook/light-theme.ts +0 -34
  4. package/.storybook/main.ts +0 -34
  5. package/.storybook/manager.ts +0 -11
  6. package/.storybook/preview-head.html +0 -7
  7. package/.storybook/preview.ts +0 -42
  8. package/README.md +0 -18
  9. package/custom-elements.json +0 -68111
  10. package/dist/LICENSE +0 -16
  11. package/dist/custom-elements.json +0 -34043
  12. package/dist/package.json +0 -191
  13. package/eslint.config.js +0 -314
  14. package/playwright.config.ts +0 -79
  15. package/vite-utils/cem-plugins/plugin-mixins-and-superclass.ts +0 -141
  16. package/vite-utils/cem-plugins/plugin-private-fields-filter.ts +0 -19
  17. package/vite-utils/get-components-entries.ts +0 -30
  18. package/vite-utils/get-license-content.ts +0 -31
  19. package/vite-utils/get-package-json-content.ts +0 -49
  20. package/vite-utils/plugin-generate-custom-elements-manifest.ts +0 -156
  21. package/vite-utils/plugin-generate-file.ts +0 -130
  22. package/vite-utils/plugin-prepend-css-variables-code.ts +0 -55
  23. package/vite.config.component.ts +0 -69
  24. package/vite.config.storybook.ts +0 -6
  25. package/web-test-runner.config.js +0 -23
  26. /package/{dist/lib → lib}/accordion/index.cjs +0 -0
  27. /package/{dist/lib → lib}/accordion/index.js +0 -0
  28. /package/{dist/lib → lib}/action-bar/index.cjs +0 -0
  29. /package/{dist/lib → lib}/action-bar/index.js +0 -0
  30. /package/{dist/lib → lib}/action-button/index.cjs +0 -0
  31. /package/{dist/lib → lib}/action-button/index.js +0 -0
  32. /package/{dist/lib → lib}/action-group/index.cjs +0 -0
  33. /package/{dist/lib → lib}/action-group/index.js +0 -0
  34. /package/{dist/lib → lib}/action-group-BoIH8s8R.js +0 -0
  35. /package/{dist/lib → lib}/action-group-D4MxBrq8.cjs +0 -0
  36. /package/{dist/lib → lib}/action-menu/index.cjs +0 -0
  37. /package/{dist/lib → lib}/action-menu/index.js +0 -0
  38. /package/{dist/lib → lib}/async-directive-CV2MII86.cjs +0 -0
  39. /package/{dist/lib → lib}/async-directive-FGzMycjH.js +0 -0
  40. /package/{dist/lib → lib}/avatar/index.cjs +0 -0
  41. /package/{dist/lib → lib}/avatar/index.js +0 -0
  42. /package/{dist/lib → lib}/base-BCmA9Wxv.cjs +0 -0
  43. /package/{dist/lib → lib}/base-BjTwmyRF.cjs +0 -0
  44. /package/{dist/lib → lib}/base-D76d76ww.js +0 -0
  45. /package/{dist/lib → lib}/base-nYalvNMy.js +0 -0
  46. /package/{dist/lib → lib}/button/index.cjs +0 -0
  47. /package/{dist/lib → lib}/button/index.js +0 -0
  48. /package/{dist/lib → lib}/button-base-B0iB_JTv.cjs +0 -0
  49. /package/{dist/lib → lib}/button-base-DgtT6sU5.js +0 -0
  50. /package/{dist/lib → lib}/button-group/index.cjs +0 -0
  51. /package/{dist/lib → lib}/button-group/index.js +0 -0
  52. /package/{dist/lib → lib}/checkbox/index.cjs +0 -0
  53. /package/{dist/lib → lib}/checkbox/index.js +0 -0
  54. /package/{dist/lib → lib}/checkbox-mixin-DegQlk5C.js +0 -0
  55. /package/{dist/lib → lib}/checkbox-mixin-H0Hm-VLk.cjs +0 -0
  56. /package/{dist/lib → lib}/clear-button-Ap5H3UyH.js +0 -0
  57. /package/{dist/lib → lib}/clear-button-D0djuaLb.cjs +0 -0
  58. /package/{dist/lib → lib}/close-button-BrfeZvjk.cjs +0 -0
  59. /package/{dist/lib → lib}/close-button-CGISEF33.js +0 -0
  60. /package/{dist/lib → lib}/color-Bg3tYsAQ.js +0 -0
  61. /package/{dist/lib → lib}/color-DphK4hwx.cjs +0 -0
  62. /package/{dist/lib → lib}/color-area/index.cjs +0 -0
  63. /package/{dist/lib → lib}/color-area/index.js +0 -0
  64. /package/{dist/lib → lib}/color-field/index.cjs +0 -0
  65. /package/{dist/lib → lib}/color-field/index.js +0 -0
  66. /package/{dist/lib → lib}/color-handle/index.cjs +0 -0
  67. /package/{dist/lib → lib}/color-handle/index.js +0 -0
  68. /package/{dist/lib → lib}/color-loupe/index.cjs +0 -0
  69. /package/{dist/lib → lib}/color-loupe/index.js +0 -0
  70. /package/{dist/lib → lib}/color-loupe-BICpNqFs.cjs +0 -0
  71. /package/{dist/lib → lib}/color-loupe-DBEApMDT.js +0 -0
  72. /package/{dist/lib → lib}/color-menu/index.cjs +0 -0
  73. /package/{dist/lib → lib}/color-menu/index.js +0 -0
  74. /package/{dist/lib → lib}/color-picker/index.cjs +0 -0
  75. /package/{dist/lib → lib}/color-picker/index.js +0 -0
  76. /package/{dist/lib → lib}/color-slider/index.cjs +0 -0
  77. /package/{dist/lib → lib}/color-slider/index.js +0 -0
  78. /package/{dist/lib → lib}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
  79. /package/{dist/lib → lib}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
  80. /package/{dist/lib → lib}/dependency-manger-C5HCkMMB.cjs +0 -0
  81. /package/{dist/lib → lib}/dependency-manger-CEXvGQUV.js +0 -0
  82. /package/{dist/lib → lib}/directive-C7oCP5Bh.cjs +0 -0
  83. /package/{dist/lib → lib}/directive-helpers-BLDZnGQv.js +0 -0
  84. /package/{dist/lib → lib}/directive-helpers-C2vOfhFx.cjs +0 -0
  85. /package/{dist/lib → lib}/directive-oAbCiebi.js +0 -0
  86. /package/{dist/lib → lib}/divider/index.cjs +0 -0
  87. /package/{dist/lib → lib}/divider/index.js +0 -0
  88. /package/{dist/lib → lib}/divider.module-CXMNveQc.cjs +0 -0
  89. /package/{dist/lib → lib}/divider.module-DwOuLGU3.js +0 -0
  90. /package/{dist/lib → lib}/element-resolution-BvRLGqIU.cjs +0 -0
  91. /package/{dist/lib → lib}/element-resolution-FCUT-wql.js +0 -0
  92. /package/{dist/lib → lib}/field-group/index.cjs +0 -0
  93. /package/{dist/lib → lib}/field-group/index.js +0 -0
  94. /package/{dist/lib → lib}/field-group-CBWafIUV.js +0 -0
  95. /package/{dist/lib → lib}/field-group-TUFvhJkk.cjs +0 -0
  96. /package/{dist/lib → lib}/field-label/index.cjs +0 -0
  97. /package/{dist/lib → lib}/field-label/index.js +0 -0
  98. /package/{dist/lib → lib}/field-label-BK_tk8vP.js +0 -0
  99. /package/{dist/lib → lib}/field-label-BrJaeORz.cjs +0 -0
  100. /package/{dist/lib → lib}/focus-group-DHeTq18L.js +0 -0
  101. /package/{dist/lib → lib}/focus-group-DnxZUBhQ.cjs +0 -0
  102. /package/{dist/lib → lib}/focus-visible-B0P9aY_G.cjs +0 -0
  103. /package/{dist/lib → lib}/focus-visible-DBlJGoEW.js +0 -0
  104. /package/{dist/lib → lib}/focusable-DbUg-3Vp.js +0 -0
  105. /package/{dist/lib → lib}/focusable-Dv_6CFaY.cjs +0 -0
  106. /package/{dist/lib → lib}/focusable-selectors-B4YgbghQ.js +0 -0
  107. /package/{dist/lib → lib}/focusable-selectors-BgFlyFcY.cjs +0 -0
  108. /package/{dist/lib → lib}/icon/index.cjs +0 -0
  109. /package/{dist/lib → lib}/icon/index.js +0 -0
  110. /package/{dist/lib → lib}/if-defined-CYpcjGCb.js +0 -0
  111. /package/{dist/lib → lib}/if-defined-Cv6xanXh.cjs +0 -0
  112. /package/{dist/lib → lib}/index-C1chwzNp.js +0 -0
  113. /package/{dist/lib → lib}/index-DCKCHDTt.cjs +0 -0
  114. /package/{dist/lib → lib}/index-ovT-qVzf.js +0 -0
  115. /package/{dist/lib → lib}/index-yNcLzjhM.cjs +0 -0
  116. /package/{dist/lib → lib}/index.cjs +0 -0
  117. /package/{dist/lib → lib}/index.js +0 -0
  118. /package/{dist/lib → lib}/infield-button/index.cjs +0 -0
  119. /package/{dist/lib → lib}/infield-button/index.js +0 -0
  120. /package/{dist/lib → lib}/label/index.cjs +0 -0
  121. /package/{dist/lib → lib}/label/index.js +0 -0
  122. /package/{dist/lib → lib}/legend-position/index.cjs +0 -0
  123. /package/{dist/lib → lib}/legend-position/index.js +0 -0
  124. /package/{dist/lib → lib}/like-anchor-K8W0QYwC.cjs +0 -0
  125. /package/{dist/lib → lib}/like-anchor-cDeGGeHh.js +0 -0
  126. /package/{dist/lib → lib}/lit-html-B3ugcwD9.js +0 -0
  127. /package/{dist/lib → lib}/lit-html-p4Oxv2-5.cjs +0 -0
  128. /package/{dist/lib → lib}/manage-help-text-2mSEy-AD.js +0 -0
  129. /package/{dist/lib → lib}/manage-help-text-iOk-zmy8.cjs +0 -0
  130. /package/{dist/lib → lib}/menu/index.cjs +0 -0
  131. /package/{dist/lib → lib}/menu/index.js +0 -0
  132. /package/{dist/lib → lib}/multi-language-field/index.cjs +0 -0
  133. /package/{dist/lib → lib}/multi-language-field/index.js +0 -0
  134. /package/{dist/lib → lib}/mutation-controller-DH7YOCyj.js +0 -0
  135. /package/{dist/lib → lib}/mutation-controller-DkOMCW-c.cjs +0 -0
  136. /package/{dist/lib → lib}/number-field/index.cjs +0 -0
  137. /package/{dist/lib → lib}/number-field/index.js +0 -0
  138. /package/{dist/lib → lib}/observe-slot-text-BmsCNJig.cjs +0 -0
  139. /package/{dist/lib → lib}/observe-slot-text-BoFRF-VI.js +0 -0
  140. /package/{dist/lib → lib}/overlay/index.cjs +0 -0
  141. /package/{dist/lib → lib}/overlay/index.js +0 -0
  142. /package/{dist/lib → lib}/overlay-C7QKFqRc.js +0 -0
  143. /package/{dist/lib → lib}/overlay-DScraBAi.cjs +0 -0
  144. /package/{dist/lib → lib}/pending-state-D5KTK4_1.js +0 -0
  145. /package/{dist/lib → lib}/pending-state-Dbc2HIM2.cjs +0 -0
  146. /package/{dist/lib → lib}/picker/index.cjs +0 -0
  147. /package/{dist/lib → lib}/picker/index.js +0 -0
  148. /package/{dist/lib → lib}/picker--2OCYWnV.js +0 -0
  149. /package/{dist/lib → lib}/picker-B9W7Haf4.cjs +0 -0
  150. /package/{dist/lib → lib}/platform-CQzYNWKq.cjs +0 -0
  151. /package/{dist/lib → lib}/platform-DQYMG7JI.js +0 -0
  152. /package/{dist/lib → lib}/popover/index.cjs +0 -0
  153. /package/{dist/lib → lib}/popover/index.js +0 -0
  154. /package/{dist/lib → lib}/popover-CVbjhSnx.cjs +0 -0
  155. /package/{dist/lib → lib}/popover-ZRVxogyp.js +0 -0
  156. /package/{dist/lib → lib}/progress-circle/index.cjs +0 -0
  157. /package/{dist/lib → lib}/progress-circle/index.js +0 -0
  158. /package/{dist/lib → lib}/progress-circle-CiJoS8J7.cjs +0 -0
  159. /package/{dist/lib → lib}/progress-circle-DpXiqW6a.js +0 -0
  160. /package/{dist/lib → lib}/query-BL-TJj7K.cjs +0 -0
  161. /package/{dist/lib → lib}/query-D_KR_GUc.js +0 -0
  162. /package/{dist/lib → lib}/query-assigned-elements-DjfhL1cl.js +0 -0
  163. /package/{dist/lib → lib}/query-assigned-elements-DsKsfk7G.cjs +0 -0
  164. /package/{dist/lib → lib}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
  165. /package/{dist/lib → lib}/query-assigned-nodes-C76XVPWY.js +0 -0
  166. /package/{dist/lib → lib}/radio/index.cjs +0 -0
  167. /package/{dist/lib → lib}/radio/index.js +0 -0
  168. /package/{dist/lib → lib}/random-id-ByCz1xaq.js +0 -0
  169. /package/{dist/lib → lib}/random-id-CqvckpWe.cjs +0 -0
  170. /package/{dist/lib → lib}/roving-tabindex-By_fCy_e.cjs +0 -0
  171. /package/{dist/lib → lib}/roving-tabindex-DOg4z6ZU.js +0 -0
  172. /package/{dist/lib → lib}/search/index.cjs +0 -0
  173. /package/{dist/lib → lib}/search/index.js +0 -0
  174. /package/{dist/lib → lib}/sized-mixin-BSYHt8nT.cjs +0 -0
  175. /package/{dist/lib → lib}/sized-mixin-Dl0KoEcV.js +0 -0
  176. /package/{dist/lib → lib}/slider/index.cjs +0 -0
  177. /package/{dist/lib → lib}/slider/index.js +0 -0
  178. /package/{dist/lib → lib}/slottable-request-event-BfUUt1Mh.cjs +0 -0
  179. /package/{dist/lib → lib}/slottable-request-event-DggLA4Rx.js +0 -0
  180. /package/{dist/lib → lib}/state-BAO-13Bs.js +0 -0
  181. /package/{dist/lib → lib}/state-DReJ3hB6.cjs +0 -0
  182. /package/{dist/lib → lib}/streaming-listener-Bw4jE33f.cjs +0 -0
  183. /package/{dist/lib → lib}/streaming-listener-DLo0wkMc.js +0 -0
  184. /package/{dist/lib → lib}/style-map-BjBGQ_u3.cjs +0 -0
  185. /package/{dist/lib → lib}/style-map-BqvQDFJt.js +0 -0
  186. /package/{dist/lib → lib}/swatch/index.cjs +0 -0
  187. /package/{dist/lib → lib}/swatch/index.js +0 -0
  188. /package/{dist/lib → lib}/switch/index.cjs +0 -0
  189. /package/{dist/lib → lib}/switch/index.js +0 -0
  190. /package/{dist/lib → lib}/tags/index.cjs +0 -0
  191. /package/{dist/lib → lib}/tags/index.js +0 -0
  192. /package/{dist/lib → lib}/text-field/index.cjs +0 -0
  193. /package/{dist/lib → lib}/text-field/index.js +0 -0
  194. /package/{dist/lib → lib}/text-field-C6Aa7XOb.cjs +0 -0
  195. /package/{dist/lib → lib}/text-field-DPk332j9.js +0 -0
  196. /package/{dist/lib → lib}/toast/index.cjs +0 -0
  197. /package/{dist/lib → lib}/toast/index.js +0 -0
  198. /package/{dist/lib → lib}/tooltip/index.cjs +0 -0
  199. /package/{dist/lib → lib}/tooltip/index.js +0 -0
  200. /package/{dist/lib → lib}/unit-input/index.cjs +0 -0
  201. /package/{dist/lib → lib}/unit-input/index.js +0 -0
  202. /package/{dist/lib → lib}/when-CDK1Tt5Y.js +0 -0
  203. /package/{dist/lib → lib}/when-CDZyJPvd.cjs +0 -0
package/dist/package.json DELETED
@@ -1,191 +0,0 @@
1
- {
2
- "name": "@luzmo/lucero",
3
- "version": "0.0.1",
4
- "homepage": "https://luzmo.com",
5
- "description": "Lucero - The design system for Luzmo",
6
- "type": "module",
7
- "files": [
8
- "dist"
9
- ],
10
- "main": "./lib/index.js",
11
- "module": "./lib/index.js",
12
- "types": "./lib/index.d.ts",
13
- "exports": {
14
- ".": {
15
- "import": "./lib/index.js",
16
- "require": "./lib/index.cjs"
17
- },
18
- "./accordion": {
19
- "import": "./lib/accordion/index.js",
20
- "require": "./lib/accordion/index.cjs"
21
- },
22
- "./action-bar": {
23
- "import": "./lib/action-bar/index.js",
24
- "require": "./lib/action-bar/index.cjs"
25
- },
26
- "./action-button": {
27
- "import": "./lib/action-button/index.js",
28
- "require": "./lib/action-button/index.cjs"
29
- },
30
- "./action-group": {
31
- "import": "./lib/action-group/index.js",
32
- "require": "./lib/action-group/index.cjs"
33
- },
34
- "./action-menu": {
35
- "import": "./lib/action-menu/index.js",
36
- "require": "./lib/action-menu/index.cjs"
37
- },
38
- "./avatar": {
39
- "import": "./lib/avatar/index.js",
40
- "require": "./lib/avatar/index.cjs"
41
- },
42
- "./button": {
43
- "import": "./lib/button/index.js",
44
- "require": "./lib/button/index.cjs"
45
- },
46
- "./button-group": {
47
- "import": "./lib/button-group/index.js",
48
- "require": "./lib/button-group/index.cjs"
49
- },
50
- "./checkbox": {
51
- "import": "./lib/checkbox/index.js",
52
- "require": "./lib/checkbox/index.cjs"
53
- },
54
- "./color-picker": {
55
- "import": "./lib/color-picker/index.js",
56
- "require": "./lib/color-picker/index.cjs"
57
- },
58
- "./divider": {
59
- "import": "./lib/divider/index.js",
60
- "require": "./lib/divider/index.cjs"
61
- },
62
- "./field-group": {
63
- "import": "./lib/field-group/index.js",
64
- "require": "./lib/field-group/index.cjs"
65
- },
66
- "./field-label": {
67
- "import": "./lib/field-label/index.js",
68
- "require": "./lib/field-label/index.cjs"
69
- },
70
- "./icon": {
71
- "import": "./lib/icon/index.js",
72
- "require": "./lib/icon/index.cjs"
73
- },
74
- "./infield-button": {
75
- "import": "./lib/infield-button/index.js",
76
- "require": "./lib/infield-button/index.cjs"
77
- },
78
- "./label": {
79
- "import": "./lib/label/index.js",
80
- "require": "./lib/label/index.cjs"
81
- },
82
- "./legend-position": {
83
- "import": "./lib/legend-position/index.js",
84
- "require": "./lib/legend-position/index.cjs"
85
- },
86
- "./menu": {
87
- "import": "./lib/menu/index.js",
88
- "require": "./lib/menu/index.cjs"
89
- },
90
- "./multi-language-field": {
91
- "import": "./lib/multi-language-field/index.js",
92
- "require": "./lib/multi-language-field/index.cjs"
93
- },
94
- "./number-field": {
95
- "import": "./lib/number-field/index.js",
96
- "require": "./lib/number-field/index.cjs"
97
- },
98
- "./overlay": {
99
- "import": "./lib/overlay/index.js",
100
- "require": "./lib/overlay/index.cjs"
101
- },
102
- "./picker": {
103
- "import": "./lib/picker/index.js",
104
- "require": "./lib/picker/index.cjs"
105
- },
106
- "./popover": {
107
- "import": "./lib/popover/index.js",
108
- "require": "./lib/popover/index.cjs"
109
- },
110
- "./progress-circle": {
111
- "import": "./lib/progress-circle/index.js",
112
- "require": "./lib/progress-circle/index.cjs"
113
- },
114
- "./radio": {
115
- "import": "./lib/radio/index.js",
116
- "require": "./lib/radio/index.cjs"
117
- },
118
- "./search": {
119
- "import": "./lib/search/index.js",
120
- "require": "./lib/search/index.cjs"
121
- },
122
- "./slider": {
123
- "import": "./lib/slider/index.js",
124
- "require": "./lib/slider/index.cjs"
125
- },
126
- "./swatch": {
127
- "import": "./lib/swatch/index.js",
128
- "require": "./lib/swatch/index.cjs"
129
- },
130
- "./switch": {
131
- "import": "./lib/switch/index.js",
132
- "require": "./lib/switch/index.cjs"
133
- },
134
- "./tags": {
135
- "import": "./lib/tags/index.js",
136
- "require": "./lib/tags/index.cjs"
137
- },
138
- "./text-field": {
139
- "import": "./lib/text-field/index.js",
140
- "require": "./lib/text-field/index.cjs"
141
- },
142
- "./toast": {
143
- "import": "./lib/toast/index.js",
144
- "require": "./lib/toast/index.cjs"
145
- },
146
- "./tooltip": {
147
- "import": "./lib/tooltip/index.js",
148
- "require": "./lib/tooltip/index.cjs"
149
- },
150
- "./unit-input": {
151
- "import": "./lib/unit-input/index.js",
152
- "require": "./lib/unit-input/index.cjs"
153
- },
154
- "./color-area": {
155
- "import": "./lib/color-area/index.js",
156
- "require": "./lib/color-area/index.cjs"
157
- },
158
- "./color-field": {
159
- "import": "./lib/color-field/index.js",
160
- "require": "./lib/color-field/index.cjs"
161
- },
162
- "./color-handle": {
163
- "import": "./lib/color-handle/index.js",
164
- "require": "./lib/color-handle/index.cjs"
165
- },
166
- "./color-loupe": {
167
- "import": "./lib/color-loupe/index.js",
168
- "require": "./lib/color-loupe/index.cjs"
169
- },
170
- "./color-menu": {
171
- "import": "./lib/color-menu/index.js",
172
- "require": "./lib/color-menu/index.cjs"
173
- },
174
- "./color-slider": {
175
- "import": "./lib/color-slider/index.js",
176
- "require": "./lib/color-slider/index.cjs"
177
- }
178
- },
179
- "keywords": [
180
- "Luzmo",
181
- "design system",
182
- "components",
183
- "web components",
184
- "lucero",
185
- "analytics"
186
- ],
187
- "author": "Luzmo",
188
- "publishConfig": {
189
- "access": "restricted"
190
- }
191
- }
package/eslint.config.js DELETED
@@ -1,314 +0,0 @@
1
- import importPlugin from 'eslint-plugin-import';
2
- import jsdocPlugin from 'eslint-plugin-jsdoc';
3
- import litPlugin from 'eslint-plugin-lit';
4
- import eslintPluginPrettier from 'eslint-plugin-prettier/recommended';
5
- import pluginUnicorn from 'eslint-plugin-unicorn';
6
- import wcPlugin from 'eslint-plugin-wc';
7
- import tseslint from 'typescript-eslint';
8
-
9
- const coreRules = {
10
- 'no-useless-constructor': 'off',
11
- 'arrow-body-style': 'error',
12
- // region Layout & Formatting
13
- 'arrow-parens': ['off', 'always'],
14
- 'arrow-spacing': 'error',
15
- 'no-confusing-arrow': 'error',
16
- 'no-duplicate-imports': 'error',
17
- // endregion
18
- 'brace-style': ['error', 'stroustrup'],
19
- 'space-before-blocks': ['error', 'always'],
20
- 'keyword-spacing': ['error', { after: true }],
21
- 'comma-dangle': 'warn',
22
- 'comma-spacing': 'error',
23
- 'key-spacing': 'error',
24
- 'space-in-parens': 'error',
25
- complexity: 'off',
26
- curly: 'error',
27
- quotes: [2, 'single', { avoidEscape: true }],
28
- 'object-curly-spacing': ['error', 'always'],
29
- 'eol-last': 'error',
30
- eqeqeq: ['error', 'smart'],
31
- 'guard-for-in': 'error',
32
- 'id-denylist': [
33
- 'error',
34
- 'any',
35
- 'Boolean',
36
- 'boolean',
37
- 'Undefined',
38
- 'undefined'
39
- ],
40
- 'id-match': 'error',
41
- 'max-classes-per-file': 'off',
42
- 'max-len': [
43
- 'error',
44
- {
45
- code: 240,
46
- ignoreStrings: true,
47
- ignoreComments: true,
48
- ignoreTemplateLiterals: true
49
- }
50
- ],
51
- 'new-parens': 'error',
52
- 'no-alert': 'error',
53
- 'no-bitwise': 'off',
54
- 'no-eval': 'error',
55
- 'no-caller': 'error',
56
- 'no-console': [
57
- 'error',
58
- {
59
- allow: ['error', 'warn']
60
- }
61
- ],
62
- 'no-empty': [
63
- 'error',
64
- {
65
- allowEmptyCatch: true
66
- }
67
- ],
68
- 'no-else-return': 'error',
69
- 'no-extra-bind': 'error',
70
- 'no-extra-label': 'error',
71
- 'no-lone-blocks': 'error',
72
- 'no-multi-spaces': ['error', { ignoreEOLComments: true }],
73
- 'no-multiple-empty-lines': [
74
- 'error',
75
- {
76
- max: 1
77
- }
78
- ],
79
- 'no-new': 'error',
80
- 'no-new-func': 'error',
81
- 'no-new-wrappers': 'error',
82
- 'no-sequences': 'error',
83
- 'no-throw-literal': 'error',
84
- 'no-trailing-spaces': 'error',
85
- 'no-undef-init': 'error',
86
- 'no-underscore-dangle': 'off',
87
- 'no-useless-call': 'error',
88
- 'no-useless-computed-key': 'error',
89
- 'no-useless-escape': 'off',
90
- 'no-useless-rename': 'error',
91
- 'no-proto': 'error',
92
- 'no-script-url': 'error',
93
- 'no-var': 'error',
94
- 'object-shorthand': 'error',
95
- 'one-var': ['error', 'never'],
96
- 'operator-linebreak': ['error', 'before'],
97
- 'padded-blocks': ['error', 'never'],
98
- 'prefer-const': 'error',
99
- 'prefer-rest-params': 'error',
100
- 'prefer-spread': 'error',
101
- 'rest-spread-spacing': ['error', 'never'],
102
- 'symbol-description': 'error',
103
- 'template-curly-spacing': 'error',
104
- 'quote-props': ['error', 'as-needed'],
105
- radix: 'error',
106
- 'require-await': 'error',
107
- 'spaced-comment': [
108
- 'error',
109
- 'always',
110
- {
111
- markers: ['/']
112
- }
113
- ],
114
- 'wrap-iife': 'error',
115
- yoda: 'error'
116
- };
117
-
118
- const tseslintRules = {
119
- '@typescript-eslint/no-useless-constructor': 'error',
120
- '@typescript-eslint/explicit-function-return-type': 'off',
121
- '@typescript-eslint/no-this-alias': 'off',
122
- '@typescript-eslint/no-unsafe-argument': 'off',
123
- '@typescript-eslint/no-unsafe-member-access': 'off',
124
- '@typescript-eslint/no-unsafe-call': 'off',
125
- '@typescript-eslint/no-unsafe-assignment': 'off',
126
- '@typescript-eslint/no-unsafe-return': 'off',
127
- '@typescript-eslint/no-floating-promises': 'off',
128
- '@typescript-eslint/no-explicit-any': 'off',
129
- '@typescript-eslint/no-duplicate-type-constituents': 'off',
130
- '@typescript-eslint/no-redundant-type-constituents': 'off', // TODO: olegpetriienko | 09/19/2023 | Delete this overriding and fix the ESLint errors
131
- '@typescript-eslint/explicit-module-boundary-types': 'off',
132
- '@typescript-eslint/restrict-plus-operands': 'off',
133
- '@typescript-eslint/no-misused-promises': 'off',
134
- '@typescript-eslint/restrict-template-expressions': [
135
- 'error',
136
- {
137
- allowAny: true
138
- }
139
- ],
140
- '@typescript-eslint/array-type': [
141
- 'error',
142
- {
143
- default: 'array'
144
- }
145
- ],
146
- '@typescript-eslint/consistent-type-assertions': 'error',
147
- '@typescript-eslint/dot-notation': 'error',
148
- '@typescript-eslint/explicit-member-accessibility': [
149
- 'off',
150
- {
151
- accessibility: 'explicit'
152
- }
153
- ],
154
- '@typescript-eslint/member-ordering': 'off',
155
- '@typescript-eslint/naming-convention': [
156
- 'warn',
157
- {
158
- selector: 'variableLike',
159
- format: ['camelCase', 'snake_case'] // We allow snake_case for variables as there are some from the BE in such format
160
- },
161
- {
162
- selector: 'typeLike',
163
- format: ['PascalCase']
164
- },
165
- {
166
- selector: 'enumMember',
167
- format: ['PascalCase', 'snake_case'] // We allow snake_case for variables as there are some from the BE in such format
168
- }
169
- ],
170
- '@typescript-eslint/no-empty-function': 'off',
171
- '@typescript-eslint/no-inferrable-types': [
172
- 'error',
173
- {
174
- ignoreParameters: true
175
- }
176
- ],
177
- '@typescript-eslint/no-parameter-properties': 'off',
178
- '@typescript-eslint/no-shadow': [
179
- 'error',
180
- {
181
- hoist: 'all'
182
- }
183
- ],
184
- '@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
185
- '@typescript-eslint/no-use-before-define': 'error',
186
- '@typescript-eslint/no-empty-interface': [
187
- 'error',
188
- { allowSingleExtends: true }
189
- ],
190
- '@typescript-eslint/no-var-requires': 'error',
191
- '@typescript-eslint/prefer-for-of': 'warn',
192
- '@typescript-eslint/prefer-function-type': 'error',
193
- '@typescript-eslint/prefer-includes': 'error',
194
- '@typescript-eslint/prefer-string-starts-ends-with': 'error',
195
- '@typescript-eslint/triple-slash-reference': [
196
- 'error',
197
- {
198
- path: 'always',
199
- types: 'prefer-import',
200
- lib: 'always'
201
- }
202
- ],
203
- '@typescript-eslint/unified-signatures': 'error',
204
- '@typescript-eslint/no-unnecessary-type-assertion': 'error',
205
- '@typescript-eslint/no-deprecated': 'error',
206
- '@typescript-eslint/no-empty-object-type': 'error'
207
- };
208
-
209
- const unicornRules = {
210
- 'unicorn/no-nested-ternary': 'off',
211
- 'unicorn/no-array-reduce': 'off',
212
- 'unicorn/no-array-for-each': 'off',
213
- 'unicorn/prefer-code-point': 'off',
214
- 'unicorn/prefer-event-target': 'off',
215
- 'unicorn/prefer-global-this': 'off',
216
- 'unicorn/no-array-method-this-argument': 'off',
217
- 'unicorn/empty-brace-spaces': 'off',
218
- 'unicorn/no-object-as-default-parameter': 'off',
219
- 'unicorn/no-null': 'off',
220
- 'unicorn/no-this-alias': 'off',
221
- 'unicorn/no-this-assignment': 'off',
222
- 'unicorn/prefer-top-level-await': 'off',
223
- 'unicorn/numeric-separators-style': [
224
- 'error',
225
- {
226
- onlyIfContainsSeparator: true
227
- }
228
- ],
229
- 'unicorn/prefer-switch': 'off',
230
- 'unicorn/prevent-abbreviations': 'off',
231
- 'unicorn/consistent-function-scoping': [
232
- 'error',
233
- {
234
- checkArrowFunctions: false
235
- }
236
- ]
237
- };
238
-
239
- const importRules = {
240
- 'import/no-deprecated': 'warn',
241
- 'import/order': 'error'
242
- };
243
-
244
- const jsdocRules = {
245
- 'jsdoc/check-alignment': 'error',
246
- 'jsdoc/check-indentation': 'error',
247
- 'jsdoc/no-types': 'error'
248
- };
249
-
250
- const litRules = {
251
- 'lit/no-invalid-html': 'error',
252
- 'lit/no-value-attribute': 'error',
253
- 'lit/attribute-value-entities': 'error',
254
- 'lit/binding-positions': 'error',
255
- 'lit/no-invalid-escape-sequences': 'error',
256
- 'lit/no-legacy-template-syntax': 'error',
257
- 'lit/no-private-properties': 'error',
258
- 'lit/no-template-arrow': 'warn',
259
- 'lit/no-template-map': 'warn',
260
- 'lit/no-useless-template-literals': 'error',
261
- 'lit/quoted-expressions': 'error',
262
- 'lit/value-after-constraints': 'error'
263
- };
264
-
265
- const wcRules = {
266
- // Web Components rules
267
- 'wc/guard-super-call': 'error',
268
- 'wc/no-constructor-params': 'error',
269
- 'wc/no-typos': 'error'
270
- };
271
-
272
- export default tseslint.config(
273
- ...tseslint.configs.recommended,
274
- {
275
- files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
276
- plugins: {
277
- lit: litPlugin,
278
- wc: wcPlugin,
279
- jsdoc: jsdocPlugin,
280
- import: importPlugin
281
- },
282
- languageOptions: {
283
- ecmaVersion: 2021,
284
- sourceType: 'module',
285
- parser: tseslint.parser,
286
- parserOptions: {
287
- project: './tsconfig.json'
288
- }
289
- },
290
- rules: {
291
- ...coreRules,
292
- ...importRules,
293
- ...jsdocRules,
294
- ...litRules,
295
- ...wcRules,
296
- ...tseslintRules
297
- }
298
- },
299
- // region Unicorn configs
300
- pluginUnicorn.configs['flat/recommended'],
301
- {
302
- files: ['**/*.ts', '**/*.tsx', '**/*.vue'],
303
- rules: {
304
- ...unicornRules
305
- }
306
- },
307
- {
308
- files: ['**/*.html'],
309
- rules: {
310
- 'unicorn/no-empty-file': 'off' // Had to added this rule as it was failing on the template files
311
- }
312
- },
313
- eslintPluginPrettier
314
- );
@@ -1,79 +0,0 @@
1
- import { defineConfig, devices } from '@playwright/test';
2
-
3
- /**
4
- * Read environment variables from file.
5
- * https://github.com/motdotla/dotenv
6
- */
7
- // import dotenv from 'dotenv';
8
- // import path from 'path';
9
- // dotenv.config({ path: path.resolve(__dirname, '.env') });
10
-
11
- /**
12
- * See https://playwright.dev/docs/test-configuration.
13
- */
14
- export default defineConfig({
15
- testDir: './tests',
16
- /* Run tests in files in parallel */
17
- fullyParallel: true,
18
- /* Fail the build on CI if you accidentally left test.only in the source code. */
19
- forbidOnly: !!process.env.CI,
20
- /* Retry on CI only */
21
- retries: process.env.CI ? 2 : 0,
22
- /* Opt out of parallel tests on CI. */
23
- workers: process.env.CI ? 1 : undefined,
24
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
25
- reporter: 'html',
26
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
27
- use: {
28
- /* Base URL to use in actions like `await page.goto('/')`. */
29
- // baseURL: 'http://127.0.0.1:3000',
30
-
31
- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
32
- trace: 'on-first-retry'
33
- },
34
-
35
- /* Configure projects for major browsers */
36
- projects: [
37
- {
38
- name: 'chromium',
39
- use: { ...devices['Desktop Chrome'] }
40
- },
41
-
42
- {
43
- name: 'firefox',
44
- use: { ...devices['Desktop Firefox'] }
45
- },
46
-
47
- {
48
- name: 'webkit',
49
- use: { ...devices['Desktop Safari'] }
50
- }
51
-
52
- /* Test against mobile viewports. */
53
- // {
54
- // name: 'Mobile Chrome',
55
- // use: { ...devices['Pixel 5'] },
56
- // },
57
- // {
58
- // name: 'Mobile Safari',
59
- // use: { ...devices['iPhone 12'] },
60
- // },
61
-
62
- /* Test against branded browsers. */
63
- // {
64
- // name: 'Microsoft Edge',
65
- // use: { ...devices['Desktop Edge'], channel: 'msedge' },
66
- // },
67
- // {
68
- // name: 'Google Chrome',
69
- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
70
- // },
71
- ]
72
-
73
- /* Run your local dev server before starting the tests */
74
- // webServer: {
75
- // command: 'npm run start',
76
- // url: 'http://127.0.0.1:3000',
77
- // reuseExistingServer: !process.env.CI,
78
- // },
79
- });