Skip to content

Commit 6dd2a9b

Browse files
committed
tsc: fix check-styles
1 parent c380fe8 commit 6dd2a9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

check-styles.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ describe('static style sheets', () => {
1111
const tsxFiles = dirs.flatMap((dir) =>
1212
fs
1313
.readdirSync(dir, { recursive: dir !== '.' })
14+
// @ts-ignore:next-line
1415
.filter(
15-
(file) =>
16+
(file: any) =>
1617
typeof file === 'string' &&
1718
!file.startsWith('node_modules/') &&
1819
file.toLowerCase().endsWith('.tsx')
1920
)
20-
.map((file) => path.join(dir, file as string))
21+
.map((file: any) => path.join(dir, file as string))
2122
);
2223
const regExp = new RegExp(
2324
/\n[^\s][^\n]+StyleSheet\.create\(\{.*themeColor\(/,

0 commit comments

Comments
 (0)