@@ -22,6 +22,10 @@ const ALWAYS = 'always';
2222const  NEVER  =  'never' ; 
2323
2424const  errorData  =  new  WeakMap ( ) ; 
25+ /** 
26+  * @param  {object } exceptions 
27+  * @returns  {object } 
28+  */ 
2529function  getErrorData ( exceptions )  { 
2630 if  ( ! errorData . has ( exceptions ) )  { 
2731 const  exceptionProps  =  Array . from ( exceptions ,  ( name )  =>  `\`${ name }  ) . join ( ', ' ) ; 
@@ -30,15 +34,25 @@ function getErrorData(exceptions) {
3034 } 
3135 return  errorData . get ( exceptions ) ; 
3236} 
33- 
37+ /** 
38+  * @param  {string } configuration 
39+  * @param  {Set<string> } exceptions 
40+  * @param  {string } propName 
41+  * @returns  {boolean } propName 
42+ */ 
3443function  isAlways ( configuration ,  exceptions ,  propName )  { 
3544 const  isException  =  exceptions . has ( propName ) ; 
3645 if  ( configuration  ===  ALWAYS )  { 
3746 return  ! isException ; 
3847 } 
3948 return  isException ; 
4049} 
41- 
50+ /** 
51+  * @param  {string } configuration 
52+  * @param  {Set<string> } exceptions 
53+  * @param  {string } propName 
54+  * @returns  {boolean } propName 
55+  */ 
4256function  isNever ( configuration ,  exceptions ,  propName )  { 
4357 const  isException  =  exceptions . has ( propName ) ; 
4458 if  ( configuration  ===  NEVER )  { 
@@ -109,7 +123,10 @@ module.exports = {
109123 const  propName  =  node . name  &&  node . name . name ; 
110124 const  value  =  node . value ; 
111125
112-  if  ( isAlways ( configuration ,  exceptions ,  propName )  &&  value  ===  null )  { 
126+  if  ( 
127+  isAlways ( configuration ,  exceptions ,  propName ) 
128+  &&  value  ===  null 
129+  )  { 
113130 const  data  =  getErrorData ( exceptions ) ; 
114131 const  messageId  =  data . exceptionsMessage  ? 'setBoolean'  : 'setBoolean_noMessage' ; 
115132 report ( context ,  messages [ messageId ] ,  messageId ,  { 
@@ -120,7 +137,12 @@ module.exports = {
120137 } , 
121138 } ) ; 
122139 } 
123-  if  ( isNever ( configuration ,  exceptions ,  propName )  &&  value  &&  value . type  ===  'JSXExpressionContainer'  &&  value . expression . value  ===  true )  { 
140+  if  ( 
141+  isNever ( configuration ,  exceptions ,  propName ) 
142+  &&  value 
143+  &&  value . type  ===  'JSXExpressionContainer' 
144+  &&  value . expression . value  ===  true 
145+  )  { 
124146 const  data  =  getErrorData ( exceptions ) ; 
125147 const  messageId  =  data . exceptionsMessage  ? 'omitBoolean'  : 'omitBoolean_noMessage' ; 
126148 report ( context ,  messages [ messageId ] ,  messageId ,  { 
0 commit comments