feat: Initial steps for ESLint 9 upgrade (bot-provided) #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Commit made by Google Jules.]
This commit includes the initial changes for upgrading ESLint from v8 to v9.
Key changes made:
package.json
Updates:peerDependencies.eslint
to>=9.0.0
.devDependencies.eslint-config-wikimedia
due to current incompatibility with ESLint 9 and flat config.devDependencies.eslint-docgen
due to likely incompatibility with ESLint 9's RuleTester changes and age.devDependencies.eslint-plugin-eslint-plugin
from^4.1.0
to^6.4.0
for ESLint 9 compatibility.dependencies.eslint-plugin-vue
from^9.23.0
to^10.1.0
for ESLint 9 compatibility.scripts.doc
to removeeslint-docgen
execution.ESLint Configuration Migration:
eslint.config.js
with a flat configuration structure..eslintrc.json
(root) andtests/.eslintrc.json
.eslint-plugin-eslint-plugin
and basic settings.Custom Rule Updates (
src/rules/
):src/rules/valid-package-file-require.js
: replacedcontext.getFilename()
withcontext.filename
.src/rules/vue-exports-component-directive.js
: replacedcontext.getFilename()
withcontext.filename
.class-doc.js
,msg-doc.js
,no-extended-unicode-identifiers.js
,no-nodelist-unsupported-methods.js
,no-vue-dynamic-i18n.js
) were checked and appear compatible with respect to schema, context usage (via utils or direct), and rule style.Next Steps (as per original plan):
tests/rules/
forRuleTester
changes and stricter checks.npm test
) and address any failures or new linting errors.I am providing this now as our current interaction is nearing its end. Further work is required to complete the ESLint 9 upgrade, particularly around updating and verifying the test suite.