Skip to content

Add .ts to the default extensions for --lint #1065

@dominykas

Description

@dominykas

Support plan

  • is this issue currently blocking your project? (yes/no): no
  • is this issue affecting a production system? (yes/no): yes

Context

  • node version: ~18
  • module version: latest
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): all over the place
  • any other relevant information:

What problem are you trying to solve?

Running lab with --lint does not lint *.ts files.

Do you have a new or modified API suggestion to solve the problem?

When running lab with --typescript, .ts should be added to the default extensions: https://github.com/hapijs/lab/blob/master/lib/linter/index.js#L35

Alt: always add .ts - same as .cjs / .mjs.

Happy to PR!

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions