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

chore(eslint): ignore .gitignored files #4383

Merged
merged 3 commits into from
Jul 16, 2024
Merged

chore(eslint): ignore .gitignored files #4383

merged 3 commits into from
Jul 16, 2024

Conversation

wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Jul 15, 2024

Details

I came across the @typescript-eslint/explicit-module-boundary-types rule, and I wanted to see how we fare against it. We got a lot of errors, but I noticed a bunch of them were coming from the .rollup.cache directory. We don't care about that directory, or anything that's .gitignored, so I added a plugin so we don't have to maintain duplicate lists. (I did not add the new rule because it turns out we still get a lot of errors, even when we ignore everything we don't care about.)

I also added the tseslint.config() wrapper - it doesn't modify the provided config, but it provides type checking, which makes IDE autocomplete more useful!

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

@wjhsf wjhsf requested a review from a team as a code owner July 15, 2024 15:54
covered by globals.jasmine
@@ -314,7 +311,6 @@ export default [
lwcRuntimeFlags: true,
process: true,
LWC: true,
spyOnAllFunctions: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This key is covered by ...globals.jasmine, we don't need to specify it ourselves.

Copy link
Member

@ekashida ekashida left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@wjhsf wjhsf enabled auto-merge (squash) July 16, 2024 14:06
@wjhsf wjhsf merged commit 1733916 into master Jul 16, 2024
11 checks passed
@wjhsf wjhsf deleted the wjh/eslint-gitignore branch July 16, 2024 14:16
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.

None yet

2 participants