(cwd: string)
| 156 | |
| 157 | // a component may read a validator as only its framework's compiled code shows |
| 158 | const componentsOf = (cwd: string): string[] => |
| 159 | globSync("**/*.{svelte,vue,astro,mdx}", { cwd, exclude: isExcluded }) |
| 160 | .map(match => resolve(cwd, match)) |
| 161 | .filter(file => /\bimport\b/.test(readFileSync(file, "utf8"))) |
| 162 | .sort() |
| 163 | |
| 164 | export const check = ( |
| 165 | patterns: string[], |