Migrate eslint config to 9.x#2262
Merged
nhsd-david-wass merged 2 commits intodevelopfrom May 8, 2025
Merged
Conversation
65362b1 to
1085248
Compare
Contributor
francisco-videira-nhs
left a comment
There was a problem hiding this comment.
A couple of questions:
- I wonder if we can delete the
.eslintrc.jsnow? - Was the new config file created via the migration tool? (I left a comment with more detail in the file.)
- I wonder if it's worth doing some manual testing by perhaps changing in some files and checking if the linter is working as expected, as this won't otherwise be tested?
Contributor
There was a problem hiding this comment.
I wonder if this was created via npx @eslint/migrate-config .eslintrc.json? I got a different result on my end. But seems to be fairly similar. I got a eslint.config.js (as opposed to .mjs)
const {
defineConfig,
} = require("eslint/config");
const globals = require("globals");
module.exports = defineConfig([{
languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
},
"ecmaVersion": 2018,
parserOptions: {},
},
"extends": "eslint:recommended",
"rules": {},
}]);
Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.0.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.0.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
fa07581 to
137724c
Compare
Contributor
francisco-videira-nhs
left a comment
There was a problem hiding this comment.
Looks good. Just a minor comment on commented out lines.
Comment on lines
+3
to
+4
| //import js from "@eslint/js"; | ||
| //import globals from "globals"; |
Contributor
There was a problem hiding this comment.
Wondering if these can be taken out?
137724c to
0f14abd
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add any other relevant notes or explanations here. Remove this line if you have nothing to add.
Reviews Required
Review Checklist
ℹ️ This section is to be filled in by the reviewer.