Skip to content

Migrate to ESLint flat config - #770

Draft
thewilkybarkid with Copilot wants to merge 3 commits into
mainfrom
copilot/use-eslint-new-configuration-format
Draft

Migrate to ESLint flat config#770
thewilkybarkid with Copilot wants to merge 3 commits into
mainfrom
copilot/use-eslint-new-configuration-format

Conversation

Copilot AI commented Aug 25, 2026

Copy link
Copy Markdown

Moves from the legacy .eslintrc.json format to ESLint's flat config format (eslint.config.js), required since ESLint v9.

Changes

  • eslint bumped ^8.57.0^10.9.1
  • typescript-eslint added — the canonical flat-config wrapper that exposes tseslint.config() and replaces direct parser/plugin wiring
  • eslint.config.js created — replaces .eslintrc.json with equivalent rules, per-glob overrides, and eslint-config-prettier integration
  • .eslintrc.json removed
  • .eslintignore removed — patterns moved into the ignores array in eslint.config.js
// eslint.config.js (flat config)
export default tseslint.config(
  { ignores: ['.dev/', 'dist/', 'integration-results/', 'node_modules/', 'src/.observablehq/'] },
  tseslint.configs.strictTypeChecked,
  tseslint.configs.stylisticTypeChecked,
  importPlugin.flatConfigs.recommended,
  importPlugin.flatConfigs.typescript,
  ...markdown.configs.recommended,
  eslintConfigPrettier,
  { /* custom rules */ },
  { files: ['**/*.js'], extends: [tseslint.configs.disableTypeChecked] },
  // …per-glob overrides
)

Copilot AI and others added 3 commits August 25, 2026 17:02
Co-authored-by: thewilkybarkid <1784740+thewilkybarkid@users.noreply.github.com>
Co-authored-by: thewilkybarkid <1784740+thewilkybarkid@users.noreply.github.com>
Co-authored-by: thewilkybarkid <1784740+thewilkybarkid@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