2020-07-02 08:08:29 -04:00
|
|
|
import {FormatConfig} from '../dev-infra/format/config';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Configuration for the `ng-dev format` command.
|
|
|
|
*/
|
|
|
|
export const format: FormatConfig = {
|
2021-05-14 13:53:38 -04:00
|
|
|
'prettier': {
|
|
|
|
'matchers': [
|
|
|
|
'**/*.{yaml,yml}',
|
|
|
|
]
|
|
|
|
},
|
2020-07-02 08:08:29 -04:00
|
|
|
'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',
|
2020-10-01 19:06:56 -04:00
|
|
|
// Do not format generated ng-dev script
|
|
|
|
'!dev-infra/ng-dev.js',
|
2020-12-07 13:57:43 -05:00
|
|
|
'!dev-infra/build-worker.js',
|
2020-11-11 10:29:43 -05:00
|
|
|
// Do not format compliance test-cases since they must match generated code
|
|
|
|
'!packages/compiler-cli/test/compliance/test_cases/**/*.js',
|
2021-05-21 16:58:25 -04:00
|
|
|
// 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',
|
2020-07-02 08:08:29 -04:00
|
|
|
]
|
|
|
|
},
|
|
|
|
'buildifier': true
|
|
|
|
};
|