Skip to content

Commit

Permalink
Merge pull request #21 from editorconfig-checker/greenkeeper/xo-0.20.0
Browse files Browse the repository at this point in the history
Update xo to the latest version 🚀
  • Loading branch information
mstruebing authored Feb 15, 2018
2 parents db1e350 + f0ddb82 commit f850818
Show file tree
Hide file tree
Showing 3 changed files with 1,190 additions and 531 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"babel-preset-es2015": "^6.24.0",
"coveralls": "^3.0.0",
"jest": "^22.0.0",
"xo": "^0.19.0"
"xo": "^0.20.0"
}
}
9 changes: 5 additions & 4 deletions src/utils/line-ending-utils.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const getEndOfLineChar = endOfLine => {
let eolChar = '';
if (endOfLine === 'lf') {
return '\n';
eolChar = '\n';
} else if (endOfLine === 'cr') {
return '\r';
eolChar = '\r';
} else if (endOfLine === 'crlf') {
return '\r\n';
eolChar = '\r\n';
}

return '';
return eolChar;
};

export default getEndOfLineChar;
Loading

0 comments on commit f850818

Please sign in to comment.