eslint-plugin-for-wtools
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name" : "eslint-plugin-for-wtools", | ||
"version" : "0.3.3", | ||
"version" : "0.3.4", | ||
"description" : "Extends rule `space-in-parens` of `eslint`. Implement exception for single argument call case.", | ||
@@ -5,0 +5,0 @@ "author" : "Kostiantyn Wandalen <wanalen@01.school>", |
@@ -46,2 +46,2 @@ ( function _Int_test_s_() | ||
})(); | ||
} )(); |
@@ -18,3 +18,3 @@ 'use strict'; | ||
const options = context.options[ 0 ] || {}; | ||
const ignore = ( options.ignore || []).map( ( item ) => | ||
const ignore = ( options.ignore || [] ).map( ( item ) => | ||
{ | ||
@@ -26,3 +26,3 @@ if( item instanceof RegExp ) | ||
return new RegExp( item, 'u' ); | ||
}); | ||
} ); | ||
const filePath = context.getFilename(); | ||
@@ -49,3 +49,3 @@ | ||
if( fileName[ 0 ].toUpperCase() !== fileName[ 0 ]) | ||
if( fileName[ 0 ].toUpperCase() !== fileName[ 0 ] ) | ||
valid = false; | ||
@@ -60,3 +60,3 @@ | ||
context.report | ||
({ | ||
( { | ||
node, | ||
@@ -68,3 +68,3 @@ messageId : 'renameMsg', | ||
} | ||
}); | ||
} ); | ||
} | ||
@@ -71,0 +71,0 @@ |
@@ -34,5 +34,5 @@ | ||
} | ||
const ALWAYS = context.options[ 0 ] === 'always', | ||
exceptionsArrayOptions = ( context.options[ 1 ] && context.options[ 1 ].exceptions ) || [], | ||
options = {}; | ||
const ALWAYS = context.options[ 0 ] === 'always'; | ||
const exceptionsArrayOptions = ( context.options[ 1 ] && context.options[ 1 ].exceptions ) || []; | ||
const options = {}; | ||
@@ -44,3 +44,3 @@ let exceptions; | ||
console.log( 0, [ 1, 2, 3 ] ); | ||
console.log([ 1, 2, 3 ]); | ||
console.log( [ 1, 2, 3 ] ); | ||
} | ||
@@ -86,3 +86,3 @@ | ||
context.report | ||
({ | ||
( { | ||
node, | ||
@@ -95,3 +95,3 @@ loc : token.loc, | ||
} | ||
}); | ||
} ); | ||
} | ||
@@ -102,3 +102,3 @@ | ||
{ | ||
context.report({ | ||
context.report( { | ||
node, | ||
@@ -109,5 +109,5 @@ loc : { start : token.loc.end, end : nextToken.loc.start }, | ||
{ | ||
return fixer.removeRange([ token.range[ 1 ], nextToken.range[ 0 ] ]); | ||
return fixer.removeRange( [ token.range[ 1 ], nextToken.range[ 0 ] ] ); | ||
} | ||
}); | ||
} ); | ||
} | ||
@@ -119,3 +119,3 @@ | ||
context.report | ||
({ | ||
( { | ||
node, | ||
@@ -128,3 +128,3 @@ loc : token.loc, | ||
} | ||
}); | ||
} ); | ||
} | ||
@@ -136,3 +136,3 @@ | ||
context.report | ||
({ | ||
( { | ||
node, | ||
@@ -143,7 +143,7 @@ loc : { start : prevToken.loc.end, end : token.loc.start }, | ||
{ | ||
return fixer.removeRange([ prevToken.range[ 1 ], token.range[ 0 ] ]); | ||
return fixer.removeRange( [ prevToken.range[ 1 ], token.range[ 0 ] ] ); | ||
} | ||
}); | ||
} ); | ||
} | ||
}); | ||
} ); | ||
@@ -150,0 +150,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12314
0