chore: keep linting generated files (#34150)
This commit is contained in:
Родитель
7f141b2c42
Коммит
4819747c85
|
@ -3,9 +3,6 @@ test/assets/modernizr.js
|
|||
/packages/*/lib/
|
||||
*.js
|
||||
/packages/playwright-core/src/generated/*
|
||||
/packages/playwright-core/src/protocol/debug.ts
|
||||
/packages/playwright-core/src/protocol/validator.ts
|
||||
/packages/playwright-core/src/server/injected/recorder/clipPaths.ts
|
||||
/packages/playwright-core/src/third_party/
|
||||
/packages/playwright-core/types/*
|
||||
/packages/playwright-ct-core/src/generated/*
|
||||
|
|
|
@ -187,4 +187,4 @@ export const pausesBeforeInputActions = new Set([
|
|||
'ElementHandle.tap',
|
||||
'ElementHandle.type',
|
||||
'ElementHandle.uncheck'
|
||||
]);
|
||||
]);
|
||||
|
|
|
@ -2752,4 +2752,4 @@ scheme.JsonPipeSendParams = tObject({
|
|||
});
|
||||
scheme.JsonPipeSendResult = tOptional(tObject({}));
|
||||
scheme.JsonPipeCloseParams = tOptional(tObject({}));
|
||||
scheme.JsonPipeCloseResult = tOptional(tObject({}));
|
||||
scheme.JsonPipeCloseResult = tOptional(tObject({}));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -4983,3 +4983,4 @@ export interface JsonPipeEvents {
|
|||
'message': JsonPipeMessageEvent;
|
||||
'closed': JsonPipeClosedEvent;
|
||||
}
|
||||
|
||||
|
|
|
@ -362,7 +362,7 @@ function writeFile(filePath, content) {
|
|||
fs.writeFileSync(filePath, content, 'utf8');
|
||||
}
|
||||
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.d.ts'), channels_ts.join('\n'));
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'debug.ts'), debug_ts.join('\n'));
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'validator.ts'), validator_ts.join('\n'));
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'protocol', 'src', 'channels.d.ts'), channels_ts.join('\n') + '\n');
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'debug.ts'), debug_ts.join('\n') + '\n');
|
||||
writeFile(path.join(__dirname, '..', 'packages', 'playwright-core', 'src', 'protocol', 'validator.ts'), validator_ts.join('\n') + '\n');
|
||||
process.exit(hasChanges ? 1 : 0);
|
||||
|
|
|
@ -95,6 +95,7 @@ const iconNames = [
|
|||
`// eslint-disable-next-line key-spacing, object-curly-spacing, comma-spacing, quotes`,
|
||||
`const svgJson: SvgJson = ${JSON.stringify(svgJson)};`,
|
||||
`export default svgJson;`,
|
||||
'',
|
||||
].join('\n');
|
||||
fs.writeFileSync(outFile, code, 'utf-8');
|
||||
})();
|
||||
|
|
Загрузка…
Ссылка в новой задаче