-
Notifications
You must be signed in to change notification settings - Fork 994
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: brought in typescript-eslint@v8 with stylistic preset #10911
chore: brought in typescript-eslint@v8 with stylistic preset #10911
Conversation
packages/auth-providers/dbAuth/setup/src/__tests__/setup.test.ts
Outdated
Show resolved
Hide resolved
packages/babel-config/src/plugins/babel-plugin-redwood-directory-named-import.ts
Outdated
Show resolved
Hide resolved
@JoshuaKGoldberg I like the fixes/changes to the source code that this has prompted! Would you be up for moving those out into a separate PR that we can merge right away? This PR currently touches so many files it's highly likely a bunch of them will change while we wait for v8 to reach GA. So to not have to worry about so many potential merge conflicts I figured we could get those changes merged asap 🙂 |
You got it! #10924 |
From 55 to 8 changed files after #10924 got merged! Nice! |
// 'recommended' rules we alter | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
// TODO: look into enabling these eventually | ||
'@typescript-eslint/no-empty-function': 'off', |
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.
I tried turning this on, but didn't see any errors being reported.
Same for the rule below.
Am I doing something wrong? Or was this to limit the effect of this PR on user's apps?
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.
Oh shoot sorry @Tobbe, I missed this comment. It was to limit the effect of this PR on user's apps. I remember that some of these had >0 failures but didn't pay attention to which.
@JoshuaKGoldberg I pushed through the renovate update to get us to v8. Do you want me to get this PR back to a non conflicted state and look to get this in? |
Sure! Let me know if you run out of time, I can help too. 🙂 |
Last time I was working on linting rules I hacked together a quick script which helps me understand the impact on a users project. A summary of what that has told me is:
|
I'm happy with those user facing changes to go out in our current v8 major release. @JoshuaKGoldberg Are you happy with this PR and I'll merge? |
No blockers from me! I'll note that |
Awesome I'll look over this again and then merge it! The little diff script just dumps all the changes in applied linting rules it finds. Thanks for confirming that though! |
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.
LGTM
…pload-link * 'main' of github.com:redwoodjs/redwood: chore(linting): Remove/fix references to non-existant files (redwoodjs#11245) chore(rsa): Use swc for parsing server actions (redwoodjs#11243) chore(lint): Remove override for 'unused-imports/no-unused-imports' (redwoodjs#11244) chore(linting): Separate out framework and user linting config (redwoodjs#11242) fix: Update default tsconfig options (target, module and moduleResolution) (redwoodjs#11170) chore(fixture): Update tailwind dep (redwoodjs#11241) chore(deps): bump fast-xml-parser from 4.4.0 to 4.4.1 (redwoodjs#11239) chore(rsc): Switch last remaining transform-server test to inline snapshot (redwoodjs#11240) chore: brought in typescript-eslint@v8 with stylistic preset (redwoodjs#10911) chore(deps): bump axios from 1.7.3 to 1.7.4 (redwoodjs#11237) docs(serverConfig): Remove server config option from TOML (redwoodjs#11236) fix(deps): update typescript-eslint monorepo to v8 (major) (redwoodjs#11235)
This applies two internal tooling updates:
stylistic
config for internal code (noteslint-config
)Any changes (will be) commented inline. This also doesn't tackle three good followups:
TODO:
comment in.eslintrc.js
There should be no user-facing functional changes. It should just be cleanups.
rc-v8
versions oftypescript-eslint
. Just posting as a reference prior to v8 going stable.rc-v8
- it'll just have slightly fewer changes...This PR came out of a casual conversation with @Tobbe. I'm happy to file an issue / make a more formal internal tooling request if you'd prefer. ❤️