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 + ), ], }); ```