-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: update templates for eslint v9 #179
Conversation
903b05a
to
d416481
Compare
d416481
to
602f39b
Compare
@mdjermanovic can you push a new release of |
friendly ping @mdjermanovic |
Sorry, I missed this. I believe |
The exported eslinrc was exclusively utilized within the eslint repo. Additionally, the progress of eslint/eslint#18011 was blocked by vscode-eslint😅. I am in favor of pushing a release to unblock eslint repos upgrading to eslint v9. |
That's true for our repos, but it's still a public package used by others as well, so the expectation would be that the flat config and eslintrc exports are equivalent, which most likely isn't the case anymore. I left an idea in eslint/eslint#18011 (comment). |
Yes, but there might be when we release it. And I think it's anyway best to release eslint-config-eslint v10 without eslintrc. |
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.
Here are a couple of suggestions:
- Since Node.js 21 reaches end-of-life on June 1, 2024 I suggest to replace it with Node.js 22, which was released already on April 24, 2024. (Also in
.github/workflows/ci.yml
) - Replace the unmaintained npm-run-all (last released 5 years ago) with the compatible, maintained fork npm-run-all2
yes, but node v21 is still supported - dropping it is a breaking change. I just added v22. |
You are right about the breaking change. Sorry I didn't notice that! |
npm reports peer dependency issues due to
|
plugin/templates/_eslint.config.mjs
Outdated
|
||
export default [ | ||
pluginJs.configs.recommended, | ||
pluginNode.configs["flat/recommended"], |
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 ran yo eslint:plugin
to create a plugin and it was successful.
But, running npm run lint:js
in the plugin reports:
C:\projects\tmp\tmp\eslint.config.mjs
1:1 error Parsing error: 'import' and 'export' may appear only with 'sourceType: module'
✖ 1 problem (1 error, 0 warnings)
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.
fixed in ed00e49
1. use flat config 2. add .npmrc (package-lock=false), just same as eslint repo 3. update required node.js & eslint
e0af2aa
to
ed00e49
Compare
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, thanks!
fixes #172