TypeStat
TypeStat copied to clipboard
Converts JavaScript to TypeScript and TypeScript to better TypeScript. 🧫
## PR Checklist - [x] Addresses an existing issue: fixes #1341; fixes #1317; fixes #1318 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/TypeStat/labels/status%3A%20accepting%20prs) ## Overview Splits the large...
## Overview Following up on https://github.com/JoshuaKGoldberg/TypeStat/issues/1040: I'm going to turn this repository into a monorepo named `ts-lift`. Its packages will be: * `ts-enhance` * `ts-initialize`
### Overview Tracking https://github.com/JoshuaKGoldberg/create-typescript-app/issues/734 in this repository.
### 🐛 Bug Report - TypeStat version: 0.7.2 - TypeScript version: 5.1.6 - Node version: v16.18.0 #### Actual Behavior ``` Error: ENOENT: no such file or directory, stat 'node_modules/@tsconfig/node16/tsconfig.json/package.json' ```...
### 🐛 Bug Report - TypeStat version: current - TypeScript version: N/A - Node version: v20.3.1 #### Actual Behavior It looks like TypeStat has ended up in an infinite loop....
### 🚀 Feature Request #1233 added post-fix cleaner support, with a single `suppressTypeErrors` cleaner for `// @ts-expect-error` comment directives. But those should really be a last-ditch cleaner applied after less...
## 🚀 Feature Request It's sometimes useful to replace added TypeScript types with other strings. Most commonly, some conversions use a type like `type $AnyTodoFixMeTS49 = any;` instead of `any`...
### 🐛 Bug Report - TypeStat version: 0.6.3 - TypeScript version: 4.7.4 - Node version: v16.15.0 original js file ```js /* * Utility function to compile a WebGL Vertex or...
A few places in code use `JSON.stringify()` to write files on disk. For example: https://github.com/JoshuaKGoldberg/TypeStat/blob/1031fb8fd01b6d52b3781a77b5155d5c899ef54c/src/initialization/initializeJavaScript/index.ts#L19 https://github.com/JoshuaKGoldberg/TypeStat/blob/1031fb8fd01b6d52b3781a77b5155d5c899ef54c/src/initialization/initializeTypeScript/writeMultiTypeScriptConfig.ts#L22 Instead, we should call to ~~`prettier` and use whatever Prettier~~ whatever formatter & config...
### 🚀 Feature Request I'd like to integrate `typestat` with lint-staged https://github.com/okonet/lint-staged #### Existing Behavior not sure how to do it, it only run following a regex pattern #### Change...