@linthtml/core
Advanced tools
Comparing version 0.10.0 to 0.10.1
{ | ||
"name": "@linthtml/core", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "LintHTML core package", | ||
@@ -75,5 +75,5 @@ "author": "BenjaminJ <kamikillerto@gmail.com>", | ||
}, | ||
"gitHead": "aee97bee277f339bb909bb1100a11639b89c1960", | ||
"gitHead": "1551b5c46adabf438a4fd4611d52206df30c4e97", | ||
"module": "./src/index.js", | ||
"main": "./src/index.js" | ||
} |
// Export an array of all rules. | ||
import path from "path"; | ||
import { fileURLToPath } from "url"; | ||
import { fileURLToPath, pathToFileURL } from "url"; | ||
import { globbySync } from "globby"; | ||
@@ -11,4 +11,4 @@ const __filename = fileURLToPath(import.meta.url); | ||
}); | ||
const rulesExport = await Promise.all(rules_path.map((path) => import(path))); | ||
const rulesExport = await Promise.all(rules_path.map((path) => import(pathToFileURL(path).toString()))); | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access | ||
export default Object.values(rulesExport).map((rule) => { var _a, _b; return (_b = (_a = rule === null || rule === void 0 ? void 0 : rule.index) === null || _a === void 0 ? void 0 : _a.default) !== null && _b !== void 0 ? _b : rule.default; }); |
{ | ||
"name": "@linthtml/core", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "LintHTML core package", | ||
@@ -75,3 +75,3 @@ "author": "BenjaminJ <kamikillerto@gmail.com>", | ||
}, | ||
"gitHead": "aee97bee277f339bb909bb1100a11639b89c1960" | ||
"gitHead": "1551b5c46adabf438a4fd4611d52206df30c4e97" | ||
} |
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
208226