@plumeria/eslint-plugin 12.0.2 → 12.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.
@@ -1,6 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validData = void 0;
4
+ const easingKeywords = [
5
+ 'ease',
6
+ 'linear',
7
+ 'ease-in',
8
+ 'ease-out',
9
+ 'ease-in-out',
10
+ 'step-start',
11
+ 'step-end',
12
+ ];
4
13
  const fontSizeSubValues = [
5
14
  'xx-small',
6
15
  'x-small',
@@ -13,7 +22,13 @@ const fontSizeSubValues = [
13
22
  'smaller',
14
23
  'larger',
15
24
  ];
16
- const lengthSubValues = ['max-content', 'min-content', 'fit-content'];
25
+ const lengthSubValues = [
26
+ 'max-content',
27
+ 'min-content',
28
+ 'fit-content',
29
+ 'stretch',
30
+ 'contain',
31
+ ];
17
32
  const widthKeywords = ['thin', 'medium', 'thick'];
18
33
  const alignKeywords = [
19
34
  'start',
@@ -144,7 +159,7 @@ const validData = {
144
159
  animationIterationCount: [],
145
160
  animationName: ['none', 'slide', 'bounce'],
146
161
  animationPlayState: [],
147
- animationTimingFunction: [],
162
+ animationTimingFunction: [...easingKeywords],
148
163
  aspectRatio: ['auto'],
149
164
  backdropFilter: ['none'],
150
165
  baselineShift: ['baseline', 'sub', 'super'],
@@ -169,7 +184,7 @@ const validData = {
169
184
  backgroundSize: ['auto', 'cover', 'contain'],
170
185
  blockSize: ['auto', ...lengthSubValues],
171
186
  boxDecorationBreak: ['slice', 'clone'],
172
- boxShadow: [],
187
+ boxShadow: ['none'],
173
188
  boxSizing: ['content-box', 'border-box'],
174
189
  breakAfter: [...breakBeforeAfterValues],
175
190
  breakBefore: [...breakBeforeAfterValues],
@@ -213,12 +228,12 @@ const validData = {
213
228
  zIndex: ['auto'],
214
229
  fontSize: [...fontSizeSubValues],
215
230
  fontWeight: ['normal', 'bold', 'lighter', 'bolder'],
216
- maxWidth: ['none', 'stretch', ...lengthSubValues],
217
- maxHeight: ['none', 'stretch', ...lengthSubValues],
218
- minWidth: ['none', 'stretch', ...lengthSubValues],
219
- minHeight: ['none', 'stretch', ...lengthSubValues],
220
- width: ['auto', 'stretch', ...lengthSubValues],
221
- height: ['auto', 'stretch', ...lengthSubValues],
231
+ maxWidth: ['none', ...lengthSubValues],
232
+ maxHeight: ['none', ...lengthSubValues],
233
+ minWidth: ['auto', ...lengthSubValues],
234
+ minHeight: ['auto', ...lengthSubValues],
235
+ width: ['auto', ...lengthSubValues],
236
+ height: ['auto', ...lengthSubValues],
222
237
  flexBasis: ['auto', 'content', ...lengthSubValues],
223
238
  gap: [],
224
239
  inset: ['auto'],
@@ -287,7 +302,7 @@ const validData = {
287
302
  'both',
288
303
  'none',
289
304
  ],
290
- clipPath: [],
305
+ clipPath: ['none'],
291
306
  clipRule: ['nonzero', 'evenodd'],
292
307
  colorInterpolation: ['auto', 'sRGB', 'linearRGB'],
293
308
  colorInterpolationFilters: ['auto', 'sRGB', 'linearRGB'],
@@ -571,10 +586,10 @@ const validData = {
571
586
  maskType: ['luminance', 'alpha'],
572
587
  mathDepth: ['auto-add'],
573
588
  mathStyle: ['normal', 'compact'],
574
- maxBlockSize: ['none', ...lengthSubValues],
575
- minBlockSize: ['none', ...lengthSubValues],
576
- maxInlineSize: ['none', ...lengthSubValues],
577
- minInlineSize: ['none', ...lengthSubValues],
589
+ maxBlockSize: ['none', 'auto', ...lengthSubValues],
590
+ minBlockSize: ['none', 'auto', ...lengthSubValues],
591
+ maxInlineSize: ['none', 'auto', ...lengthSubValues],
592
+ minInlineSize: ['none', 'auto', ...lengthSubValues],
578
593
  mixBlendMode: [
579
594
  'normal',
580
595
  'multiply',
@@ -776,11 +791,11 @@ const validData = {
776
791
  'optimizeLegibility',
777
792
  'geometricPrecision',
778
793
  ],
779
- textShadow: [],
794
+ textShadow: ['none'],
780
795
  textSizeAdjust: ['none', 'auto'],
781
796
  textTransform: [
782
797
  'none',
783
- 'captalize',
798
+ 'capitalize',
784
799
  'uppercase',
785
800
  'lowercase',
786
801
  'full-width',
@@ -825,7 +840,7 @@ const validData = {
825
840
  transitionDelay: [],
826
841
  transitionDuration: [],
827
842
  transitionProperty: ['none', 'all'],
828
- transitionTimingFunction: [],
843
+ transitionTimingFunction: [...easingKeywords],
829
844
  translate: ['none'],
830
845
  unicodeBidi: [
831
846
  'normal',
@@ -835,7 +850,7 @@ const validData = {
835
850
  'isolate-override',
836
851
  'plaintext',
837
852
  ],
838
- userSelect: ['none', 'auto', 'text', 'all'],
853
+ userSelect: ['none', 'auto', 'text', 'contain', 'all'],
839
854
  vectorEffect: [
840
855
  'none',
841
856
  'non-scaling-stroke',
@@ -853,7 +868,7 @@ const validData = {
853
868
  'top',
854
869
  'bottom',
855
870
  ],
856
- visibility: ['visible', 'hideen', 'collapse'],
871
+ visibility: ['visible', 'hidden', 'collapse'],
857
872
  whiteSpace: [
858
873
  'normal',
859
874
  'pre',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/eslint-plugin",
3
- "version": "12.0.2",
3
+ "version": "12.0.4",
4
4
  "description": "Plumeria ESLint plugin",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",