nextstrain / nextstrain.org

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

Update ESLint rules #688

Closed victorlin closed 1 year ago

victorlin commented 1 year ago

Description of proposed changes

Replace Airbnb base config with other "recommended" base configs, and make other adjustments around that change.

Related issue(s)

This is the equivalent of https://github.com/nextstrain/auspice/pull/1665 for this repo.

Testing

jameshadfield commented 1 year ago

~Nice to have consistency between the projects! There are other JS projects (e.g. forecasts-viz) so I wonder about the pros/cons of making this its own repo & then the .eslintrc files would just look like:~

extends:
  - nextstrain

(Going to shift this question to Slack. I think the implementation in this PR is the way to go for now.)