-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: migrate to ESLint v9 #76
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
base: main
Are you sure you want to change the base?
Conversation
b24b643
to
dd66af8
Compare
"require-unicode-regexp": "off", | ||
"regexp/optimal-quantifier-concatenation": "off", | ||
"n/no-process-exit": "off", | ||
"n/no-unsupported-features/es-syntax": "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.
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 prepared a PR to drop node.js <18: #77
"require-unicode-regexp": "off", | ||
"regexp/optimal-quantifier-concatenation": "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.
It seems that updating the regex may not be appropriate here given the formal .eslintrc.yml
setup, so I’ve turned it off.
Line 8 in f975c63
require-unicode-regexp: 0 |
uses: actions/setup-node@v5 | ||
with: | ||
node-version: '12.x' | ||
node-version: '22.x' |
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.
The CI only runs the lint
script, and ESLint v9 requires Node.js 18 or newer, so I've set it to Node.js 22.
I'm marking this as a draft until #77 is resolved. |
Prerequisites checklist
What is the purpose of this pull request?
In this PR, I've migrated to ESLint v9.
It seems that it's been a while since the ESLint configuration was last updated.
I've referenced the CommonJS setup in the following link:
https://github.com/eslint/eslint-github-bot/blob/main/eslint.config.js
I've only updated the JavaScript code that was reported by the new rules.
What changes did you make? (Give an overview)
In this PR, I've migrated to ESLint v9.
Related Issues
Ref: #75, #72
Is there anything you'd like reviewers to focus on?
N/A