From 263236717bd0802ab36c44af475e25189fc2be0b Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Wed, 24 Aug 2022 14:56:31 -0700 Subject: [PATCH] docs: Update README with FlatCompat options (#86) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11ff46ec..61a3a55d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,10 @@ The primary class in this package is `FlatCompat`, which is a utility to transla ```js import { FlatCompat } from "@eslint/eslintrc"; -const compat = new FlatCompat(); +const compat = new FlatCompat({ + baseDirectory: __dirname, // optional; default: process.cwd() + resolvePluginsRelativeTo: __dirname // optional +}); export default [