If you don't depend on alot of globals, you can manually use /* globals x, y, z */ in individual files as a quick alternative.
Otherwise, you can look at plugins like eslint-plugin-eslint-env-restore for ESLint v9 to do this for you.