style(dev-infra): enforce format on newly included files (#36940)
Historically files to be formatted were added to a listing (via matchers) to be included in formatting. Instead, this change begins efforts to instead include all files in format enforcement, relying instead on an opt out methodology. PR Close #36940
This commit is contained in:

committed by
Misko Hevery

parent
45a8f340d9
commit
fcd934ccf6
@ -91,13 +91,13 @@ module.exports = (gulp, done) => {
|
||||
`${RELATIVE_I18N_GLOBAL_FOLDER}/${locale}.js`,
|
||||
generateGlobalLocale(
|
||||
locale, locale === 'en' ? new cldrJs('en') : localeData, baseCurrencies));
|
||||
|
||||
});
|
||||
console.log(`${LOCALES.length} locale files generated.`);
|
||||
|
||||
console.log(`All i18n cldr files have been generated, formatting files..."`);
|
||||
shelljs.exec(
|
||||
`yarn clang-format -i ${I18N_DATA_FOLDER}/**/*.ts ${I18N_DATA_FOLDER}/*.ts ${I18N_FOLDER}/currencies.ts ${I18N_CORE_FOLDER}/locale_en.ts ${I18N_GLOBAL_FOLDER}/*.js`,
|
||||
`yarn clang-format -i ${I18N_DATA_FOLDER}/**/*.ts ${I18N_DATA_FOLDER}/*.ts ${
|
||||
I18N_FOLDER}/currencies.ts ${I18N_CORE_FOLDER}/locale_en.ts ${I18N_GLOBAL_FOLDER}/*.js`,
|
||||
{silent: true});
|
||||
done();
|
||||
};
|
||||
@ -278,7 +278,8 @@ function generateCurrenciesFile() {
|
||||
export type CurrenciesSymbols = [string] | [string | undefined, string];
|
||||
|
||||
/** @internal */
|
||||
export const CURRENCIES_EN: {[code: string]: CurrenciesSymbols | [string | undefined, string | undefined, number]} = ${stringify(baseCurrencies, true)};
|
||||
export const CURRENCIES_EN: {[code: string]: CurrenciesSymbols | [string | undefined, string | undefined, number]} = ${
|
||||
stringify(baseCurrencies, true)};
|
||||
`;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user