-
Notifications
You must be signed in to change notification settings - Fork 21
chore(Table): refine ActionsColumn warning #352
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
Conversation
I wonder if we should continue using also, @thatblindgeye - curious how this will work in relation to #344 on first pass without fix... their code will likely be pointing to |
That sounds accurate to me. Whichever one (this or 344) gets in last we can double check that though in the test.tsx file and tweak things from there if needed. |
@gitdallas @thatblindgeye Swapped back to |
@thatblindgeye @kmcfaul an update on how it looks with the dropdown deprecation: running the fix will clear the codemod errors/warnings look like this: should this issue also (only?) check for dropdown from the might have to say the same for |
Maybe...? If we're not trying/expecting for the fix flag to fix everything with a single pass, then it may not be a bad idea to only target the deprecated path. |
Wouldn't that mean the order that the codemods run in will matter then? Because the codemod to update the deprecated path would have to run its fix before this codemod would detect the conditions to warn the user about the mismatch. I could update the codemod to look in both directories maybe, or am I overthinking this? Edit: updated to look in both import locations |
packages/eslint-plugin-pf-codemods/lib/rules/v5/table-warn-actionsColumn.js
Outdated
Show resolved
Hide resolved
we may run into this situation.. v4 codemods have a similar issue in
so CardHeader exists both before and after... but differently. They solved the issue by adding a |
Now will issue a warning, and only if both the Table import and ActionsColumn/DropdownToggle are also imported.