with-typescript-eslint-jest creates pages/api/hello.tsx
See original GitHub issueBug report
with-typescript-eslint-jest
creates pages/api/hello.tsx
instead of pages/api/hello.ts
To Reproduce
- npx create-next-app --example with-typescript-eslint-jest with-typescript-eslint-jest-app
page/api/
hashello.tsx
instead ofhello.ts
Expected behavior
Expected a .ts
file and not a .tsx
file for API.
Screenshots
N/A
System information
- OS: Ubuntu 20.04
- Browser: N/A
- Version of Next.js: 9.5.3
- Version of Node.js: 14.9.0
Additional context
This is easy for me to fix. For new or less experienced users this might be confusing and misleading.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Node.js (Express) with TypeScript, Eslint, Jest, Prettier and ...
Installing Jest is easy, run the command below and you will install Jest including its type definition and Typescript Jest runner:.
Read more >Using eslint with typescript - Unable to resolve path to module
You can set the ESLint module import resolution by adding this snippet to your .eslintrc.json configuration file:
Read more >Configuring Jest
It is recommended to define the configuration in a dedicated JavaScript, TypeScript or JSON file. The file will be discovered automatically, ...
Read more >Setting up vite, React, TypeScript, eslint, vitest, testing-library ...
In this video I show how to setup a react app with vite, typescript, eslint, vitest, testing-library and react-router.
Read more >React + TypeScript + ESLint + Prettier Full Setup
Hello amazing developer , before digging into this topic let me give you a small introduction and so instructions.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, can i take this one? 😃
Both are fine really, but feel free to send a PR.