Revision 093fd39f9311415d74f889ff9526d8243c914dae authored by Kristiyan Kostadinov on 14 December 2021, 13:35:40 UTC, committed by Alex Rickabaugh on 14 December 2021, 21:14:02 UTC
Cleans up some of the temporary workarounds that were necessary in order to land support for TypeScript 4.5 since they're no longer necessary.

PR Close #44477
1 parent d640fa7
Raw File
format.ts
import {FormatConfig} from '@angular/dev-infra-private/ng-dev/format/config';

/**
 * Configuration for the `ng-dev format` command.
 */
export const format: FormatConfig = {
  'prettier': {
    'matchers': [
      '**/*.{yaml,yml}',
    ]
  },
  'clang-format': {
    'matchers': [
      '**/*.{js,ts}',
      // TODO: burn down format failures and remove aio and integration exceptions.
      '!aio/**',
      '!integration/**',
      // Both third_party and .yarn are directories containing copied code which should
      // not be modified.
      '!third_party/**',
      '!.yarn/**',
      // Do not format d.ts files as they are generated
      '!**/*.d.ts',
      // Do not format generated ng-dev script
      '!dev-infra/ng-dev.js',
      '!dev-infra/build-worker.js',
      // Do not format compliance test-cases since they must match generated code
      '!packages/compiler-cli/test/compliance/test_cases/**/*.js',
      // Do not format the locale files which are checked-in for Google3, but generated using
      // the `generate-locales-tool` from `packages/common/locales`.
      '!packages/core/src/i18n/locale_en.ts',
      '!packages/common/locales/closure-locale.ts',
      '!packages/common/src/i18n/currencies.ts',
    ]
  },
  'buildifier': true
};
back to top