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