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

eslint-plugin-sort-imports-es6-autofix

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-sort-imports-es6-autofix - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

6

package.json
{
"name": "eslint-plugin-sort-imports-es6-autofix",
"version": "0.1.1",
"version": "0.2.0",
"description": "A sort-imports rule that properly distinguishes between ES6 import types.",

@@ -23,3 +23,3 @@ "keywords": [

"devDependencies": {
"babel-eslint": "^7.1.1",
"babel-eslint": "^8.2.1",
"mocha": "^3.2.0"

@@ -29,4 +29,4 @@ },

"dependencies": {
"eslint": "^3.15.0"
"eslint": "^4.15.0"
}
}

@@ -147,5 +147,5 @@ /**

const currentMemberSyntaxGroupIndex = getMemberParameterGroupIndex(b[0]),
currentMemberIsType = b[0].importKind && b[0].importKind === 'type',
currentMemberIsType = (b[0].importKind && b[0].importKind === 'type') || false,
previousMemberSyntaxGroupIndex = getMemberParameterGroupIndex(a[0]),
previousMemberIsType = a[0].importKind && a[0].importKind === 'type';
previousMemberIsType = (a[0].importKind && a[0].importKind === 'type') || false;
let currentLocalMemberName = getFirstLocalMemberName(b[0]),

@@ -179,5 +179,5 @@ previousLocalMemberName = getFirstLocalMemberName(a[0]);

const currentMemberSyntaxGroupIndex = getMemberParameterGroupIndex(node),
currentMemberIsType = node.importKind && node.importKind === 'type',
currentMemberIsType = (node.importKind && node.importKind === 'type') || false,
previousMemberSyntaxGroupIndex = getMemberParameterGroupIndex(previousDeclaration),
previousMemberIsType = previousDeclaration.importKind && previousDeclaration.importKind === 'type';
previousMemberIsType = (previousDeclaration.importKind && previousDeclaration.importKind === 'type') || false;
let currentLocalMemberName = getFirstLocalMemberName(node),

@@ -190,2 +190,3 @@ previousLocalMemberName = getFirstLocalMemberName(previousDeclaration);

}

@@ -192,0 +193,0 @@ // When the current declaration uses a different member syntax,

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