From 8a66a46af23d19376f46fe7d216f66d4483fa180 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Wed, 8 Nov 2023 08:45:10 -0800 Subject: [PATCH] docs: fixing some incorrect docs for the `no-dual-exports` rule --- packages/eslint-plugin/docs/no-dual-exports.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/eslint-plugin/docs/no-dual-exports.md b/packages/eslint-plugin/docs/no-dual-exports.md index 246dc0cd..e17ce6b0 100644 --- a/packages/eslint-plugin/docs/no-dual-exports.md +++ b/packages/eslint-plugin/docs/no-dual-exports.md @@ -10,14 +10,11 @@ export interface ReducerOptions { tags?: string[]; } -export function reducer(definition: OASDocument, opts: ReducerOptions = {}) { +export default function reducer(definition: OASDocument, opts: ReducerOptions = {}) { /** code here */ } ``` -```js -export default class SDK {} -``` ## Pass @@ -27,7 +24,11 @@ export interface ReducerOptions { tags?: string[]; } -export default function reducer(definition: OASDocument, opts: ReducerOptions = {}) { +export function reducer(definition: OASDocument, opts: ReducerOptions = {}) { /** code here */ } ``` + +```js +export default class SDK {} +```