Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

ESLint v9 drops support for .eslintrc.* files and requires the new flat config format.

Changes

  • Add eslint.config.mjs - Migrates all existing rules from .eslintrc.js to flat config format
    • Preserves TypeScript parser configuration and plugin rules
    • Maintains ignore patterns and custom rule overrides
    • Uses .mjs extension to avoid Node.js module resolution warnings

Configuration Example

export default [
  {
    ignores: ['node_modules/', 'build/', 'dist/', '*.js', '!eslint.config.mjs'],
  },
  {
    files: ['**/*.ts', '**/*.tsx'],
    languageOptions: {
      parser: tsParser,
      parserOptions: { ecmaVersion: 2018, sourceType: 'module' },
    },
    plugins: { '@typescript-eslint': typescriptEslint },
    rules: {
      ...typescriptEslint.configs.recommended.rules,
      '@typescript-eslint/no-var-requires': 'off',
      // ... other custom rules
    },
  },
];

The old .eslintrc.js can be removed once this is merged.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 2, 2026 08:27
Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>
Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>
Copilot AI changed the title [WIP] Update npm and yarn group with eslint updates Migrate ESLint configuration to v9 flat config format Feb 2, 2026
Copilot AI requested a review from RetricSu February 2, 2026 08:31
@RetricSu RetricSu marked this pull request as ready for review February 3, 2026 03:04
@RetricSu RetricSu merged commit f47921c into dependabot/npm_and_yarn/npm_and_yarn-1266c79630 Feb 12, 2026
@RetricSu RetricSu deleted the copilot/sub-pr-381 branch February 12, 2026 01:38
RetricSu added a commit that referenced this pull request Feb 12, 2026
…updates (#381)

* build(deps): bump the npm_and_yarn group across 4 directories with 2 updates

Bumps the npm_and_yarn group with 1 update in the / directory: [eslint](https://github.com/eslint/eslint).
Bumps the npm_and_yarn group with 1 update in the /templates/v3/js-script-next-js directory: [eslint](https://github.com/eslint/eslint).
Bumps the npm_and_yarn group with 1 update in the /templates/v3/next-js-template/frontend directory: [eslint](https://github.com/eslint/eslint).
Bumps the npm_and_yarn group with 1 update in the /templates/v3/remix-vite-template/frontend directory: [eslint](https://github.com/eslint/eslint).


Updates `eslint` from 8.57.1 to 9.26.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/v9.26.0/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.1...v9.26.0)

Updates `eslint` from 8.57.1 to 9.26.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/v9.26.0/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.1...v9.26.0)

Updates `js-yaml` from 3.14.1 to 3.14.2
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@3.14.1...3.14.2)

Updates `eslint` from 8.57.0 to 9.39.2
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/v9.26.0/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.1...v9.26.0)

Updates `eslint` from 8.57.0 to 9.39.2
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/v9.26.0/CHANGELOG.md)
- [Commits](eslint/eslint@v8.57.1...v9.26.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.26.0
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: eslint
  dependency-version: 9.26.0
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: js-yaml
  dependency-version: 3.14.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: eslint
  dependency-version: 9.39.2
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: eslint
  dependency-version: 9.39.2
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>

* Migrate ESLint configuration to v9 flat config format (#382)

* Initial plan

* Migrate ESLint config from v8 to v9 flat config format

Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>

* Improve ESLint config ordering per best practices

Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RetricSu <23436060+RetricSu@users.noreply.github.com>
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