From cd0fd165ae3b3917beae89749c1f09e833b0011c Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 21 Feb 2017 18:34:41 +0100 Subject: [PATCH 1/2] benchmark: strip BOM in dgram/bind-params --- benchmark/dgram/bind-params.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/dgram/bind-params.js b/benchmark/dgram/bind-params.js index 6f641f7f570667..92e9b7f85b1e12 100644 --- a/benchmark/dgram/bind-params.js +++ b/benchmark/dgram/bind-params.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict'; const common = require('../common.js'); const dgram = require('dgram'); From 32112f188c355b38013429f06bcca5891993884f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 21 Feb 2017 18:35:09 +0100 Subject: [PATCH 2/2] tools: enable unicode-bom ESLint rule Disallow UTF-8 Byte Order Marks in the source tree. That Node can read these files is still tested by `test/sequential/test-module-loading.js`. --- .eslintrc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index b0337c15256d5a..ba6334b0346985 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -113,6 +113,7 @@ rules: space-in-parens: [2, never] space-infix-ops: 2 space-unary-ops: 2 + unicode-bom: 2 # ECMAScript 6 # http://eslint.org/docs/rules/#ecmascript-6