tsc: fix check-styles

This commit is contained in:
Evan Kaloudis
2024-10-03 15:43:56 -04:00
parent c380fe81f4
commit 6dd2a9bf7a
+3 -2
View File
@@ -11,13 +11,14 @@ describe('static style sheets', () => {
const tsxFiles = dirs.flatMap((dir) =>
fs
.readdirSync(dir, { recursive: dir !== '.' })
// @ts-ignore:next-line
.filter(
(file) =>
(file: any) =>
typeof file === 'string' &&
!file.startsWith('node_modules/') &&
file.toLowerCase().endsWith('.tsx')
)
.map((file) => path.join(dir, file as string))
.map((file: any) => path.join(dir, file as string))
);
const regExp = new RegExp(
/\n[^\s][^\n]+StyleSheet\.create\(\{.*themeColor\(/,