Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ module.exports = {
],

ignorePatterns: ['!.eslintrc.js', 'dist'],

rules: {
// This is necessary to run eslint on Windows and not get a thousand CRLF errors
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
};
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ module.exports = {
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
endOfLine: 'auto',
plugins: ['prettier-plugin-packagejson'],
};
2 changes: 1 addition & 1 deletion src/parse-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function parseChangelog({
packageRename?: PackageRename;
shouldExtractPrLinks?: boolean;
}) {
const changelogLines = changelogContent.split('\n');
const changelogLines = changelogContent.split(/(?:\r)?\n/u); // Split on either Windows or Unix line endings
const changelog = new Changelog({
repoUrl,
tagPrefix,
Expand Down
Loading