eslint-plugin-sort-export-all
Advanced tools
Comparing version
@@ -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,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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
243
1.67%1
-50%16544
-0.23%