function createInternalFilesPatterns(pattern = null) {
	return Object.values(INTERNAL_PATHS)
		.filter(p => p !== pattern)
		.map(p => ({
			name: [
				// Disallow all children modules.
				resolveAbsolutePath(p),

				// Allow the main `index.js` module.
				`!${resolveAbsolutePath(p.replace(/\*\*\/\*$/u, "index.js"))}`,
			],
		}));
}
Create an array of `no-restricted-require` entries for ESLint's core files.
@param {string} [pattern] The glob pattern to create the entries for.
@returns {Object[]} The array of `no-restricted-require` entries.