From a2359b77172c0b0bc8a65b1b648dcab174ad931b Mon Sep 17 00:00:00 2001 From: Sebastian Luque Date: Wed, 6 Nov 2024 22:09:03 -0500 Subject: [PATCH] update readme --- .changeset/flat-vans-switch.md | 5 +++++ README.md | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .changeset/flat-vans-switch.md diff --git a/.changeset/flat-vans-switch.md b/.changeset/flat-vans-switch.md new file mode 100644 index 0000000..938168c --- /dev/null +++ b/.changeset/flat-vans-switch.md @@ -0,0 +1,5 @@ +--- +"swd-eslint-config": patch +--- + +add nextjs optional plugin diff --git a/README.md b/README.md index 11930cd..88d329e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ This is a custom eslint config for my projects. It uses the latest flat config v }, ...swdEslintPlugin.configs.base, // if using React: - ...swdEslintPlugin.configs.react + ...swdEslintPlugin.configs.react( + { framework: "next" } // optional + ) ); ``` @@ -43,7 +45,9 @@ This is a custom eslint config for my projects. It uses the latest flat config v extends: [ ...swdEslintPlugin.configs.base, // if using React: - ...swdEslintPlugin.configs.react, + ...swdEslintPlugin.configs.react( + { framework: "next" } // optional + ), ], }); ```