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
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