Support flat config and upgrade eslint to v9 by gracepark · Pull Request #571 · github/eslint-plugin-github (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Conversation
- closes https://github.com/github/web-systems/issues/2568, https://github.com/github/web-systems/issues/2569, Add support for flat config #513
This allows us to support flat config and provides testing for both:
- Upgrades the plugin to v9
- Flat config
- Legacy config remains in the same location
- I've created test-examples which allows testing for both legacy and flat configs:
- For legacy, run:
npm run test-examples:legacyon 8.57 without flat config - For flat, run:
npm run test-examples:flaton 8.57 with flat config
- For legacy, run:
Testing
I used yalc to test this package with other repos:
- clipboard-copy-element: This is on v8.42.0 and on legacy eslintrc.json config. I was able to "update" the
eslint-plugin-githubplugin and rannpm run lintand it ran as expected. - codeql-action: eslint is on 8.57.1 and on flat config. I was able to "update" the
eslint-plugin-github, rannpm run lintand it ran as expected.
gracepark changed the title
Support flat config Support flat config and upgrade eslint to v9
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I love the new test examples and that you tested different repos 😄
gracepark deleted the gracepark-support-flat-config branch
arelia linked an issue
that may beclosed by this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})