🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

eslint-plugin-sort-export-all

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-sort-export-all - npm Package Compare versions

Comparing version

to
1.0.4

3

lib/rules/sort-export-all.js

@@ -85,6 +85,3 @@ "use strict";

const prevName = prevNode.source.value;
console.log("thisName", thisName, "prevName", prevName);
console.log("isValidOrder(thisName, prevName)", isValidOrder(thisName, prevName));
if (isValidOrder(thisName, prevName)) {
console.log("REPORTING");
context.report(Object.assign(Object.assign({ message: "Expected export * order to be in {{natural}}{{insensitive}}{{order}}. '{{thisName}}' should be before '{{prevName}}'.", node }, (node.loc === null ? null : { loc: node.loc })), { data: {

@@ -91,0 +88,0 @@ thisName,

17

lib/rules/sort-export-all.test.js

@@ -17,8 +17,15 @@ "use strict";

{
code: `export * from "./BackgroundGradientImage";
export * from "./Fab";
export * from "./variables/colors";
export * from "./variables/dimensions";
`,
code: `
export * from "./BackgroundGradientImage";
export * from "./Fab";
export * from "./variables/colors";
export * from "./variables/dimensions";`,
},
{
code: `
export * from "./BackgroundGradientImage";
export * from "./Fab";
export * from "./variables/colors";
export * from "./variables/dimensions";`,
},
],

@@ -25,0 +32,0 @@ invalid: [

{
"name": "eslint-plugin-sort-export-all",
"version": "1.0.3",
"version": "1.0.4",
"description": "ESLint rule that helps sort export *",
"repository": {
"url": "https://github.com/nirtamir2/eslint-plugin-sort-export-all",
"type": "git"
},
"main": "lib/index.js",

@@ -6,0 +10,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet