@@ -41,11 +41,9 @@ test('putout: cli: ruler-processor: read: error', async (t) => {
41
41
42
42
const name = `${ process . cwd ( ) } /.putout.json` ;
43
43
44
- const expected = stringify ( {
45
- rules : {
46
- 'remove-unused-variables' : 'on' ,
47
- } ,
48
- } , null , 4 ) ;
44
+ const expected = stringify ( { rules : {
45
+ 'remove-unused-variables' : 'on' ,
46
+ } } , null , 4 ) ;
49
47
50
48
t . calledWith ( writeFile , [ name , expected ] , 'should write config' ) ;
51
49
t . end ( ) ;
@@ -66,11 +64,9 @@ test('putout: cli: ruler-processor: write', async (t) => {
66
64
67
65
const name = `${ process . cwd ( ) } /.putout.json` ;
68
66
69
- const expected = stringify ( {
70
- rules : {
71
- 'remove-unused-variables' : 'on' ,
72
- } ,
73
- } , null , 4 ) ;
67
+ const expected = stringify ( { rules : {
68
+ 'remove-unused-variables' : 'on' ,
69
+ } } , null , 4 ) ;
74
70
75
71
t . calledWith ( writeFile , [ name , expected ] , 'should write config' ) ;
76
72
t . end ( ) ;
@@ -91,11 +87,9 @@ test('putout: cli: ruler-processor: disable', async (t) => {
91
87
92
88
const name = `${ process . cwd ( ) } /.putout.json` ;
93
89
94
- const expected = stringify ( {
95
- rules : {
96
- 'remove-unused-variables' : 'off' ,
97
- } ,
98
- } , null , 4 ) ;
90
+ const expected = stringify ( { rules : {
91
+ 'remove-unused-variables' : 'off' ,
92
+ } } , null , 4 ) ;
99
93
100
94
t . calledWith ( writeFile , [ name , expected ] , 'should write config' ) ;
101
95
t . end ( ) ;
@@ -127,12 +121,10 @@ test('putout: cli: ruler-processor: enable all', async (t) => {
127
121
128
122
const name = `${ process . cwd ( ) } /.putout.json` ;
129
123
130
- const expected = stringify ( {
131
- rules : {
132
- 'remove-debugger' : 'on' ,
133
- 'remove-unused-variables' : 'on' ,
134
- } ,
135
- } , null , 4 ) ;
124
+ const expected = stringify ( { rules : {
125
+ 'remove-debugger' : 'on' ,
126
+ 'remove-unused-variables' : 'on' ,
127
+ } } , null , 4 ) ;
136
128
137
129
t . calledWith ( writeFile , [ name , expected ] , 'should enable all' ) ;
138
130
t . end ( ) ;
@@ -163,12 +155,10 @@ test('putout: cli: ruler-processor: disable all', async (t) => {
163
155
164
156
const name = `${ process . cwd ( ) } /.putout.json` ;
165
157
166
- const expected = stringify ( {
167
- rules : {
168
- 'remove-debugger' : 'off' ,
169
- 'remove-unused-variables' : 'off' ,
170
- } ,
171
- } , null , 4 ) ;
158
+ const expected = stringify ( { rules : {
159
+ 'remove-debugger' : 'off' ,
160
+ 'remove-unused-variables' : 'off' ,
161
+ } } , null , 4 ) ;
172
162
173
163
t . calledWith ( writeFile , [ name , expected ] , 'should enable all' ) ;
174
164
t . end ( ) ;
@@ -192,12 +182,10 @@ test('putout: cli: ruler-processor: no option', async (t) => {
192
182
193
183
const name = `${ process . cwd ( ) } /.putout.json` ;
194
184
195
- const expected = stringify ( {
196
- rules : {
197
- 'remove-debugger' : 'on' ,
198
- 'remove-unused-variables' : 'off' ,
199
- } ,
200
- } , null , 4 ) ;
185
+ const expected = stringify ( { rules : {
186
+ 'remove-debugger' : 'on' ,
187
+ 'remove-unused-variables' : 'off' ,
188
+ } } , null , 4 ) ;
201
189
202
190
t . calledWith ( writeFile , [ name , expected ] , 'should enable all' ) ;
203
191
t . end ( ) ;
0 commit comments