diff --git a/README.md b/README.md index 46061c62..a73d9a35 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,17 @@ npm install eslint-plugin-compat ### 2. Update ESLint Config -#### `.eslintrc.json` +#### New Config (`eslint.config.mjs`) + +```js +import compat from "eslint-plugin-compat" + +export default [ + compat.configs['flat/recommended'] +]; +``` + +#### Legacy Config (`.eslintrc.json`) ```jsonc {