Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 30, 2025

ESLint v9+ requires the new flat config format (eslint.config.js) instead of the legacy .eslintrc JSON format.

Changes

  • New eslint.config.js: Migrated all rules to flat config format

    • Converted env/parserOptions to languageOptions with globals package
    • Replaced no-native-reassignno-global-assign
    • Removed deprecated rules no longer in ESLint v9: no-catch-shadow, no-reserved-keys, no-new-object, newline-after-var, handle-callback-err, no-spaced-func, no-wrap-func, no-mixed-requires
  • Deleted .eslintrc

// Before: .eslintrc (JSON)
{
  "env": { "node": true, "es2021": true },
  "parserOptions": { "sourceType": "module" },
  "rules": { ... }
}

// After: eslint.config.js (flat config)
const globals = require('globals');
module.exports = [{
  languageOptions: {
    sourceType: 'module',
    ecmaVersion: 2021,
    globals: { ...globals.node, arguments: 'writable' },
  },
  rules: { ... }
}];

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.zone.vision
    • Triggering command: /usr/local/bin/node node test.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Convert the current old ESlint config to the new config format. Create a PR with the changes.


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

…rmat

Co-authored-by: fvdm <93784+fvdm@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Nov 30, 2025

Coverage Status

coverage: 100.0%. remained the same
when pulling 8456cba on copilot/convert-eslint-config-format
into c6f01f4 on develop.

Copilot AI changed the title [WIP] Convert old ESLint config to new format Convert ESLint config to flat config format Nov 30, 2025
Copilot AI requested a review from fvdm November 30, 2025 01:38
Copilot finished work on behalf of fvdm November 30, 2025 01:38
@fvdm fvdm marked this pull request as ready for review November 30, 2025 01:40
@fvdm fvdm merged commit b153386 into develop Nov 30, 2025
16 checks passed
@fvdm fvdm deleted the copilot/convert-eslint-config-format branch November 30, 2025 02:03
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.

3 participants