-
Notifications
You must be signed in to change notification settings - Fork 1
/
globs.ts
46 lines (40 loc) · 1.13 KB
/
globs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// todo: consider just stealing all globs and boilerplate stuff from https://github.com/antfu/eslint-config
export const nonProdGlobs = ['test/**/*.ts', '**/tests/**/*.ts', '**/*.test.ts', '**/*.spec.ts', 'e2e/**/*.ts']
export const typescriptGlobs = ['**/*.ts', '**/*.tsx']
export const sourceCodeGlobs = [
'src/**', // where most people put source codde
'source/**', // where sindresorhus puts source code
]
export const ANTFU_GLOB_EXCLUDE = [
'**/node_modules',
'**/dist',
'**/package-lock.json',
'**/yarn.lock',
'**/pnpm-lock.yaml',
'**/bun.lockb',
'**/output',
'**/coverage',
'**/temp',
'**/.temp',
'**/tmp',
'**/.tmp',
'**/.history',
'**/.vitepress/cache',
'**/.nuxt',
'**/.next',
'**/.vercel',
'**/.changeset',
'**/.idea',
'**/.cache',
'**/.output',
'**/.vite-inspect',
'**/.yarn',
'**/CHANGELOG*.md',
'**/*.min.*',
'**/LICENSE*',
'**/__snapshots__',
'**/auto-import?(s).d.ts',
'**/components.d.ts',
]
export const codegenFileGlobs = ['*.md', '*.mdx', '*.yml', '*.yaml']
export const codegenProcessedGlobs = codegenFileGlobs.map(f => `**/${f}/*.{js,ts,jsx,tsx,cjs,mjs,cts,mts}`)