Skip to content

Commit

Permalink
Update all
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 8, 2022
1 parent dbbd437 commit 65c58ae
Show file tree
Hide file tree
Showing 64 changed files with 2,845 additions and 3,175 deletions.
2 changes: 1 addition & 1 deletion .xo-config.json
Expand Up @@ -24,7 +24,7 @@
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
Expand Down
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 65c58ae

Please sign in to comment.