@heyramzi/lint 1.32.4 → 1.32.5
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/file-tokens.js +5 -1
- package/package.json +1 -1
package/file-tokens.js
CHANGED
|
@@ -77,7 +77,11 @@ export function ignoredPath(file) {
|
|
|
77
77
|
if (LOCKFILES.has(name) || DATA_EXTENSIONS.test(name)) return true;
|
|
78
78
|
if (GENERATED_NAMES.some((pattern) => pattern.test(name))) return true;
|
|
79
79
|
if (IGNORED_PREFIXES.some((prefix) => file.startsWith(prefix))) return true;
|
|
80
|
-
|
|
80
|
+
// Match the name as written (`.claude`) and with a symbol prefix stripped; stripping alone dropped every dot-folder.
|
|
81
|
+
return parts.slice(0, -1).some((part) => {
|
|
82
|
+
const lower = part.toLowerCase();
|
|
83
|
+
return DEFAULT_IGNORED.includes(lower) || DEFAULT_IGNORED.includes(lower.replace(/^\W+\s*/u, ""));
|
|
84
|
+
});
|
|
81
85
|
}
|
|
82
86
|
|
|
83
87
|
/** True when the content says a machine wrote it: a NUL byte (binary, as git decides) or a codegen header. */
|