nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
87 stars 49 forks source link

Lint Typescript files too [#905] #906

Closed genehack closed 2 weeks ago

genehack commented 3 weeks ago

Description of proposed changes

Extend linting of the static-site tree to also look at *.ts and *.tsx files. Includes updates to existing files to correct or silence errors based on established usage.

N.b., I elected to add individual eslint-disable <rule> comments rather than globally disabling in the config, as that felt like it would probably be less controversial during review. Happy to convert any of those changes to global rule changes instead; each type of rule is in a distinct commit to facilitate these sorts of changes.

Related issue(s)

905

Checklist