Skip to content

Commit 687363b

Browse files
committed
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/issues/2770
1 parent 9ea1be7 commit 687363b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js text eol=lf

Gruntfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ module.exports = function(grunt){
227227
}
228228

229229
});
230+
grunt.util.linefeed = '\n';
230231

231232
var compatBuild = ['clean', 'eslint', 'packager:all', 'packager:specs'];
232233
var nocompatBuild = ['clean', 'eslint', 'packager:morenocompat', 'packager:specs-nocompat'];

0 commit comments

Comments
 (0)