Skip to content

Commit 70afaa8

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). Closes #2769, #2770.
1 parent 1be4d62 commit 70afaa8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js text eol=lf

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = function(grunt){
6464
}
6565

6666
grunt.initConfig(config);
67+
grunt.util.linefeed = '\n';
6768

6869
grunt.file.expand('./Grunt/options/*.js').forEach(function(file){
6970
grunt.config.merge(require(file)(grunt));

0 commit comments

Comments
 (0)