From 5c1ec6ea67bd46b8bdb37baa82fe8fd455a91a5f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 21 Feb 2017 18:35:09 +0100 Subject: [PATCH] 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`. PR-URL: https://github.com/nodejs/node/pull/11479 Reviewed-By: Sam Roberts Reviewed-By: Roman Reiss Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- .eslintrc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index b0337c15256..ba6334b0346 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