@hyperframes/lint 0.7.50 → 0.7.52
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/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3885,7 +3885,9 @@ async function lintProject(projectDir) {
|
|
|
3885
3885
|
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
3886
3886
|
const relPath = rel ? `${rel}/${entry.name}` : entry.name;
|
|
3887
3887
|
if (entry.isDirectory()) out.push(...collectHtmlFiles(join(dir, entry.name), relPath));
|
|
3888
|
-
else if (entry.isFile() && entry.name.endsWith(".html")
|
|
3888
|
+
else if (entry.isFile() && entry.name.endsWith(".html") && !entry.name.startsWith("._")) {
|
|
3889
|
+
out.push(relPath);
|
|
3890
|
+
}
|
|
3889
3891
|
}
|
|
3890
3892
|
return out;
|
|
3891
3893
|
};
|
|
@@ -4066,7 +4068,9 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
|
|
|
4066
4068
|
function lintMultipleRootCompositions(projectDir) {
|
|
4067
4069
|
const findings = [];
|
|
4068
4070
|
try {
|
|
4069
|
-
const rootHtmlFiles = readdirSync(projectDir).filter(
|
|
4071
|
+
const rootHtmlFiles = readdirSync(projectDir).filter(
|
|
4072
|
+
(file) => file.endsWith(".html") && !file.startsWith("._")
|
|
4073
|
+
);
|
|
4070
4074
|
const rootCompositions = [];
|
|
4071
4075
|
for (const file of rootHtmlFiles) {
|
|
4072
4076
|
if (file === "caption-skin.html") continue;
|