make all classes in domTree.js PascalCase and make them named exports (#1636)

* make all classes in domTree.js PascalCase and make them named exports

* add eslint rule to enforce capitalization, fix failures

* address feedback
This commit is contained in:
Kevin Barabash
2018-08-19 10:49:21 -04:00
committed by ylemkimon
parent ead04e5a29
commit b2432e8ad2
21 changed files with 90 additions and 82 deletions

View File

@@ -31,6 +31,7 @@ const printActualErrorMessage = error => {
const {message, stack} = separateMessageFromStack(error.stack);
return (
'Instead, it threw:\n' +
/* eslint-disable-next-line new-cap */
RECEIVED_COLOR(
` ${message}` +
formatStackTrace(