mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-02-21 13:42:49 +00:00

- Add sanitization of operator_position option. Throws error if invalid. - Possible operator_position options are: 1) 'before-newline' (default) 2) 'after-newline' 3) 'preserve-newline' - Move some code around in handle_operator in order to separate conflicting logic now that operator newlines are accounted for. - Modify allow_wrap_or_preserved_newline to handle operator preserved newlines as well. - Add -> build tests - Within the tests, add an 'inputlib.js' file holding common input arrays. This was necessary due to the matrices not working cleanly with default behavior. Changes not directly relevant to operator_position - Add Object.values polyfill - Ignore intellijidea project file - Fix a few boolean variable assignments within if statements. Though not always the case, the expression within the if can be assigned directly to the variable