diff --git a/.changeset/tidy-steaks-arrive.md b/.changeset/tidy-steaks-arrive.md index eb39fae..b1b2e37 100644 --- a/.changeset/tidy-steaks-arrive.md +++ b/.changeset/tidy-steaks-arrive.md @@ -3,8 +3,8 @@ 'eslint-plugin-widen': major --- -Update to eslint 9, Apps will need to be on eslint 9+ alongside this update. -They will also need to convert their .eslintrc and .eslint ignore into the new +Update to eslint 9, apps will need to be on eslint 9+ alongside this update. +They will also need to convert their .eslintrc and .eslintignore into the new format of eslint.config.mjs. Here is a migration guide that goes over the basics https://eslint.org/docs/latest/use/configure/migration-guide. For general usage and a sample eslint.config.mjs see the updated readme in this repo. diff --git a/eslint.config.mjs b/eslint.config.mjs index 05ee29e..bdb4551 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -8,6 +8,8 @@ import { fileURLToPath } from 'node:url' const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) +// This is in place until https://github.com/typescript-eslint/typescript-eslint +// updates to v8 const compat = new FlatCompat({ allConfig: js.configs.all, baseDirectory: __dirname,