(dirpath, filterFn)
| 28 | nodeCore.RULES_DIR = fileURLToPath(new URL('./tools/eslint-rules', import.meta.url)); |
| 29 | |
| 30 | function filterFilesInDir(dirpath, filterFn) { |
| 31 | return readdirSync(dirpath) |
| 32 | .filter(filterFn) |
| 33 | .map((f) => `${dirpath}/${f}`); |
| 34 | } |
| 35 | |
| 36 | // The Module._resolveFilename() monkeypatching is to make it so that ESLint is able to |
| 37 | // dynamically load extra modules that we install with it. |
no test coverage detected
searching dependent graphs…