We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 145a0a0 commit 348dcc4Copy full SHA for 348dcc4
2 files changed
.gitattributes
@@ -13,4 +13,7 @@
13
*.css eol=lf
14
*.scss eol=lf
15
*.html eol=lf
16
-*.svg eol=lf
+*.svg eol=lf
17
+
18
+# Generated documentation should have LF line endings to reduce git noise
19
+docs/lint/**/*.md eol=lf
lint/generate-docs.ts
@@ -20,12 +20,12 @@ import { default as tsPlugin } from './src/rules/ts';
20
21
const templates = new Map();
22
23
-function lazyEJS(path: string, data: object) {
+function lazyEJS(path: string, data: object): string {
24
if (!templates.has(path)) {
25
templates.set(path, require('ejs').compile(readFileSync(path).toString()));
26
}
27
28
- return templates.get(path)(data);
+ return templates.get(path)(data).replace(/\r\n/g, '\n');
29
30
31
const docsDir = join('docs', 'lint');
0 commit comments