File tree Expand file tree Collapse file tree
src/binary-operator-printers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import { shouldGroupOrIndent } from './utils/should-group-or-indent.js';
77const { indent } = doc . builders ;
88
99const indentIfNecessaryBuilder = ( path , options ) => ( document ) => {
10- let { node } = path ;
11- for ( let i = 0 ; ; i += 1 ) {
10+ for ( let i = 0 , { node } = path ; ; i += 1 ) {
1211 const parentNode = path . getParentNode ( i ) ;
1312 if ( notIndentParentTypes . includes ( parentNode . type ) ) return document ;
1413 if (
Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ export const notIndentParentTypes = [
1212
1313export const createIndentIfNecessaryBuilder =
1414 ( shouldIndentMatchers ) => ( path ) => ( document ) => {
15- let { node } = path ;
16- for ( let i = 0 ; ; i += 1 ) {
15+ for ( let i = 0 , { node } = path ; ; i += 1 ) {
1716 const parentNode = path . getParentNode ( i ) ;
1817 if ( notIndentParentTypes . includes ( parentNode . type ) ) return document ;
1918 if ( shouldGroupOrIndent ( parentNode , shouldIndentMatchers ) )
You can’t perform that action at this time.
0 commit comments