@alexlit/lint-kit 103.0.0 → 105.0.0

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 (146) hide show
  1. package/.lintstagedrc.js +1 -2
  2. package/.markdownlintrc.js +1 -1
  3. package/.stylelintrc.js +1 -4
  4. package/README.md +1 -1
  5. package/package.json +16 -14
  6. package/packages/config-commitlint/CHANGELOG.md +7 -0
  7. package/packages/config-commitlint/README.md +28 -0
  8. package/packages/config-commitlint/index.js +3 -0
  9. package/packages/config-commitlint/package.json +38 -0
  10. package/packages/config-eslint/CHANGELOG.md +37 -0
  11. package/packages/config-eslint/README.md +69 -0
  12. package/packages/config-eslint/TODO.md +6 -0
  13. package/packages/config-eslint/dictionaries/index.js +462 -0
  14. package/packages/config-eslint/dictionaries/programming/bash.js +25 -0
  15. package/packages/config-eslint/dictionaries/programming/django.js +2345 -0
  16. package/packages/config-eslint/dictionaries/programming/elixir.js +64 -0
  17. package/packages/config-eslint/dictionaries/programming/go.js +7748 -0
  18. package/packages/config-eslint/dictionaries/programming/java.js +33527 -0
  19. package/packages/config-eslint/dictionaries/programming/latex.js +675 -0
  20. package/packages/config-eslint/dictionaries/programming/lua.js +394 -0
  21. package/packages/config-eslint/dictionaries/programming/php.js +9788 -0
  22. package/packages/config-eslint/dictionaries/programming/python.js +367 -0
  23. package/packages/config-eslint/dictionaries/programming/ruby.js +357 -0
  24. package/packages/config-eslint/dictionaries/programming/rust.js +115 -0
  25. package/packages/config-eslint/dictionaries/programming/scala.js +2755 -0
  26. package/packages/config-eslint/dictionaries/specialized/html-symbol-entities.js +1118 -0
  27. package/packages/config-eslint/dictionaries/specialized/lorem-ipsum.js +359 -0
  28. package/packages/config-eslint/index.js +225 -0
  29. package/packages/config-eslint/package.json +87 -0
  30. package/packages/config-eslint/plugins/array-func.js +21 -0
  31. package/packages/config-eslint/plugins/compat.js +8 -0
  32. package/packages/config-eslint/plugins/decorator-position.js +16 -0
  33. package/packages/config-eslint/plugins/eslint-comments.js +10 -0
  34. package/packages/config-eslint/plugins/etc.js +14 -0
  35. package/packages/config-eslint/plugins/ext.js +13 -0
  36. package/packages/config-eslint/plugins/filenames.js +39 -0
  37. package/packages/config-eslint/plugins/import.js +72 -0
  38. package/packages/config-eslint/plugins/jsdoc.js +33 -0
  39. package/packages/config-eslint/plugins/jsx-a11y.js +6 -0
  40. package/packages/config-eslint/plugins/lit-a11y.js +6 -0
  41. package/packages/config-eslint/plugins/lit.js +10 -0
  42. package/packages/config-eslint/plugins/more.js +18 -0
  43. package/packages/config-eslint/plugins/no-await-in-promise.js +6 -0
  44. package/packages/config-eslint/plugins/no-constructor-bind.js +9 -0
  45. package/packages/config-eslint/plugins/no-explicit-type-exports.js +8 -0
  46. package/packages/config-eslint/plugins/no-inferred-method-name.js +8 -0
  47. package/packages/config-eslint/plugins/no-loops.js +8 -0
  48. package/packages/config-eslint/plugins/no-secrets.js +13 -0
  49. package/packages/config-eslint/plugins/no-use-extend-native.js +6 -0
  50. package/packages/config-eslint/plugins/nuxt.js +10 -0
  51. package/packages/config-eslint/plugins/optional/node.js +6 -0
  52. package/packages/config-eslint/plugins/prettier.js +25 -0
  53. package/packages/config-eslint/plugins/promise.js +11 -0
  54. package/packages/config-eslint/plugins/quasar.js +6 -0
  55. package/packages/config-eslint/plugins/regexp.js +8 -0
  56. package/packages/config-eslint/plugins/security.js +11 -0
  57. package/packages/config-eslint/plugins/simple-import-sort.js +9 -0
  58. package/packages/config-eslint/plugins/sonar.js +6 -0
  59. package/packages/config-eslint/plugins/sort-class-members.js +299 -0
  60. package/packages/config-eslint/plugins/sort-destructure-keys.js +11 -0
  61. package/packages/config-eslint/plugins/sort-keys-fix.js +8 -0
  62. package/packages/config-eslint/plugins/spellcheck.js +19 -0
  63. package/packages/config-eslint/plugins/sql.js +27 -0
  64. package/packages/config-eslint/plugins/tanstack-query.js +5 -0
  65. package/packages/config-eslint/plugins/testing-library.js +10 -0
  66. package/packages/config-eslint/plugins/typescript/allow-boolean-property-list.const.js +38 -0
  67. package/packages/config-eslint/plugins/typescript/boolean-prefixes.const.js +11 -0
  68. package/packages/config-eslint/plugins/typescript/english-verbs.const.js +3368 -0
  69. package/packages/config-eslint/plugins/typescript/index.js +154 -0
  70. package/packages/config-eslint/plugins/typescript-sort-keys.js +6 -0
  71. package/packages/config-eslint/plugins/unicorn.js +66 -0
  72. package/packages/config-eslint/plugins/unused-imports.js +18 -0
  73. package/packages/config-eslint/plugins/vitest.js +17 -0
  74. package/packages/config-eslint/plugins/vue-i18n.js +35 -0
  75. package/packages/config-eslint/plugins/vue.js +268 -0
  76. package/packages/config-eslint/plugins/vuejs-accessibility.js +21 -0
  77. package/packages/config-eslint/plugins/wc.js +6 -0
  78. package/packages/config-eslint/plugins/write-good-comments.js +9 -0
  79. package/packages/config-htmllint/CHANGELOG.md +7 -0
  80. package/packages/config-htmllint/README.md +20 -0
  81. package/packages/config-htmllint/index.js +30 -0
  82. package/packages/config-htmllint/package.json +39 -0
  83. package/packages/config-htmllint/test/html.html +335 -0
  84. package/packages/config-markdownlint/CHANGELOG.md +9 -0
  85. package/packages/config-markdownlint/README.md +16 -0
  86. package/packages/config-markdownlint/index.js +17 -0
  87. package/packages/config-markdownlint/package.json +37 -0
  88. package/packages/config-markdownlint/test/deepin-2.md +106 -0
  89. package/packages/config-npmlint/CHANGELOG.md +7 -0
  90. package/packages/config-npmlint/README.md +18 -0
  91. package/packages/config-npmlint/index.json +3 -0
  92. package/packages/config-npmlint/package.json +42 -0
  93. package/packages/config-prettier/CHANGELOG.md +7 -0
  94. package/packages/config-prettier/README.md +16 -0
  95. package/packages/config-prettier/index.js +31 -0
  96. package/packages/config-prettier/package.json +48 -0
  97. package/packages/config-prettier/plugins/jsdoc.js +6 -0
  98. package/packages/config-prettier/plugins/pug.js +7 -0
  99. package/packages/config-prettier/plugins/sort-json.js +4 -0
  100. package/packages/config-prettier/plugins/svelte.js +7 -0
  101. package/packages/config-prettier/plugins/xml.js +4 -0
  102. package/packages/config-prettier/test/Migrations.sol +19 -0
  103. package/packages/config-prettier/test/jsdoc.js +27 -0
  104. package/packages/config-prettier/test/json.json +28 -0
  105. package/packages/config-prettier/test/pug.jade +14 -0
  106. package/packages/config-prettier/test/ruby.example +13 -0
  107. package/packages/config-prettier/test/sql.sql +6 -0
  108. package/packages/config-prettier/test/svelte.svelte +20 -0
  109. package/packages/config-prettier/test/svg.svg +67 -0
  110. package/packages/config-prettier/test/twig.twig +17 -0
  111. package/packages/config-prettier/test/xml.xml +43 -0
  112. package/packages/config-stylelint/CHANGELOG.md +7 -0
  113. package/packages/config-stylelint/README.md +38 -0
  114. package/packages/config-stylelint/index.js +145 -0
  115. package/packages/config-stylelint/package.json +60 -0
  116. package/packages/config-stylelint/plugins/a11y.js +12 -0
  117. package/packages/config-stylelint/plugins/at-rule-no-children.js +13 -0
  118. package/packages/config-stylelint/plugins/color-format.js +10 -0
  119. package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +8 -0
  120. package/packages/config-stylelint/plugins/high-performance-animation.js +14 -0
  121. package/packages/config-stylelint/plugins/no-nested-media.js +8 -0
  122. package/packages/config-stylelint/plugins/no-unresolved-module.js +25 -0
  123. package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +15 -0
  124. package/packages/config-stylelint/plugins/optional/gamut.js +8 -0
  125. package/packages/config-stylelint/plugins/optional/logical-css.js +10 -0
  126. package/packages/config-stylelint/plugins/optional/no-indistinguishable-colors.js +8 -0
  127. package/packages/config-stylelint/plugins/optional/use-logical-spec.js +8 -0
  128. package/packages/config-stylelint/plugins/order.js +486 -0
  129. package/packages/config-stylelint/plugins/prettier.js +8 -0
  130. package/packages/config-stylelint/plugins/scss.js +83 -0
  131. package/packages/config-stylelint/plugins/selector-no-empty.js +8 -0
  132. package/packages/config-stylelint/plugins/use-nesting.js +8 -0
  133. package/packages/config-stylelint/plugins/vue.js +5 -0
  134. package/packages/config-stylelint/test/button.scss +7 -0
  135. package/packages/config-stylelint/test/comp-vue.vue +36 -0
  136. package/packages/config-stylelint/test/logical.scss +35 -0
  137. package/packages/config-stylelint/test/scss.scss +457 -0
  138. package/packages/config-stylelint/test/tailwind.css +8 -0
  139. package/scripts/lint.sh +7 -5
  140. package/scripts/semver.sh +17 -4
  141. package/scripts/up.sh +24 -4
  142. package/scripts/init.sh +0 -46
  143. package/scripts/ou.sh +0 -45
  144. package/scripts/publish.sh +0 -5
  145. package/scripts/upgrade.sh +0 -19
  146. package/scripts/version.sh +0 -4
