@drskillissue/ganko 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-MMTPB6HH.js → chunk-OYGFWDEL.js} +6 -1
- package/dist/chunk-OYGFWDEL.js.map +1 -0
- package/dist/eslint-plugin.cjs.map +1 -1
- package/dist/eslint-plugin.js +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MMTPB6HH.js.map +0 -1
package/dist/eslint-plugin.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -95,6 +95,10 @@ var import_v4 = require("zod/v4");
|
|
|
95
95
|
var SOLID_EXTENSIONS = [".tsx", ".jsx", ".ts", ".js", ".mts", ".cts", ".mjs", ".cjs"];
|
|
96
96
|
var CSS_EXTENSIONS = [".css", ".scss", ".sass", ".less"];
|
|
97
97
|
var ALL_EXTENSIONS = [...SOLID_EXTENSIONS, ...CSS_EXTENSIONS];
|
|
98
|
+
var TOOLING_CONFIG_RE = /(?:^|[\\/])[\w.-]+\.(?:config|setup)\.(?:ts|js|mts|cts|mjs|cjs)$/;
|
|
99
|
+
function isToolingConfig(path) {
|
|
100
|
+
return TOOLING_CONFIG_RE.test(path);
|
|
101
|
+
}
|
|
98
102
|
function matchesExtension(path, extensions) {
|
|
99
103
|
for (let i = 0; i < extensions.length; i++) {
|
|
100
104
|
const ext = extensions[i];
|
|
@@ -104,6 +108,7 @@ function matchesExtension(path, extensions) {
|
|
|
104
108
|
}
|
|
105
109
|
function classifyFile(path) {
|
|
106
110
|
if (path.endsWith(".d.ts")) return "unknown";
|
|
111
|
+
if (isToolingConfig(path)) return "unknown";
|
|
107
112
|
if (matchesExtension(path, SOLID_EXTENSIONS)) return "solid";
|
|
108
113
|
if (matchesExtension(path, CSS_EXTENSIONS)) return "css";
|
|
109
114
|
return "unknown";
|