.eslintignore can be replaced by an ignorePatterns key in .eslintrc.cjs
Unless you’re ignoring entire directories or using Prettier in your editor, .prettierignore can be replaced with // prettier-ignore comments in files you want to ignore, or specifying globs in the command line (usually in the package.json script fields)
The entirety of .prettierrc can be replaced by a prettier key in package.json
Everything that ends in .ts, .js, and .cjs a script, not a config file, and they could all be moved to a separate folder and pointed at with command line flags
All of the options above are categorically worse than the standard layout
pnpm-lock.yaml and flake.lock aren’t config files and shouldn’t be edited unless you know what you’re doing