Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: switch to LF line-endings in Git for text files (#10292)

Andrey Lushnikovfd3ec50cf669
diff --git a/.gitattributes b/.gitattributes
index 03d42ee974..c976050ade 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,3 @@
# text files must be lf for golden file tests to work
-*.txt eol=lf
-*.json eol=lf
+* text=auto eol=lf
+
diff --git a/utils/generate_channels.js b/utils/generate_channels.js
index fe6e0ae0d4..39e6ef6eff 100755
--- a/utils/generate_channels.js
+++ b/utils/generate_channels.js
@@ -294,8 +294,6 @@ validator_ts.push(`
let hasChanges = false;
function writeFile(filePath, content) {
- if (os.platform() === 'win32')
- content = content.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n');
const existing = fs.readFileSync(filePath, 'utf8');
if (existing === content)
return;