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 <vieuxtech@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Anna Henningsen 2017-02-21 18:35:09 +01:00
parent 049709b07d
commit 5c1ec6ea67
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -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