https://github.com/angular/angular
Raw File
Tip revision: 1f84ac1d5f6c357d2af2ebb4e5876ee3718d7d86 authored by Alex Rickabaugh on 10 May 2021, 21:43:00 UTC
release: cut the v12.0.0-rc.3 release (#42031)
Tip revision: 1f84ac1
format.ts
import {FormatConfig} from '../dev-infra/format/config';

/**
 * Configuration for the `ng-dev format` command.
 */
export const format: FormatConfig = {
  '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',
    ]
  },
  'buildifier': true
};
back to top