File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
tests/specs/literals/StringLiteral Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -173,12 +173,12 @@ impl<'a> Context<'a> {
173
173
) -> TReturn {
174
174
if self . config . quote_props == QuoteProps :: Consistent {
175
175
self . consistent_quote_props_stack . push ( ( use_consistent_quotes) ( & state) ) ;
176
+ let result = action ( self , state) ;
177
+ self . consistent_quote_props_stack . pop ( ) ;
178
+ result
179
+ } else {
180
+ action ( self , state)
176
181
}
177
- let is_consistent = self . consistent_quote_props_stack . peek ( ) . copied ( ) . unwrap_or ( true ) ;
178
- self . consistent_quote_props_stack . push ( is_consistent) ;
179
- let result = action ( self , state) ;
180
- self . consistent_quote_props_stack . pop ( ) ;
181
- result
182
182
}
183
183
184
184
// do any assertions for how the state of this context should be at the end of the file
Original file line number Diff line number Diff line change @@ -158,3 +158,19 @@ type Type = {
158
158
set foo3(v: string);
159
159
foo4: "literal";
160
160
};
161
+
162
+ == should not remove in this scenario ==
163
+ const x = {
164
+ "/src/shared/tsconfig-base.json": JSON.stringify({
165
+ include: ["./typings-base/"],
166
+ }),
167
+ "/src/shared/index.ts": `export const a: Unrestricted = 1;`,
168
+ }
169
+
170
+ [expect]
171
+ const x = {
172
+ "/src/shared/tsconfig-base.json": JSON.stringify({
173
+ include: ["./typings-base/"],
174
+ }),
175
+ "/src/shared/index.ts": `export const a: Unrestricted = 1;`,
176
+ };
You can’t perform that action at this time.
0 commit comments