@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.
@@ -13,7 +13,7 @@ import {
13
13
  rules3,
14
14
  runCrossFileRules,
15
15
  runPhases
16
- } from "./chunk-MMTPB6HH.js";
16
+ } from "./chunk-OYGFWDEL.js";
17
17
  import "./chunk-EGRHWZRV.js";
18
18
 
19
19
  // src/eslint-adapter.ts
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";