Skip to content

Commit

Permalink
Merge pull request #1872: ESLint: use type-safe equality operators
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin authored Oct 21, 2024
2 parents f6a56ca + a2e4c54 commit 556d4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ globals:

rules:
# Code quality rules
eqeqeq: error
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }]
"@typescript-eslint/no-explicit-any": off # Allow explicit any to make incremental TypeScript adoption easier.
no-unused-vars: off
Expand Down
2 changes: 1 addition & 1 deletion src/util/parseNarrative.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function* parseNarrativeBody(markdown, fallbackDataset, markdownParser) {
const titleLinkSelector = "h1 > a:only-child";
const isTitle = (node) =>
node.nodeType === Node.ELEMENT_NODE &&
node.querySelector(titleLinkSelector) != null;
node.querySelector(titleLinkSelector) !== null;

for (const titleLink of doc.querySelectorAll(titleLinkSelector)) {
const slide = doc.createElement("slide");
Expand Down

0 comments on commit 556d4fa

Please sign in to comment.