Options
All
  • Public
  • Public/Protected
  • All
Menu

makes sure prettier is added to the end of the eslint extends

Hierarchy

  • Component
    • EslintPrettierFixer

Index

Constructors

  • creates a EslintPrettier component to place prettier at the end of the eslint extends

    Parameters

    • project: TypeScriptProject

      the project to add prettier to

    • Optional options: Dynamic<EslintPrettierFixerOptions, TypeScriptProject>

      see PrettierOptions

    Returns EslintPrettierFixer

Properties

project: Project
tsProject: TypeScriptProject
defaultOptions: Dynamic<DeepRequired<EslintPrettierFixerOptions>, TypeScriptProject> = ...
defaultProjectOptions: Required<Pick<NodeProjectOptions, "prettier"> & Pick<TypeScriptProjectOptions, "eslint">> = ...

Methods

  • postSynthesize(): void
  • Called after synthesis. Order is not guaranteed.

    Returns void

  • preSynthesize(): void
  • Prettier needs to be last in the eslint extension list, so we add this during preSynthesize

    Returns void

  • synthesize(): void
  • Synthesizes files to the project output directory.

    Returns void

Generated using TypeDoc