Skip to content

πŸ› Bug: Lint complaint on new repo with --preset everything: n/no-unsupported-features/node-builtinsΒ #2242

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

Creating a new repo with npx create-typescript-app --preset everything should pass all initial validations.

Actual

β–   The pnpm lint --fix script failed. You should re-run it and fix its complaints.
β”‚  ExecaError: Command failed with exit code 1: pnpm lint --fix
β”‚  
β”‚  
β”‚  > [email protected] lint /Users/josh/repos/terminal-reprint
β”‚  > eslint . --max-warnings 0 --fix
β”‚  
β”‚  
β”‚  /Users/josh/repos/terminal-reprint/eslint.config.js
β”‚    18:605  error  The 'import.meta.dirname' is still an experimental feature and is not supported until Node.js 21.2.0 (backported: ^20.11.0). The configured version range is '>=20.19.0'  n/no-unsupported-features/node-builtins
β”‚  
β”‚  βœ– 1 problem (1 error, 0 warnings)

Additional Info

This could be resolved by any of...

πŸ˜• there's no great solution today...

🎁

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions