Skip to content

Configure TypeScript config rule by file name #49

@uPaymeiFixit

Description

@uPaymeiFixit

image

There’s 4 routes we could go down here:

  1. Use multiple tsconfig.json files
  • ❌ complicates build
  • ❌ adds a whole other config file for each rule we want to disable
  1. Use multiple tsconfig.json files with project references (see Convert to tsconfig's project references · Issue #18 · dudeofawesome/code-style)
  • ❌ complicates build
  • ❌ not supported by some of our tools yet
  1. Use something like ESLint’s overrides in tsconfig.json (not supported at this time Allow overrides in tsconfig · Issue #33407 · microsoft/TypeScript)
  • ❌ not actually a thing
  1. Turn off the offending strict rule in typescript and ban the syntax with ESLint
  • ❌ duplicates rules between TS & ESLint
  • ✅ minimizes config files
  • ✅ keeps build simple

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2Priority 2 (Medium)spike

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions