Skip to content

Commit 2b0aa3a

Browse files
authored
docs: add compat.extends example with plugin config (#173)
1 parent 3e3b80a commit 2b0aa3a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const compat = new FlatCompat({
4040
export default [
4141

4242
// mimic ESLintRC-style extends
43-
...compat.extends("standard", "example"),
43+
...compat.extends("standard", "example", "plugin:react/recommended"),
4444

4545
// mimic environments
4646
...compat.env({
@@ -49,11 +49,11 @@ export default [
4949
}),
5050

5151
// mimic plugins
52-
...compat.plugins("airbnb", "react"),
52+
...compat.plugins("jsx-a11y", "react"),
5353

5454
// translate an entire config
5555
...compat.config({
56-
plugins: ["airbnb", "react"],
56+
plugins: ["jsx-a11y", "react"],
5757
extends: "standard",
5858
env: {
5959
es2020: true,
@@ -84,7 +84,7 @@ const compat = new FlatCompat({
8484
module.exports = [
8585

8686
// mimic ESLintRC-style extends
87-
...compat.extends("standard", "example"),
87+
...compat.extends("standard", "example", "plugin:react/recommended"),
8888

8989
// mimic environments
9090
...compat.env({
@@ -93,11 +93,11 @@ module.exports = [
9393
}),
9494

9595
// mimic plugins
96-
...compat.plugins("airbnb", "react"),
96+
...compat.plugins("jsx-a11y", "react"),
9797

9898
// translate an entire config
9999
...compat.config({
100-
plugins: ["airbnb", "react"],
100+
plugins: ["jsx-a11y", "react"],
101101
extends: "standard",
102102
env: {
103103
es2020: true,

0 commit comments

Comments
 (0)