File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// @ts -check
2+ import { promises as fs } from 'node:fs'
23import * as path from 'node:path'
34import { fileURLToPath } from 'node:url'
45import { includeIgnoreFile } from '@eslint/compat'
@@ -13,9 +14,14 @@ import temporarySuppressions from './eslint_temporary_suppressions.js'
1314const __filename = fileURLToPath ( import . meta. url )
1415const __dirname = path . dirname ( __filename )
1516
17+ const packagesPath = path . join ( __dirname , 'packages' )
18+ const packages = await fs . readdir ( packagesPath )
19+ const packageIgnores = packages . map ( ( name ) => includeIgnoreFile ( path . resolve ( packagesPath , name , '.gitignore' ) ) )
20+
1621export default tseslint . config (
1722 // Global rules and configuration
1823 includeIgnoreFile ( path . resolve ( __dirname , '.gitignore' ) ) ,
24+ ...packageIgnores ,
1925 {
2026 linterOptions : {
2127 reportUnusedDisableDirectives : true ,
Original file line number Diff line number Diff line change 44 "description" : " TypeScript utilities for interacting with Netlify Edge Functions" ,
55 "type" : " module" ,
66 "engines" : {
7- "node" : " ^14.16.0 || >=16 .0.0"
7+ "node" : " >=18 .0.0"
88 },
99 "main" : " ./dist/main.js" ,
1010 "exports" : {
You can’t perform that action at this time.
0 commit comments