@@ -0,0 +1,83 @@
1
+ /* eslint-disable unicorn/no-null */
2
+ const KEBAB_CASE_PATTERN = '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$';
3
+
4
+ /** @see [stylelint-scss](https://github.com/kristerkari/stylelint-scss) */
5
+ module.exports = {
6
+ extends: ['stylelint-config-standard-scss'],
7
+
8
+ plugins: ['stylelint-scss'],
9
+
10
+ rules: {
11
+ 'scss/at-each-key-value-single-line': true,
12
+ 'scss/at-else-if-parentheses-space-before': 'always',
13
+ 'scss/at-extend-no-missing-placeholder': true,
14
+ 'scss/at-function-pattern': KEBAB_CASE_PATTERN,
15
+ 'scss/at-if-no-null': true,
16
+ 'scss/at-import-no-partial-leading-underscore': true,
17
+ 'scss/at-import-partial-extension': 'always',
18
+ 'scss/at-mixin-argumentless-call-parentheses': 'always',
19
+ 'scss/at-mixin-named-arguments': 'always',
20
+ 'scss/at-mixin-parentheses-space-before': 'never',
21
+ 'scss/at-mixin-pattern': KEBAB_CASE_PATTERN,
22
+ 'scss/at-rule-conditional-no-parentheses': true,
23
+
24
+ 'scss/at-rule-no-unknown': [
25
+ true,
26
+ {
27
+ ignoreAtRules: [
28
+ 'apply',
29
+ 'container',
30
+ 'responsive',
31
+ 'screen',
32
+ 'tailwind',
33
+ 'variants',
34
+ ],
35
+ },
36
+ ],
37
+
38
+ 'scss/at-use-no-unnamespaced': true,
39
+ 'scss/comment-no-empty': true,
40
+ 'scss/comment-no-loud': null,
41
+ 'scss/declaration-nested-properties': 'never',
42
+ 'scss/declaration-nested-properties-no-divided-groups': true,
43
+ 'scss/dimension-no-non-numeric-values': true,
44
+ 'scss/dollar-variable-default': [true, { ignore: 'local' }],
45
+
46
+ 'scss/dollar-variable-empty-line-before': [
47
+ 'always',
48
+ {
49
+ except: ['first-nested', 'after-comment', 'after-dollar-variable'],
50
+ },
51
+ ],
52
+
53
+ 'scss/dollar-variable-first-in-block': [
54
+ true,
55
+ {
56
+ except: [],
57
+ ignore: ['comments', 'imports'],
58
+ },
59
+ ],
60
+
61
+ 'scss/dollar-variable-no-missing-interpolation': true,
62
+ 'scss/dollar-variable-no-namespaced-assignment': true,
63
+ 'scss/dollar-variable-pattern': KEBAB_CASE_PATTERN,
64
+ 'scss/double-slash-comment-whitespace-inside': 'always',
65
+ 'scss/function-color-relative': true,
66
+ 'scss/function-no-unknown': [true, { ignoreFunctions: ['v-bind'] }],
67
+ 'scss/function-quote-no-quoted-strings-inside': true,
68
+ 'scss/function-unquote-no-unquoted-strings-inside': true,
69
+ 'scss/map-keys-quotes': 'always',
70
+ 'scss/no-duplicate-dollar-variables': true,
71
+ 'scss/no-duplicate-mixins': true,
72
+ 'scss/no-global-function-names': null,
73
+ 'scss/operator-no-newline-after': null,
74
+ 'scss/operator-no-unspaced': true,
75
+ 'scss/percent-placeholder-pattern': KEBAB_CASE_PATTERN,
76
+ 'scss/selector-nest-combinators': 'always',
77
+
78
+ 'scss/selector-no-redundant-nesting-selector': [
79
+ true,
80
+ { ignoreKeywords: [] },
81
+ ],
82
+ },
83
+ };
@@ -0,0 +1,8 @@
1
+ /** @see [stylelint-selector-no-empty](https://github.com/ssivanatarajan/stylelint-selector-no-empty) */
2
+ module.exports = {
3
+ plugins: ['stylelint-selector-no-empty'],
4
+
5
+ rules: {
6
+ 'plugin/stylelint-selector-no-empty': true,
7
+ },
8
+ };
@@ -0,0 +1,8 @@
1
+ /** @see [stylelint-use-nesting](https://github.com/csstools/stylelint-use-nesting) */
2
+ module.exports = {
3
+ plugins: ['stylelint-use-nesting'],
4
+
5
+ rules: {
6
+ 'csstools/use-nesting': ['always', { except: [], syntax: 'scss' }],
7
+ },
8
+ };
@@ -0,0 +1,5 @@
1
+ /** @see [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue) */
2
+
3
+ module.exports = {
4
+ extends: 'stylelint-config-recommended-vue',
5
+ };
@@ -0,0 +1,7 @@
1
+ @import 'logical.scss';
2
+
3
+ @use 'sass:color';
4
+ @use 'sass:math';
5
+
6
+ $test2: blue !default;
7
+ $test3: blue !default;
@@ -0,0 +1,36 @@
1
+ <style lang="scss">
2
+ .inset {
3
+ bottom: 0;
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ }
8
+
9
+ .margin {
10
+ margin-left: 0;
11
+ }
12
+
13
+ .padding {
14
+ padding-left: 0;
15
+ padding-right: 0;
16
+ }
17
+
18
+ .float {
19
+ float: left;
20
+ }
21
+
22
+ .text-align {
23
+ text-align: left;
24
+ }
25
+
26
+ .ui-autocomplete__search {
27
+ background-color: white;
28
+ border-bottom: 1px solid var(--ui-color-border);
29
+ left: 0;
30
+ margin-bottom: 0;
31
+ padding: 16px;
32
+ position: sticky;
33
+ transform: translateY(-16px);
34
+ z-index: 1;
35
+ }
36
+ </style>
@@ -0,0 +1,35 @@
1
+ .inset {
2
+ bottom: 0;
3
+ left: 0;
4
+ right: 0;
5
+ top: 0;
6
+ }
7
+
8
+ .margin {
9
+ margin-left: 0;
10
+ }
11
+
12
+ .padding {
13
+ padding-left: 0;
14
+ padding-right: 0;
15
+ }
16
+
17
+ .float {
18
+ float: left;
19
+ }
20
+
21
+ .text-align {
22
+ text-align: left;
23
+ }
24
+
25
+ .ui-autocomplete__search {
26
+ background-color: white;
27
+ border-bottom: 1px solid var(--ui-color-border);
28
+ left: 0;
29
+ margin-bottom: 0;
30
+ padding: 16px;
31
+ position: sticky;
32
+ top: 16px;
33
+ transform: translateY(-16px);
34
+ z-index: 1;
35
+ }
@@ -0,0 +1,457 @@
1
+ $font-weights: (
2
+ 'regular': 400,
3
+ 'medium': 500,
4
+ 'bold': 700,
5
+ ) !default;
6
+
7
+ @import 'logical.scss';
8
+
9
+ @tailwind utility;
10
+
11
+ @use 'sass:map';
12
+ @use 'sass:color';
13
+
14
+ .example-1 {
15
+ display: inline;
16
+ }
17
+
18
+ .example {
19
+ color: rgb(0 0 0);
20
+
21
+ @screen sm {
22
+ color: rebeccapurple;
23
+ }
24
+
25
+ @media ($laptop) {
26
+ grid-template-columns: 1fr;
27
+ }
28
+
29
+ @media ($mobile-l) {
30
+ padding: 1rem 0;
31
+ }
32
+
33
+ @media (width >= 500px) and (width <= 600px) {
34
+ }
35
+
36
+ @media (width >= 640px) {
37
+ color: rebeccapurple;
38
+ }
39
+
40
+ &:hover,
41
+ &:focus {
42
+ color: rebeccapurple;
43
+ }
44
+ }
45
+
46
+ .test-s {
47
+ color: rgb(3 3 3);
48
+ grid-template-areas:
49
+ 'a a a d'
50
+ 'b b b b';
51
+ }
52
+
53
+ a {
54
+ color: black;
55
+ }
56
+
57
+ @each $key, $value in $font-weights {
58
+ $value: map.get($font-weights, $key);
59
+ }
60
+
61
+ s {
62
+ }
63
+
64
+ @keyframes slide-right {
65
+ }
66
+
67
+ @mixin variables {
68
+ --ui-button-icon-size: calc(
69
+ var(--ui-button-font-size) * var(--ui-button-line-height)
70
+ );
71
+ --ui-icon-default-background-color: var(
72
+ --ui-button-color,
73
+ var(--ui-color-primary)
74
+ );
75
+ --ui-button-padding: 8px;
76
+ --ui-button-font-size: 16px;
77
+ --ui-button-line-height: 1.5;
78
+ --ui-button-color: currentColor;
79
+ --ui-button-color--h: currentColor;
80
+ --ui-button-color--p: currentColor;
81
+ }
82
+
83
+ .a {
84
+ .a,
85
+ .b {
86
+ }
87
+
88
+ .a,
89
+ b {
90
+ }
91
+
92
+ a,
93
+ .b {
94
+ }
95
+
96
+ a,
97
+ b {
98
+ }
99
+
100
+ .a {
101
+ }
102
+
103
+ .b {
104
+ }
105
+
106
+ * {
107
+ }
108
+
109
+ &[dir] {
110
+ }
111
+
112
+ a {
113
+ }
114
+
115
+ b {
116
+ }
117
+ }
118
+
119
+ .test {
120
+ transition: color 350ms ease-in;
121
+
122
+ @media screen and (prefers-reduced-motion: reduce) {
123
+ transition: none;
124
+ }
125
+ }
126
+
127
+ @mixin font-size-default {
128
+ font-size: 16px;
129
+ }
130
+
131
+ .test2 {
132
+ @media screen and (prefers-reduced-motion: reduce) {
133
+ animation: none;
134
+ }
135
+ }
136
+
137
+ header {
138
+ &:hover,
139
+ &:focus {
140
+ }
141
+ }
142
+
143
+ .l__button--3 {
144
+ @extend %sdf;
145
+
146
+ @include ddf();
147
+ @include variables();
148
+ @include ddf();
149
+ @include ddf();
150
+ @include ddf();
151
+
152
+ @apply ddd ring-cyan-500
153
+ transition-all duration-500
154
+ demo-dark:ring-cyan-400
155
+ ring-2 absolute left-1/2 top-1/2 w-4 h-4 -mt-2 -ml-2 flex items-center justify-center bg-white rounded-full shadow red-500 bg-red-200;
156
+
157
+ align-items: center;
158
+ appearance: none;
159
+ background-color: var(
160
+ --ui-button-color,
161
+ var(--ui-icon-default-background-color)
162
+ );
163
+ border: none;
164
+ border-radius: 4px;
165
+ cursor: pointer;
166
+ display: inline-flex;
167
+ flex-grow: 0;
168
+ flex-shrink: 0;
169
+ font-stretch: normal;
170
+ font-style: normal;
171
+ font-weight: 600;
172
+ height: var(--height);
173
+ letter-spacing: normal;
174
+ overflow: hidden;
175
+ position: relative;
176
+ text-align: center;
177
+ text-decoration: none;
178
+ top: 0;
179
+ transition-duration: 0s;
180
+ user-select: none;
181
+
182
+ @supports (width: 0) {
183
+ }
184
+
185
+ &:hover,
186
+ &:focus {
187
+ background-color: var(
188
+ --ui-button-color--h,
189
+ var(--ui-icon-default-background-color)
190
+ );
191
+ text-decoration: none;
192
+ }
193
+
194
+ &:active {
195
+ background-color: var(
196
+ --ui-button-color--p,
197
+ var(--ui-icon-default-background-color)
198
+ );
199
+ outline: none;
200
+ }
201
+
202
+ &:disabled {
203
+ cursor: not-allowed;
204
+ opacity: 0.5;
205
+
206
+ &:hover,
207
+ &:focus,
208
+ &:active {
209
+ background-color: var(--ui-button-color);
210
+ }
211
+ }
212
+
213
+ &::before {
214
+ }
215
+
216
+ &::after {
217
+ color: rebeccapurple;
218
+ }
219
+
220
+ &::file-selector-button {
221
+ }
222
+
223
+ &::-moz-range-track {
224
+ }
225
+
226
+ ::v-deep {
227
+ .test3 {
228
+ .test4 {
229
+ .test5 {
230
+ .test6 {
231
+ @media ($mobile-l) {
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+
239
+ .animation {
240
+ @media (prefers-reduced-motion: reduce) {
241
+ animation: none;
242
+ content-visibility: hidden;
243
+ }
244
+ }
245
+
246
+ .f {
247
+ }
248
+
249
+ &.f {
250
+ }
251
+
252
+ + .ui-button {
253
+ margin-left: var(--ui-button-padding);
254
+
255
+ @media ($mobile-l) {
256
+ margin-left: calc(var(--ui-button-padding) / 2);
257
+ }
258
+ }
259
+
260
+ ~ .ui-button {
261
+ margin-left: var(--ui-button-padding);
262
+
263
+ @media ($mobile-l) {
264
+ margin-left: calc(var(--ui-button-padding) / 2);
265
+ }
266
+ }
267
+
268
+ ~ .ui-buttons {
269
+ margin-left: var(--ui-button-padding); // dsf
270
+
271
+ @media ($mobile-l) {
272
+ margin-left: calc(var(--ui-button-padding) / 2);
273
+ }
274
+ }
275
+
276
+ > .ui-button {
277
+ margin-left: var(--ui-button-padding);
278
+
279
+ @media ($mobile-l) {
280
+ margin-left: calc(var(--ui-button-padding) / 2);
281
+ }
282
+ }
283
+
284
+ &.ui-button {
285
+ + a {
286
+ margin-left: var(--ui-button-padding);
287
+
288
+ @media ($mobile-l) {
289
+ margin-left: calc(var(--ui-button-padding) / 2);
290
+ }
291
+ }
292
+ }
293
+
294
+ * {
295
+ }
296
+
297
+ &[test] {
298
+ }
299
+
300
+ [test] {
301
+ }
302
+
303
+ &--block {
304
+ width: 100%;
305
+ }
306
+
307
+ &--color {
308
+ &--light,
309
+ &--white {
310
+ --ui-button-icon-size: calc(
311
+ var(--ui-button-font-size) * var(--ui-button-line-height) - 2px
312
+ );
313
+
314
+ border: solid 1px var(--ui-color-input-border);
315
+ color: var(--ui-color-secondary);
316
+ }
317
+
318
+ &--link {
319
+ --ui-button-icon-size: calc(
320
+ var(--ui-button-font-size) * var(--ui-button-line-height) - 2px
321
+ );
322
+
323
+ background-color: transparent !important;
324
+ border: solid 1px var(--ui-color-input-border);
325
+ color: var(--ui-button-color);
326
+
327
+ &:hover,
328
+ &:focus {
329
+ color: var(
330
+ --ui-button-color--h,
331
+ var(--ui-icon-default-background-color)
332
+ );
333
+ }
334
+
335
+ &:active {
336
+ color: var(
337
+ --ui-button-color--p,
338
+ var(--ui-icon-default-background-color)
339
+ );
340
+ }
341
+ }
342
+ }
343
+
344
+ &--size {
345
+ &--default {
346
+ --ui-button-padding: 8px;
347
+ --ui-button-font-size: 16px;
348
+ --ui-button-line-height: 1.5;
349
+ }
350
+
351
+ &--large {
352
+ --ui-button-padding: 16px;
353
+ --ui-button-font-size: 20px;
354
+ --ui-button-line-height: 1.2;
355
+ }
356
+
357
+ &--small {
358
+ --ui-button-padding: 8px;
359
+ --ui-button-font-size: 14px;
360
+ --ui-button-line-height: 1.14;
361
+ }
362
+ }
363
+ }
364
+
365
+ .ui-textarea__field {
366
+ background-color: white;
367
+ border: 1px solid var(--ui-color-input-border);
368
+ border-radius: 4px;
369
+ box-shadow: inset 0 0 0 1px transparent;
370
+ color: var(--ui-color-article-text);
371
+ display: block;
372
+ font-size: 16px;
373
+ font-stretch: normal;
374
+ font-style: normal;
375
+ font-weight: normal;
376
+ letter-spacing: normal;
377
+ line-height: 1.5;
378
+ min-height: 58px;
379
+ min-width: 0;
380
+ padding: 16px;
381
+ position: relative;
382
+ resize: vertical;
383
+ transition-duration: 0.1s;
384
+ width: 100%;
385
+
386
+ &:focus {
387
+ background-color: white;
388
+ border-color: var(--ui-color-outline);
389
+ box-shadow: inset 0 0 0 1px var(--ui-color-outline);
390
+ outline: none;
391
+
392
+ @at-root .ui-textarea[class*='--invalid'] & {
393
+ border-color: var(--ui-color-danger);
394
+ box-shadow: inset 0 0 0 1px var(--ui-color-danger);
395
+ }
396
+
397
+ @at-root .ui-textarea[class*='--invalid'] .ui-textarea__prefix + & {
398
+ border-left-color: var(--ui-color-danger);
399
+ }
400
+ }
401
+
402
+ &::placeholder {
403
+ color: var(--ui-color-placeholder);
404
+ }
405
+
406
+ .test {
407
+ outline: none;
408
+ }
409
+
410
+ &[disabled] {
411
+ background-color: var(--ui-color-light);
412
+ border-color: var(--ui-color-light);
413
+ }
414
+ }
415
+
416
+ .ui-button__text-wrap {
417
+ align-items: center;
418
+ display: flex;
419
+ flex-grow: 1;
420
+ font-size: var(--ui-button-font-size);
421
+ justify-content: center;
422
+ line-height: var(--ui-button-line-height);
423
+ padding: var(--ui-button-padding);
424
+ }
425
+
426
+ .ui-button__prefix {
427
+ align-items: center;
428
+ display: flex;
429
+ margin-right: 8px;
430
+
431
+ &:only-child {
432
+ margin-right: 0;
433
+ }
434
+ }
435
+
436
+ .ui-button__text {
437
+ position: relative;
438
+ }
439
+
440
+ .ui-button__suffix {
441
+ --ui-bitton-suffix-size: calc(
442
+ calc(var(--ui-button-padding) * 2) + var(--ui-button-icon-size)
443
+ );
444
+
445
+ align-items: center;
446
+ align-self: stretch;
447
+ background-color: var(--ui-button-color--h, transparent);
448
+ border-radius: 4px;
449
+ display: flex;
450
+ flex-shrink: 0;
451
+ justify-content: center;
452
+ width: var(--ui-bitton-suffix-size);
453
+
454
+ @at-root .ui-button[class*='--color--link'] & {
455
+ background-color: transparent !important;
456
+ }
457
+ }
@@ -0,0 +1,8 @@
1
+ @tailwind utility;
2
+
3
+ .test {
4
+ @apply blue ring-cyan-500 blue-
5
+ transition-all duration-500
6
+ demo-dark:ring-cyan-400
7
+ ring-2 absolute left-1/2 top-1/2 w-4 h-4 -mt-2 -ml-2 flex items-center justify-center bg-white rounded-full shadow red-500 bg-red-200;
8
+ }
package/scripts/lint.sh CHANGED
@@ -1,12 +1,14 @@
1
- # Launch generic linter
1
+ # Запускает линтеры
2
2
 
3
3
  OPTION=${1}
4
4
 
5
- COLOR_TITLE='\e[92m'
6
- COLOR_LINTERS='\e[33m'
7
- COLOR_DEFAULT='\e[39m'
5
+ DEFAULT='\e[39m'
6
+ GREEN='\e[92m'
7
+ YELLOW='\e[33m'
8
8
 
9
- echo -e "${COLOR_TITLE}linters: ${COLOR_LINTERS}eslint, htmllint, markdownlint, npmlint, stylelint, ${COLOR_DEFAULT}"
9
+ clear
10
+
11
+ echo -e "${YELLOW}Запускаю линтеры: ${GREEN}eslint, htmllint, markdownlint, npmlint, stylelint...${DEFAULT}"
10
12
 
11
13
  npm run lint:eslint --if-present ${OPTION}
12
14
  npm run lint:htmllint --if-present
package/scripts/semver.sh CHANGED
@@ -1,5 +1,18 @@
1
- # Update package version
1
+ # Обновляет версию пакета
2
2
 
3
- git add --all
4
- git commit -m 'chore: preparing for version update'
5
- npm version $1
3
+ VERSION=${1:-patch} # <major | minor | patch>
4
+
5
+ DEFAULT='\e[39m'
6
+ GREEN='\e[32m'
7
+ YELLOW='\e[33m'
8
+
9
+ CURRENT_DIR=${PWD##*/}
10
+
11
+ clear
12
+
13
+ echo -e "${YELLOW}Поднимаю ${GREEN}${VERSION}${YELLOW} версию пакета ${GREEN}${CURRENT_DIR}${YELLOW}...${DEFAULT}"
14
+
15
+ git add .
16
+ git commit -m "chore(${CURRENT_DIR}): preparing for version update"
17
+
18
+ standard-version --release-as ${VERSION} --releaseCommitMessageFormat "chore(release:${CURRENT_DIR}): {{currentTag}}"