2
2
3
3
exports [` Code actions should disable rules for a specific line with a comment on the previous line 1` ] = `
4
4
"a {
5
- /* stylelint-disable-next-line indentation */
6
- font - size : 1.2 em ;
7
- /* stylelint-disable-next-line comment-no-empty */
5
+ /* stylelint-disable-next-line value-keyword-case */
6
+ display : BLOCK ;
7
+ /* stylelint-disable-next-line comment-no-empty */
8
8
color : #00 ;
9
9
}
10
10
"
11
11
` ;
12
12
13
13
exports [` Code actions should disable rules for a specific line with a comment on the same line 1` ] = `
14
14
"a {
15
- font - size : 1.2 em ; /* stylelint-disable-line indentation */
16
- /* stylelint-disable-next-line comment-no-empty */
15
+ display : BLOCK ; /* stylelint-disable-line value-keyword-case */
16
+ /* stylelint-disable-next-line comment-no-empty */
17
17
color : #00 ;
18
18
}
19
19
"
20
20
` ;
21
21
22
- exports [` Code actions should disable rules for a specific line with a comment on the same line 2` ] = `
23
- "#!/usr/bin/env node
24
- /* stylelint-disable color-no-invalid-hex */
25
- /* eslint-disable node/shebang */
26
- 'use strict';
27
-
28
- const css = css\`
29
- .foo {
30
- color : #00 ;
31
- }
32
- \` ;
33
- "
34
- ` ;
35
-
36
22
exports [` Code actions should disable rules for an entire file 1` ] = `
37
- "/* stylelint-disable indentation */
23
+ "/* stylelint-disable value-keyword-case */
38
24
a {
39
- font - size : 1.2 em ;
40
- /* stylelint-disable-next-line comment-no-empty */
25
+ display : BLOCK ;
26
+ /* stylelint-disable-next-line comment-no-empty */
41
27
color : #00 ;
42
28
}
43
29
"
@@ -58,22 +44,22 @@ const css = css\`
58
44
` ;
59
45
60
46
exports [` Code actions should provide code actions for problems 1` ] = `
61
- Array [
62
- Object {
63
- " edit" : Array [
64
- Array [
47
+ [
48
+ {
49
+ " edit" : [
50
+ [
65
51
" <uri>" ,
66
- Array [
67
- Object {
52
+ [
53
+ {
68
54
" newEol" : undefined ,
69
- " newText" : " /* stylelint-disable-next-line indentation */
55
+ " newText" : " /* stylelint-disable-next-line value-keyword-case */
70
56
" ,
71
- " range" : Array [
72
- Object {
57
+ " range" : [
58
+ {
73
59
" character" : 0 ,
74
60
" line" : 1 ,
75
61
},
76
- Object {
62
+ {
77
63
" character" : 0 ,
78
64
" line" : 1 ,
79
65
},
@@ -86,23 +72,23 @@ Array [
86
72
" kind" : _ {
87
73
" value" : " quickfix" ,
88
74
},
89
- " title" : " Disable indentation for this line" ,
75
+ " title" : " Disable value-keyword-case for this line" ,
90
76
} ,
91
- Object {
92
- " edit" : Array [
93
- Array [
77
+ {
78
+ " edit" : [
79
+ [
94
80
" <uri>" ,
95
- Array [
96
- Object {
81
+ [
82
+ {
97
83
" newEol" : undefined ,
98
- " newText" : " /* stylelint-disable indentation */
84
+ " newText" : " /* stylelint-disable value-keyword-case */
99
85
" ,
100
- " range" : Array [
101
- Object {
86
+ " range" : [
87
+ {
102
88
" character" : 0 ,
103
89
" line" : 0 ,
104
90
},
105
- Object {
91
+ {
106
92
" character" : 0 ,
107
93
" line" : 0 ,
108
94
},
@@ -115,32 +101,32 @@ Array [
115
101
" kind" : _ {
116
102
" value" : " quickfix" ,
117
103
},
118
- " title" : " Disable indentation for the entire file" ,
104
+ " title" : " Disable value-keyword-case for the entire file" ,
119
105
} ,
120
- Object {
121
- " command" : Object {
122
- " arguments" : Array [
123
- Object {
124
- " uri" : " https://stylelint.io/user-guide/rules/indentation " ,
106
+ {
107
+ " command" : {
108
+ " arguments" : [
109
+ {
110
+ " uri" : " https://stylelint.io/user-guide/rules/value-keyword-case " ,
125
111
},
126
112
],
127
113
" command" : " stylelint.openRuleDoc" ,
128
- " title" : " Open documentation for indentation " ,
114
+ " title" : " Open documentation for value-keyword-case " ,
129
115
},
130
116
" isPreferred" : undefined ,
131
117
" kind" : _ {
132
118
" value" : " quickfix" ,
133
119
},
134
- " title" : " Show documentation for indentation " ,
120
+ " title" : " Show documentation for value-keyword-case " ,
135
121
} ,
136
122
]
137
123
` ;
138
124
139
125
exports [` Code actions should run auto-fix action on save 1` ] = `
140
126
"a {
141
- font - size : 1.2 em ;
142
- /* stylelint-disable-next-line comment-no-empty */
143
- color : #00 ;
127
+ display : block ;
128
+ /* stylelint-disable-next-line comment-no-empty */
129
+ color : #00 ;
144
130
}
145
131
"
146
132
` ;
0 commit comments