chore: keep linting generated files (#34150)
This commit is contained in:
parent
7f141b2c42
commit
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/*
|
||||||
|
|
|
@ -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');
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue