From 65473ed8554a4ae53386caccac6cf3d8f8b41afb Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Sat, 2 Nov 2024 16:15:14 +0100 Subject: [PATCH] docs: add `compat.extends` example with plugin config --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b23d22b..cdcf0a6 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ const compat = new FlatCompat({ export default [ // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), + ...compat.extends("standard", "example", "plugin:react/recommended"), // mimic environments ...compat.env({ @@ -49,11 +49,11 @@ export default [ }), // mimic plugins - ...compat.plugins("airbnb", "react"), + ...compat.plugins("jsx-a11y", "react"), // translate an entire config ...compat.config({ - plugins: ["airbnb", "react"], + plugins: ["jsx-a11y", "react"], extends: "standard", env: { es2020: true, @@ -84,7 +84,7 @@ const compat = new FlatCompat({ module.exports = [ // mimic ESLintRC-style extends - ...compat.extends("standard", "example"), + ...compat.extends("standard", "example", "plugin:react/recommended"), // mimic environments ...compat.env({ @@ -93,11 +93,11 @@ module.exports = [ }), // mimic plugins - ...compat.plugins("airbnb", "react"), + ...compat.plugins("jsx-a11y", "react"), // translate an entire config ...compat.config({ - plugins: ["airbnb", "react"], + plugins: ["jsx-a11y", "react"], extends: "standard", env: { es2020: true,