ESLint parity with the Browsertrix repo (#288)
This copies the rules from the Browsertrix repo, and uses [`suppress-eslint-errors`](https://www.npmjs.com/package/suppress-eslint-errors) to suppose the violations. I'll take a pass at cleaning this up at some point in the future, and let's do our best to address these in the future as we come across them :) This'll help ensure new code being added to this repo is held to the same standard as code in Browsertrix's frontend.
This commit is contained in:
+19
-3
@@ -218,8 +218,20 @@ class PageEntry extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="column col-date is-2">
|
||||
<div>${date ? date.toLocaleDateString() : ""}</div>
|
||||
<div>${date ? date.toLocaleTimeString() : ""}</div>
|
||||
<div>
|
||||
${
|
||||
// TODO: Fix this the next time the file is edited.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
date ? date.toLocaleDateString() : ""
|
||||
}
|
||||
</div>
|
||||
<div>
|
||||
${
|
||||
// TODO: Fix this the next time the file is edited.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
date ? date.toLocaleTimeString() : ""
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="media">
|
||||
@@ -246,7 +258,11 @@ class PageEntry extends LitElement {
|
||||
>${this.thumbnailValid ? this.renderFavicon() : ""}
|
||||
</p>
|
||||
<p class="has-text-grey-dark text is-inline-date">
|
||||
${date ? date.toLocaleString() : ""}
|
||||
${
|
||||
// TODO: Fix this the next time the file is edited.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
date ? date.toLocaleString() : ""
|
||||
}
|
||||
</p>
|
||||
</a>
|
||||
${this.textSnippet
|
||||
|
||||
Reference in New Issue
Block a user