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

feat: support ESLint 9 #34

Merged
merged 3 commits into from
Aug 23, 2024
Merged

feat: support ESLint 9 #34

merged 3 commits into from
Aug 23, 2024

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Jul 3, 2024

feat: support ESLint 9

BREAKING CHANGE:

Requires Node 18

Also:

  • chore: use flat config

Note that context.parserPath is being removed per https://eslint.org/blog/2023/09/preparing-custom-rules-eslint-v9/#context-properties%3A-parseroptions-and-parserpath-being-removed , and although it mentions a theoretical replacement, I didn't see one being supplied on context.languageOptions or context.languageOptions.parserOptions. But the rule seems to work without it.

I changed from @typescript-eslint/rule-tester as it does not work with flat configs currently.

I removed a couple duplicate test cases (as that was being warned against).

BREAKING CHANGE:

Requires Node 18

Also:
- chore: use flat config
@brettz9
Copy link
Contributor Author

brettz9 commented Jul 3, 2024

I'm not sure on resolving the failing CI, except that it works with --legacy-peer-deps.

@gajus gajus closed this Jul 16, 2024
@gajus
Copy link
Owner

gajus commented Jul 16, 2024

Looks like lint stop does not work.

@gajus
Copy link
Owner

gajus commented Jul 16, 2024

Adding --legacy-peer-deps is fine.

@brettz9
Copy link
Contributor Author

brettz9 commented Jul 16, 2024

I might have to leave you with the TypeScript...

@gajus gajus merged commit 304dd27 into gajus:main Aug 23, 2024
1 check failed
Copy link

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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