File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ export default [
139139 "unicorn/no-unnecessary-array-flat-depth" : "error" ,
140140 "unicorn/no-unnecessary-array-splice-count" : "error" ,
141141 "unicorn/no-unnecessary-slice-end" : "error" ,
142+ "unicorn/no-useless-collection-argument" : "error" ,
142143 "unicorn/no-useless-promise-resolve-reject" : "error" ,
143144 "unicorn/no-useless-spread" : "error" ,
144145 "unicorn/prefer-array-find" : "error" ,
@@ -147,6 +148,7 @@ export default [
147148 "unicorn/prefer-array-index-of" : "error" ,
148149 "unicorn/prefer-array-some" : "error" ,
149150 "unicorn/prefer-at" : "error" ,
151+ "unicorn/prefer-classlist-toggle" : "error" ,
150152 "unicorn/prefer-date-now" : "error" ,
151153 "unicorn/prefer-dom-node-append" : "error" ,
152154 "unicorn/prefer-dom-node-remove" : "error" ,
Original file line number Diff line number Diff line change @@ -333,11 +333,10 @@ class Stepper {
333333 } ) ;
334334
335335 showBoxesCheckbox . addEventListener ( "change" , ( ) => {
336- if ( showBoxesCheckbox . checked ) {
337- this . pageContainer . classList . add ( "showDebugBoxes" ) ;
338- } else {
339- this . pageContainer . classList . remove ( "showDebugBoxes" ) ;
340- }
336+ this . pageContainer . classList . toggle (
337+ "showDebugBoxes" ,
338+ showBoxesCheckbox . checked
339+ ) ;
341340 } ) ;
342341 }
343342
You can’t perform that action at this time.
0 commit comments