File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ module.exports = {
55
55
properties : {
56
56
checkAttributes : {
57
57
type : 'boolean'
58
+ } ,
59
+ indentLogicalExpressions : {
60
+ type : 'boolean'
58
61
}
59
62
} ,
60
63
additionalProperties : false
@@ -83,6 +86,7 @@ module.exports = {
83
86
const indentChar = indentType === 'space' ? ' ' : '\t' ;
84
87
const options = context . options [ 1 ] || { } ;
85
88
const checkAttributes = options . checkAttributes || false ;
89
+ const indentLogicalExpressions = options . indentLogicalExpressions || false ;
86
90
87
91
/**
88
92
* Responsible for fixing the indentation issue fix
@@ -176,7 +180,8 @@ module.exports = {
176
180
node . parent &&
177
181
node . parent . parent &&
178
182
node . parent . parent . type === 'LogicalExpression' &&
179
- node . parent . parent . right === node . parent
183
+ node . parent . parent . right === node . parent &&
184
+ ! indentLogicalExpressions
180
185
) ;
181
186
}
182
187
You can’t perform that action at this time.
0 commit comments