Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-for-wtools

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-for-wtools - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc