Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static-site: Configure and use ESLint #778

Merged
merged 18 commits into from
Jan 16, 2024
Merged

static-site: Configure and use ESLint #778

merged 18 commits into from
Jan 16, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Jan 9, 2024

Description of proposed changes

This project was previously unlinted. Add the necessary configuration including rule exceptions to make the linter run without error on the code as-is.

Related issue(s)

Fixes #775

Checklist

  • Checks pass
  • Check violations of recommended rules (thread)

@victorlin victorlin self-assigned this Jan 9, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 9, 2024 22:56 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 9, 2024 23:07 Inactive
Generated with NPM version 8.19.4.
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 10, 2024 23:22 Inactive
@victorlin victorlin marked this pull request as ready for review January 10, 2024 23:25
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 12, 2024 01:37 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 13, 2024 01:20 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 13, 2024 01:24 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 13, 2024 01:29 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 13, 2024 01:40 Inactive
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 13, 2024 01:47 Inactive
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This project was previously unlinted. Add the necessary configuration
including rule exceptions to make the linter run without error on the
code as-is.
Helpful to see if errors aren't showing because of a configuration issue
or simply because the file isn't being linted.
The last reference was removed in "Convert header to use Flex objects"
(03f9e01).
From react-hooks/exhaustive-deps warning:

  React Hook useEffect has missing dependencies: 'getGroupLogo' and
  'logo'. Either include them or remove the dependency array. You can
  also do a functional update 'setLogo(l => ...)' if you only need
  'logo' in the 'setLogo' call
Parallels the rule configuration in Auspice: <nextstrain/auspice@9d5db44>
Add rule exceptions to allow the linter run without error on the code
as-is.
The last reference was removed in "Swap to iFrame for SARS-CoV-2
forecasts page" (3b668d6).
This was added in "static-site: Import individual config values
explicitly" (554b611) without realizing that the variable was no
longer available in the config file.
Previous commits addressed all violations.
@victorlin victorlin temporarily deployed to nextstrain-s-victorlin--hwsbs2 January 16, 2024 22:52 Inactive
@victorlin victorlin merged commit 7171287 into master Jan 16, 2024
@victorlin victorlin deleted the victorlin/eslint branch January 16, 2024 22:53
@victorlin victorlin mentioned this pull request May 17, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint disabled for static-site
4 participants