/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v20.3.25
.ng-dev/format.mts
35 строк
1 KB
Alan Agius
build: format md files
06 ноя 2025, 21:10
Не верифицирован
06 ноя 2025, 21:10
ee578d3
Код
Авторство
О чём код?
import {FormatConfig} from '@angular/ng-dev'; /** * Configuration for the `ng-dev format` command. */ export const format: FormatConfig = { 'prettier': { 'matchers': [ '**/*.md', '**/*.{yaml,yml}', '**/*.{js,ts,mjs,mts,cjs,cts,tsx}', 'devtools/**/*.{js,ts,mjs,mts,cjs,cts,html,scss}', 'integration/**/size.json', // Do not format d.ts files as they are generated '!**/*.d.ts', // Both third_party and .yarn are directories containing copied code which should // not be modified. '!third_party/**', // 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', // Test cases contain non valid code. '!packages/compiler-cli/test/compliance/test_cases/**/*.{js,ts,mjs,mts,cjs,cts}', // Ignore generated javascript file(s) '!.github/actions/deploy-docs-site/main.js', // Ignore goldens MD files '!/goldens/**/*.api.md', ], }, 'buildifier': true, };