-
Notifications
You must be signed in to change notification settings - Fork 90
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
Update ESLint and related packages #1697
Conversation
eslint.config.js
Outdated
/** @type {import('eslint').Linter.Config[]} */ | ||
module.exports = [ | ||
{ | ||
ignores: ['dist/', 'tests/env/', 'coverage/', 'playgrounds/', 'docs/'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the replacement for .eslintignore
https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files
rules: eslint.configs.recommended.rules, | ||
}, | ||
// TypeScript linting for ts files | ||
...tseslint.configs.recommendedTypeChecked.map((config) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now TypeScript rules are also applied to test files, which wasn't the case before.
@@ -53,8 +53,8 @@ | |||
"style:fix": "yarn fmt:fix && yarn lint:fix", | |||
"fmt": "prettier -c ./**/*.{js,ts}", | |||
"fmt:fix": "prettier -w ./**/*.{js,ts}", | |||
"lint": "eslint --ext .js,.ts,.tsx .", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--ext
is deprecated and removed, we just include the proper files now with globs pattern.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1697 +/- ##
=======================================
Coverage 97.11% 97.11%
=======================================
Files 21 21
Lines 831 831
Branches 84 84
=======================================
Hits 807 807
Misses 23 23
Partials 1 1 ☔ View full report in Codecov by Sentry. |
968b476
to
2f32001
Compare
2f32001
to
4753acd
Compare
4753acd
to
974dbb0
Compare
@flevi29 don't put Also, can you fix the git conflicts? |
@curquiza fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
1697: Update ESLint and related packages r=curquiza a=flevi29 # Pull Request ## Why? ESLint received major upgrade from 8 -> 9. With this comes a new flat config. Also rules have been changed a little bit. This PR updates ESLint, related packages, and adapts config. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: F. Levi <55688616+flevi29@users.noreply.github.com>
Pull Request
Why?
ESLint received major upgrade from 8 -> 9. With this comes a new flat config. Also rules have been changed a little bit.
This PR updates ESLint, related packages, and adapts config.
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!