-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Open
Labels
Description
Most style decisions are explained in the readme, but I couldn't find the reasoning on why a BOM is considered bad. Where I've looked:
- the patch that enabled it, found no commit message body.
- the current code of the rules file,
javascript/packages/eslint-config-airbnb-base/rules/style.js
Lines 472 to 474 in 8cf2c70
// require or disallow the Unicode Byte Order Mark // https://eslint.org/docs/rules/unicode-bom 'unicode-bom': ['error', 'never'], - the eslint rule page mentioned in the patch code comment, doesn't claim it's bad.
- searched the readme for "BOM", "unicode" and "byte order"
- searched issue tracker for "BOM", "unicode" and "byte order"
Could someone explain it, or add search keywords to make the explanation easier to find?
Update: Also, is there a recommendation on how to declare the file encoding instead? I searched the readme for "charset", "encod" and "character set" but no matches.