ts-codefix
v0.0.1-1
Published
Run [TypeScript codefixes](https://github.com/Microsoft/TypeScript/tree/master/src/services/codefixes) across all of your code.
Downloads
4
Readme
[wip] ts-codefix
Run TypeScript codefixes across all of your code.
Example Usage
yarn global add ts-codefix
cd my-awesome-ts-project
ts-codefix -f inferFromUsage
Example TypeScript Codefix IDs
- addConvertToUnknownForNonOverlappingTypes
- addMissingInvocationForDecorator
- annotateWithTypeFromJSDoc
- inferFromUsage
- convertFunctionToEs6Class
- convertToAsyncFunction
- correctQualifiedNameToIndexedAccessType
- fixClassIncorrectlyImplementsInterface
- fixMissingImport
- fixSpelling
- addMissingMember
- installTypesPackage
- generateTypes
- fixClassDoesntImplementInheritedAbstractMember
- classSuperMustPrecedeThisAccess
- constructorForDerivedNeedSuperCall
- extendsInterfaceBecomesImplements
- forgottenThisPropertyAccess
- unusedIdentifier_prefix
- unusedIdentifier_delete
- unusedIdentifier_infer
- fixUnreachableCode
- fixUnusedLabel
- fixJSDocTypes_plain
- fixJSDocTypes_nullable
- fixAwaitInSyncFunction
- disableJsDiagnostics
- addMissingPropertyDefiniteAssignmentAssertions
- addMissingPropertyUndefinedType
- addMissingPropertyInitializer
- requireInTs
- useDefaultImport
- fixAddModuleReferTypeMissingTypeof
- fixConvertToMappedObjectType