[Question] how to change eol of auto generated d.ts
See original GitHub issueIn my project, eol is set as ‘crlf’ in rule of prettier. However, each time I launch vite, eol in auto-import.d.ts
is replaced with ‘lf’. Is there a recommended way to solve this? As this file is the only one in ./src
folder which is generated by a package, it seems not elegant to create prettier and eslint ignore file just for it. Maybe there is another way?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Typescript: How to auto generate a d.ts file for image
Include your TypeScript Declaration File in your tsconfig.json . { "compilerOptions" { ... }, "include": ["path/to/index.d.ts"] }.
Read more >Force LF line ending on auto generated file next-env.d.ts on ...
If I change the line endings of the file next-env.d.ts to LF, after a while the file automatically changes back to CRLF. The...
Read more >gitattributes Documentation - Git
When text is set to "auto", the path is marked for automatic end-of-line conversion. If Git decides that the content is text, its...
Read more >End-of-life or second-life options for retired electric vehicle ...
Recently, stakeholders have become more confident that giving the retired batteries a second life by reusing them in less-demanding applications ...
Read more >Upgrade Guide - Quasar Framework
The API of Quasar components, directives and plugins has minor changes, ... Create a src/quasar.d.ts file and copy into it the content from...
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
Why you care about auto-generated files? They should be listed in
.eslintignore
and.prettierignore
IMO.eslint: Easy Mode prettier: Hell Mode
according to #5287 prettier don’t support block disable in TS/JS so the dts file will be something like
this is really annoying