Skip to content

Fix super-linter v8 ESLint configuration error#21

Merged
chrisreddington merged 2 commits into
dependabot/github_actions/super-linter/super-linter-8from
copilot/sub-pr-15
Dec 14, 2025
Merged

Fix super-linter v8 ESLint configuration error#21
chrisreddington merged 2 commits into
dependabot/github_actions/super-linter/super-linter-8from
copilot/sub-pr-15

Conversation

Copilot AI commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Super-linter v8 upgraded to ESLint 9.39.1, which failed with Cannot find package '@eslint/json' when loading .github/linters/eslint.config.mjs.

Changes

  • Removed @eslint/json plugin dependency from ESLint config
  • Simplified config to validate JavaScript files only
  • JSON validation continues via super-linter's native VALIDATE_JSON: true

Config Before

import json from "@eslint/json";

export default [
  {
    files: ["**/*.json"],
    plugins: { json },
    // ...
  },
  // ...
];

Config After

export default [
  {
    files: ["**/*.js"],
    languageOptions: {
      sourceType: "script",
      // ...
    }
  }
];

Testing Limitation

This branch doesn't trigger the lint workflow (runs only on main). Local ESLint validation passes, but CI validation requires workflow dispatch or merge to confirm.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: chrisreddington <791642+chrisreddington@users.noreply.github.com>
@chrisreddington
chrisreddington marked this pull request as ready for review December 14, 2025 22:26
@chrisreddington
chrisreddington merged commit 7e5e4b7 into dependabot/github_actions/super-linter/super-linter-8 Dec 14, 2025
@chrisreddington
chrisreddington deleted the copilot/sub-pr-15 branch December 14, 2025 22:26
Copilot AI restored the copilot/sub-pr-15 branch December 14, 2025 22:26
Copilot AI changed the title [WIP] Bump super-linter/super-linter from 7 to 8 Fix super-linter v8 ESLint configuration error Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants