Skip to content

Commit 8c5eff9

Browse files
ESLint fixes
1 parent 357db70 commit 8c5eff9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/customization-hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function customizationHooks(toc: HtmlElementNode, options: NormalizedOpti
1717
}
1818

1919
function customizeNodes(parent: HtmlElementNode, tagName: string, hook?: CustomizationHook): void {
20-
if (!hook) return;
20+
if (!hook) { return; }
2121

2222
for (let child of parent.children!) {
2323
if ((child as HtmlElementNode).tagName === tagName) {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export * from "./types";
55
export { toc };
66

77
// Export `toc` as the default export
8-
// tslint:disable: no-default-export
98
export default toc;
109

1110
// CommonJS default export hack
11+
/* eslint-env commonjs */
1212
if (typeof module === "object" && typeof module.exports === "object") {
13-
module.exports = Object.assign(module.exports.default, module.exports); // tslint:disable-line: no-unsafe-any
13+
module.exports = Object.assign(module.exports.default, module.exports);
1414
}

0 commit comments

Comments
 (0)