0.0.1-1 • Published 5 years ago

ts-codefix v0.0.1-1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

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