Skip to content

Commit

Permalink
Update verify-features.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 8, 2022
1 parent 7fc3b44 commit 6b664f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/verify-features.ts
Expand Up @@ -29,7 +29,8 @@ function findCssFileError(filename: string): string | void {
}

function findError(filename: string): string | void {
if (filename === 'index.tsx') {
// TODO: Replace second condition with "is gitignored"
if (filename === 'index.tsx' || filename === '.DS_Store') {
return;
}

Expand All @@ -38,7 +39,7 @@ function findError(filename: string): string | void {
}

if (!filename.endsWith('.tsx')) {
return `ERR: The \`/source/features\` folder should only contain .css and .tsx files. File \`${filename}\` violates that rule`;
return `ERR: The \`/source/features\` folder should only contain .css and .tsx files. Found \`source/features/${filename}\``;
}

const featureId = filename.replace('.tsx', '') as FeatureID;
Expand Down

0 comments on commit 6b664f3

Please sign in to comment.