Skip to content

Fix ESLint configuration for scripts directory#1684

Merged
koesie10 merged 2 commits intomainfrom
koesie10/fix-eslint
Oct 31, 2022
Merged

Fix ESLint configuration for scripts directory#1684
koesie10 merged 2 commits intomainfrom
koesie10/fix-eslint

Conversation

@koesie10
Copy link
Copy Markdown
Member

See the two commits: this will fix the configuration for the scripts directory, but it will also change on which files ESLint is run using npm run lint and npm run format to ensure we don't encounter the same issue in the future.

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

This will fix linting errors when `lint-staged` is run and there are
changed files in the `scripts` directory.
This wil remove the discrepancy between the files on which ESLint is run
when `lint-staged` is used and the files that are checked using
`npm run lint` and `npm run format`.

It will now also include the `.storybook` directory which was previously
excluded from the ESLint configuration.
@koesie10 koesie10 marked this pull request as ready for review October 31, 2022 12:47
@koesie10 koesie10 requested a review from a team as a code owner October 31, 2022 12:47
@koesie10 koesie10 requested a review from a team October 31, 2022 12:47
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

Thanks for addressing this quickly 🚀

@koesie10 koesie10 enabled auto-merge October 31, 2022 12:56
@koesie10 koesie10 merged commit 1e1c7d4 into main Oct 31, 2022
@koesie10 koesie10 deleted the koesie10/fix-eslint branch October 31, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants