Index

Index signatures

Constructor methods

Properties

Methods

Index signatures

(name: string): any

Parameters

  • name: string

Returns

any

Constructor methods

constructor(): Rules

Returns

Rules

Properties

public ControlOpenBraceLeftTokenRange: TokenRange

public FunctionOpenBraceLeftTokenRange: TokenRange

public HighPriorityCommonRules: Rule[]

public IgnoreAfterLineComment: Rule

public IgnoreBeforeComment: Rule

public LowPriorityCommonRules: Rule[]

public NewLineAfterOpenBraceInBlockContext: Rule

public NewLineBeforeCloseBraceInBlockContext: Rule

public NewLineBeforeOpenBraceInControl: Rule

public NewLineBeforeOpenBraceInFunction: Rule

public NewLineBeforeOpenBraceInTypeScriptDeclWithBlock: Rule

public NoSpaceAfterAnonymousFunctionKeyword: Rule

public NoSpaceAfterBinaryOperator: Rule

public NoSpaceAfterCloseAngularBracket: Rule

public NoSpaceAfterCloseBrace: Rule

public NoSpaceAfterCloseBracket: Rule

public NoSpaceAfterComma: Rule

public NoSpaceAfterConstructor: Rule

public NoSpaceAfterDot: Rule

public NoSpaceAfterEllipsis: Rule

public NoSpaceAfterKeywordInControl: Rule

public NoSpaceAfterModuleImport: Rule

public NoSpaceAfterOpenAngularBracket: Rule

public NoSpaceAfterOpenBracket: Rule

public NoSpaceAfterOpenParen: Rule

public NoSpaceAfterOptionalParameters: Rule

public NoSpaceAfterSemicolonInFor: Rule

public NoSpaceAfterUnaryPredecrementOperator: Rule

public NoSpaceAfterUnaryPrefixOperator: Rule

public NoSpaceAfterUnaryPreincrementOperator: Rule

public NoSpaceBeforeBinaryOperator: Rule

public NoSpaceBeforeCloseAngularBracket: Rule

public NoSpaceBeforeCloseBracket: Rule

public NoSpaceBeforeCloseParen: Rule

public NoSpaceBeforeColon: Rule

public NoSpaceBeforeComma: Rule

public NoSpaceBeforeDot: Rule

public NoSpaceBeforeOpenAngularBracket: Rule

public NoSpaceBeforeOpenBracket: Rule

public NoSpaceBeforeOpenParenInFuncCall: Rule

public NoSpaceBeforeOpenParenInFuncDecl: Rule

public NoSpaceBeforeQMark: Rule

public NoSpaceBeforeSemicolon: Rule

public NoSpaceBeforeUnaryPostdecrementOperator: Rule

public NoSpaceBeforeUnaryPostincrementOperator: Rule

public NoSpaceBetweenCloseParenAndAngularBracket: Rule

public NoSpaceBetweenEmptyBraceBrackets: Rule

public NoSpaceBetweenEmptyInterfaceBraceBrackets: Rule

public NoSpaceBetweenParens: Rule

public NoSpaceBetweenReturnAndSemicolon: Rule

public SpaceAfterAddWhenFollowedByPreincrement: Rule

public SpaceAfterAddWhenFollowedByUnaryPlus: Rule

public SpaceAfterAnonymousFunctionKeyword: Rule

public SpaceAfterArrow: Rule

public SpaceAfterBinaryKeywordOperator: Rule

public SpaceAfterBinaryOperator: Rule

public SpaceAfterCertainKeywords: Rule

public SpaceAfterCertainTypeScriptKeywords: Rule

public SpaceAfterCloseBrace: Rule

public SpaceAfterColon: Rule

public SpaceAfterComma: Rule

public SpaceAfterFunctionInFuncDecl: Rule

public SpaceAfterGetSetInMember: Rule

public SpaceAfterKeywordInControl: Rule

public SpaceAfterModuleName: Rule

public SpaceAfterOpenBrace: Rule

public SpaceAfterOpenParen: Rule

public SpaceAfterPostdecrementWhenFollowedBySubtract: Rule

public SpaceAfterPostincrementWhenFollowedByAdd: Rule

public SpaceAfterQMark: Rule

public SpaceAfterSemicolon: Rule

public SpaceAfterSemicolonInFor: Rule

public SpaceAfterSubtractWhenFollowedByPredecrement: Rule

public SpaceAfterSubtractWhenFollowedByUnaryMinus: Rule

public SpaceAfterTryFinally: Rule

public SpaceAfterVoidOperator: Rule

public SpaceBeforeBinaryKeywordOperator: Rule

public SpaceBeforeBinaryOperator: Rule

public SpaceBeforeCertainTypeScriptKeywords: Rule

public SpaceBeforeCloseBrace: Rule

public SpaceBeforeCloseParen: Rule

public SpaceBeforeOpenBraceInControl: Rule

public SpaceBeforeOpenBraceInFunction: Rule

public SpaceBeforeOpenBraceInTypeScriptDeclWithBlock: Rule

public SpaceBetweenCloseBraceAndElse: Rule

public SpaceBetweenCloseBraceAndWhile: Rule

public SpaceBetweenStatements: Rule

public TypeScriptOpenBraceLeftTokenRange: TokenRange

Methods

public static IsAfterCodeBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsBeforeBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsBeforeMultilineBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsBinaryOpContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsControlDeclContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsForContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsFunctionCallContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsFunctionCallOrNewContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsFunctionDeclContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsModuleDeclContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsMultilineBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsNewContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsNotBinaryOpContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsNotForContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsNotFormatOnEnter(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsObjectContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsObjectTypeContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsSameLineTokenContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsSameLineTokenOrBeforeMultilineBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsSingleLineBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsTypeArgumentOrParameter(tokenKind: SyntaxKind, parentKind: SyntaxKind): boolean

Parameters

Returns

boolean

public static IsTypeArgumentOrParameterContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsTypeScriptDeclWithBlockContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static IsVoidOpContext(context: FormattingContext): boolean

Parameters

Returns

boolean

public static NodeIsBlockContext(node: IndentationNodeContext): boolean

Parameters

Returns

boolean

public static NodeIsTypeScriptDeclWithBlockContext(node: IndentationNodeContext): boolean

Parameters

Returns

boolean

public getRuleName(rule: Rule): any

Parameters

Returns

any