From ee89e1fed6460f19395a081ab57f68dd0c9ea32d Mon Sep 17 00:00:00 2001 From: Tsuyoshi HARA Date: Tue, 24 Sep 2024 19:34:15 +0900 Subject: [PATCH] docs(README): Fix sample codes --- packages/eslint-config-wantedly-typescript/README.md | 4 ++-- packages/eslint-config-wantedly/README.md | 4 ++-- packages/eslint-plugin-use-macros/README.md | 6 +++--- packages/eslint-plugin-wantedly/README.md | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/eslint-config-wantedly-typescript/README.md b/packages/eslint-config-wantedly-typescript/README.md index 79a9f288..04cc44b5 100644 --- a/packages/eslint-config-wantedly-typescript/README.md +++ b/packages/eslint-config-wantedly-typescript/README.md @@ -13,14 +13,14 @@ It exports configurations as "Flat config". ```js import { base as configWantedlyTS } from "eslint-config-wantedly-typescript"; -export default { +export default [ ...configWantedlyTS, { rules: { // Your rules go here. } } -}; +]; ``` ### Usage (version 3.x and under) diff --git a/packages/eslint-config-wantedly/README.md b/packages/eslint-config-wantedly/README.md index ee406d4f..fb669aec 100644 --- a/packages/eslint-config-wantedly/README.md +++ b/packages/eslint-config-wantedly/README.md @@ -13,14 +13,14 @@ It exports configurations as "Flat config". ```js import { base as configWantedly } from "eslint-config-wantedly"; -export default { +export default [ ...configWantedly, { rules: { // Your rules go here. } } -}; +]; ``` ### Usage (version 3.x and under) diff --git a/packages/eslint-plugin-use-macros/README.md b/packages/eslint-plugin-use-macros/README.md index a7a5a16a..3b80d862 100644 --- a/packages/eslint-plugin-use-macros/README.md +++ b/packages/eslint-plugin-use-macros/README.md @@ -54,16 +54,16 @@ yarn add eslint-plugin-use-macros ```js import pluginUseMacros from "eslint-plugin-use-macros"; -export default { +export default [ { plugins: { "use-macros": pluginUseMacros, }, rules: { "use-macros/styled-components": "error", - } + }, }, -} +]; ``` ### With "Legacy Config" diff --git a/packages/eslint-plugin-wantedly/README.md b/packages/eslint-plugin-wantedly/README.md index 3b72e023..35c7029e 100644 --- a/packages/eslint-plugin-wantedly/README.md +++ b/packages/eslint-plugin-wantedly/README.md @@ -34,16 +34,16 @@ yarn add eslint-plugin-wantedly ```js import pluginWantedly from "eslint-plugin-wantedly"; -export default { +export default [ { plugins: { - "wantedly": pluginWantedly, + wantedly: pluginWantedly, }, rules: { - "wantedly/graphql-pascal-case-type-name": ["error", { "autofix": true }], - } + "wantedly/graphql-pascal-case-type-name": ["error", { autofix: true }], + }, }, -} +]; ``` ### With "Legacy Config"