-
Notifications
You must be signed in to change notification settings - Fork 56
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 filenames #578
Update filenames #578
Conversation
eslint.config.js
Outdated
@@ -23,7 +23,7 @@ module.exports = [ | |||
plugins: { | |||
eslintPlugin, | |||
importPlugin, | |||
filenames, | |||
filenamesPlugin: fixupPluginRules(filenames), |
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.
does it matter that it's not a string like 'i18n-text'
on the next line?
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.
That should be okay - what I ended up doing was bringing in the filenames match regex rule into github. The filenames plugin is no longer supported and the compat utility was not working for our rule configuration.
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.
added one comment i'm not sure about but otherwise looks good
Co-authored-by: Arelia Jones <[email protected]>
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.
looks good, but I'm not familiar with how GitHub does open source so I wonder if it matters that the filenames plugin didn't have a LICENSE.md and is there anything else we should do when bringing it over. It might be worth pinging the team
The filenames plugin is no longer maintained, and I was running into an issue that
fixupPluginRules
would not fix for us using the compat utility in eslint v9. It needs theschema
:https://github.com/github/eslint-plugin-github/pull/578/files#diff-b1acaab48d8385d990537662bf4fa3dd489b8974367f0628147c83977534feb4R13
Since the plugin is no longer being maintained, I decided to bring that particular regex rule into the
github
rules with the fix so that we no longer need to rely on thefilename
plugin.