eslint-plugin-vuetify 2.5.1 → 2.5.3
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.
|
@@ -15,7 +15,7 @@ const replacements = new Map([[/^rounded-(r|l|tr|tl|br|bl)(-.*)?$/, ([side, rest
|
|
|
15
15
|
bl: 'bs'
|
|
16
16
|
}[side];
|
|
17
17
|
return `rounded-${side}${rest || ''}`;
|
|
18
|
-
}], [/^text-xs-(left|right|center|justify)$/, ([align]) => `text-${align}`], [/^hidden-(xs|sm|md|lg|xl)-only$/, ([breakpoint]) => `hidden-${breakpoint}`], ['scroll-y', 'overflow-y-auto'], ['hide-overflow', 'overflow-hidden'], ['show-overflow', 'overflow-visible'], ['no-wrap', 'text-no-wrap'], ['ellipsis', 'text-truncate'], ['left', 'float-left'], ['right', 'float-right'], ['display-4', 'text-h1'], ['display-3', 'text-h2'], ['display-2', 'text-h3'], ['display-1', 'text-h4'], ['headline', 'text-h5'], ['title', 'text-h6'], ['
|
|
18
|
+
}], [/^text-xs-(left|right|center|justify)$/, ([align]) => `text-${align}`], [/^hidden-(xs|sm|md|lg|xl)-only$/, ([breakpoint]) => `hidden-${breakpoint}`], ['scroll-y', 'overflow-y-auto'], ['hide-overflow', 'overflow-hidden'], ['show-overflow', 'overflow-visible'], ['no-wrap', 'text-no-wrap'], ['ellipsis', 'text-truncate'], ['left', 'float-left'], ['right', 'float-right'], ['display-4', 'text-h1'], ['display-3', 'text-h2'], ['display-2', 'text-h3'], ['display-1', 'text-h4'], ['headline', 'text-h5'], ['title', 'text-h6'], ['subheading', 'text-subtitle-1'], ['subtitle-1', 'text-subtitle-1'], ['subtitle-2', 'text-subtitle-2'], ['body-1', 'text-body-1'], ['body-2', 'text-body-2'], ['caption', 'text-caption'], ['overline', 'text-overline'], [/^transition-(fast-out-slow-in|linear-out-slow-in|fast-out-linear-in|ease-in-out|fast-in-fast-out|swing)$/, false]]);
|
|
19
19
|
|
|
20
20
|
// ------------------------------------------------------------------------------
|
|
21
21
|
// Rule Definition
|
|
@@ -144,7 +144,14 @@ const replacements = {
|
|
|
144
144
|
value: 'inverted'
|
|
145
145
|
},
|
|
146
146
|
outlined: 'border',
|
|
147
|
-
|
|
147
|
+
dense: {
|
|
148
|
+
name: 'density',
|
|
149
|
+
value: 'compact'
|
|
150
|
+
},
|
|
151
|
+
prominent: {
|
|
152
|
+
name: 'density',
|
|
153
|
+
value: 'prominent'
|
|
154
|
+
},
|
|
148
155
|
scrollOffScreen: false,
|
|
149
156
|
shaped: false,
|
|
150
157
|
short: false,
|
|
@@ -286,9 +293,11 @@ const replacements = {
|
|
|
286
293
|
},
|
|
287
294
|
round: 'rounded',
|
|
288
295
|
shaped: false,
|
|
289
|
-
text
|
|
290
|
-
|
|
291
|
-
|
|
296
|
+
text(attr) {
|
|
297
|
+
return !attr.directive && !attr.value || attr.directive && [true, false].includes(attr.value.expression.value) ? {
|
|
298
|
+
name: 'variant',
|
|
299
|
+
value: 'text'
|
|
300
|
+
} : true;
|
|
292
301
|
},
|
|
293
302
|
top: {
|
|
294
303
|
name: 'location',
|
|
@@ -417,6 +426,10 @@ const replacements = {
|
|
|
417
426
|
},
|
|
418
427
|
groupDesc: {
|
|
419
428
|
custom: 'group-by'
|
|
429
|
+
},
|
|
430
|
+
dense: {
|
|
431
|
+
name: 'density',
|
|
432
|
+
value: 'compact'
|
|
420
433
|
}
|
|
421
434
|
},
|
|
422
435
|
VDatePicker: {
|
|
@@ -425,8 +438,7 @@ const replacements = {
|
|
|
425
438
|
custom: 'separate month and year props'
|
|
426
439
|
},
|
|
427
440
|
locale: false,
|
|
428
|
-
localeFirstDayOfYear:
|
|
429
|
-
firstDayOfWeek: false,
|
|
441
|
+
localeFirstDayOfYear: 'firstDayOfYear',
|
|
430
442
|
dayFormat: false,
|
|
431
443
|
weekdayFormat: false,
|
|
432
444
|
monthFormat: false,
|
|
@@ -691,8 +703,8 @@ const replacements = {
|
|
|
691
703
|
VSlider: {
|
|
692
704
|
backgroundColor: false,
|
|
693
705
|
tickLabels: 'ticks',
|
|
694
|
-
ticks
|
|
695
|
-
|
|
706
|
+
ticks(attr) {
|
|
707
|
+
return !attr.directive && !attr.value || attr.directive && [true, false].includes(attr.value.expression.value) ? 'show-ticks' : true;
|
|
696
708
|
},
|
|
697
709
|
vertical: {
|
|
698
710
|
name: 'direction',
|
|
@@ -706,8 +718,8 @@ const replacements = {
|
|
|
706
718
|
VRangeSlider: {
|
|
707
719
|
backgroundColor: false,
|
|
708
720
|
tickLabels: 'ticks',
|
|
709
|
-
ticks
|
|
710
|
-
|
|
721
|
+
ticks(attr) {
|
|
722
|
+
return !attr.directive && !attr.value || attr.directive && [true, false].includes(attr.value.expression.value) ? 'show-ticks' : true;
|
|
711
723
|
},
|
|
712
724
|
vertical: {
|
|
713
725
|
name: 'direction',
|
|
@@ -830,6 +842,12 @@ const replacements = {
|
|
|
830
842
|
link: false,
|
|
831
843
|
...link
|
|
832
844
|
},
|
|
845
|
+
VTable: {
|
|
846
|
+
dense: {
|
|
847
|
+
name: 'density',
|
|
848
|
+
value: 'compact'
|
|
849
|
+
}
|
|
850
|
+
},
|
|
833
851
|
VThemeProvider: {
|
|
834
852
|
root: false
|
|
835
853
|
},
|
|
@@ -854,7 +872,14 @@ const replacements = {
|
|
|
854
872
|
VToolbar: {
|
|
855
873
|
bottom: false,
|
|
856
874
|
outlined: 'border',
|
|
857
|
-
|
|
875
|
+
dense: {
|
|
876
|
+
name: 'density',
|
|
877
|
+
value: 'compact'
|
|
878
|
+
},
|
|
879
|
+
prominent: {
|
|
880
|
+
name: 'density',
|
|
881
|
+
value: 'prominent'
|
|
882
|
+
},
|
|
858
883
|
shaped: false,
|
|
859
884
|
short: false,
|
|
860
885
|
src: 'image',
|
|
@@ -904,6 +929,12 @@ const replacements = {
|
|
|
904
929
|
value: 'model-value',
|
|
905
930
|
...overlay
|
|
906
931
|
},
|
|
932
|
+
VTreeview: {
|
|
933
|
+
dense: {
|
|
934
|
+
name: 'density',
|
|
935
|
+
value: 'compact'
|
|
936
|
+
}
|
|
937
|
+
},
|
|
907
938
|
VWindow: {
|
|
908
939
|
activeClass: 'selected-class',
|
|
909
940
|
showArrowsOnHover: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-vuetify",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "An eslint plugin for Vuetify",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Kael Watts-Deuchar <kaelwd@gmail.com>",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"homepage": "https://github.com/vuetifyjs/eslint-plugin-vuetify#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"eslint-plugin-vue": "
|
|
23
|
+
"eslint-plugin-vue": ">=9.6.0",
|
|
24
24
|
"requireindex": "^1.2.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -31,16 +31,17 @@
|
|
|
31
31
|
"conventional-changelog-cli": "^2.2.2",
|
|
32
32
|
"conventional-changelog-vuetify": "^1.1.0",
|
|
33
33
|
"conventional-github-releaser": "^3.1.5",
|
|
34
|
-
"eslint": "^9.
|
|
34
|
+
"eslint": "^9.22.0",
|
|
35
35
|
"eslint8": "npm:eslint@8.57.1",
|
|
36
|
+
"eslint-plugin-vue": "^10.0.0",
|
|
36
37
|
"husky": "^8.0.1",
|
|
37
38
|
"mocha": "^10.1.0",
|
|
38
39
|
"neostandard": "^0.11.8",
|
|
39
40
|
"nyc": "^15.1.0",
|
|
40
41
|
"rimraf": "^3.0.2",
|
|
41
|
-
"vue": "^3.5.
|
|
42
|
-
"vue-eslint-parser": "^
|
|
43
|
-
"vuetify": "^3.7.
|
|
42
|
+
"vue": "^3.5.13",
|
|
43
|
+
"vue-eslint-parser": "^10.1.1",
|
|
44
|
+
"vuetify": "^3.7.17"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"eslint": "^8.0.0 || ^9.0.0",
|