-
Notifications
You must be signed in to change notification settings - Fork 87
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 pacakges #1697
base: main
Are you sure you want to change the base?
Conversation
/** @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 77 84 +7
=======================================
Hits 807 807
- Misses 23 24 +1
+ Partials 1 0 -1 ☔ View full report in Codecov by Sentry. |
c32f029
to
968b476
Compare
968b476
to
2f32001
Compare
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!