Permalink
Browse files

Add endofline normalisation for JavaScript files.

This should fix issues with ESLint and Grunt tasks on systems that use
line endings other than LF (i.e. Windows systems, using CRLF line
endings).

Reference: mootools/mootools-core#2770
  • Loading branch information...
1 parent 9ea1be7 commit 687363b141c7d6abb89e6716462bbd99545f81e5 @timwienk timwienk committed Aug 19, 2016
Showing with 2 additions and 0 deletions.
  1. +1 −0 .gitattributes
  2. +1 −0 Gruntfile.js
View
@@ -0,0 +1 @@
+*.js text eol=lf
View
@@ -227,6 +227,7 @@ module.exports = function(grunt){
}
});
+ grunt.util.linefeed = '\n';
var compatBuild = ['clean', 'eslint', 'packager:all', 'packager:specs'];
var nocompatBuild = ['clean', 'eslint', 'packager:morenocompat', 'packager:specs-nocompat'];

0 comments on commit 687363b

Please sign in to comment.