Skip to content

Conversation

Copy link

Copilot AI commented Feb 9, 2026

Modernizes tooling to latest stable versions: TypeScript 4.5→5.9, ESLint 8→9, typescript-eslint 5→8, Prettier 2→3, and replaces Jest with Vitest.

Package Updates

  • TypeScript 4.5.5 → 5.9.3
  • ESLint 8.9.0 → 9.21.0
  • @typescript-eslint/{parser,eslint-plugin} 5.12.0 → 8.54.0
  • Prettier 2.5.1 → 3.8.1
  • Vitest 4.0.18 (new, replaces Jest)
  • Other: esbuild, husky, lint-staged, @types/node

ESLint 9 Flat Config Migration

Migrated from legacy .eslintrc.js to ESLint 9's flat config format:

// eslint.config.js
const tseslint = require('@typescript-eslint/eslint-plugin');
const tsparser = require('@typescript-eslint/parser');

module.exports = [
    { ignores: ['dist/**', 'node_modules/**', 'coverage/**'] },
    js.configs.recommended,
    {
        files: ['**/*.{js,ts}'],
        languageOptions: { parser: tsparser, /* ... */ },
        plugins: { '@typescript-eslint': tseslint },
        rules: { /* preserved existing rules */ }
    }
];

Removed deprecated .eslintrc.js and .eslintignore.

Jest → Vitest Migration

// vitest.config.ts
export default defineConfig({
    test: {
        globals: true,
        environment: 'node',
        include: ['tests/**/*.{test,spec}.{ts,js}']
    },
    resolve: {
        alias: { '@': './src', '@tests': './tests' }
    }
});
  • Removed jest.config.js, jest, ts-jest, @types/jest
  • Updated tsconfig.json types: jestvitest/globals
  • Updated test snapshots to Vitest format (cosmetic: Array [[, Object {{)
  • Changed npm scripts: jest testsvitest run

Minor Changes

  • Applied Prettier 3 formatting (trailing commas, minor whitespace)
  • Removed unused ESLint disable directives flagged by new parser
Original prompt

refactor to use the latest package versions for eslint and typescript. make sure to update the eslint and prettier configs to use the latest. also install vitest package as a dev dep and convert the jest config to vitest config. take as long as you need.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 9, 2026 02:08
Co-authored-by: patinthehat <5508707+patinthehat@users.noreply.github.com>
Co-authored-by: patinthehat <5508707+patinthehat@users.noreply.github.com>
Co-authored-by: patinthehat <5508707+patinthehat@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor project to use latest eslint and typescript package versions Upgrade to TypeScript 5.9, ESLint 9 (flat config), Prettier 3, and migrate Jest to Vitest Feb 9, 2026
Copilot AI requested a review from patinthehat February 9, 2026 02:14
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