Format Dart code using dartfmt 0.1.8. Update pubspec to require dart_style 0.1.8.
translates parse5_adapter.cjs to typescript Closes #2230