Options
All
  • Public
  • Public/Protected
  • All
Menu

adds jsonC to eslint if neither eslint nor eslintJsonC are disabled

Hierarchy

  • Component
    • EslintJsonC

Index

Constructors

  • adds jsonC to eslint if neither eslint nor eslintJsonC are disabled

    Parameters

    • project: TypeScriptProject

      the project to add to

    • Optional options: Dynamic<EslintJsonCOptions, TypeScriptProject>

      see EslintJsonCOptions

    Returns EslintJsonC

Properties

configFile?: JsonFile
project: Project
typeScriptProject: TypeScriptProject
defaultOptions: Dynamic<DeepRequired<EslintJsonCOptions>, TypeScriptProject> = ...
defaultProjectOptions: Required<Pick<TypeScriptProjectOptions, "eslint">> = ...

Methods

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

    Returns void

  • preSynthesize(): void
  • Called before synthesis.

    Returns void

  • setupJsonLinting(): void
  • creates config file for linting JSON and adds task

    Returns void

  • setupVscodeToLintJson(): void
  • update .eslintrc.json to use jsonC and then tell vscode to lint json files

    Returns void

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

    Returns void

  • Finds the EslintJsonC instance belonging to this project

    Parameters

    • project: Project

      the project to search

    Returns undefined | EslintJsonC

    the found EslintJsonC instance or undefined

Generated using TypeDoc