Skip to content

Commit

Permalink
docs: fixing some incorrect docs for the no-dual-exports rule
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Nov 8, 2023
1 parent 1a8e276 commit 8a66a46
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/eslint-plugin/docs/no-dual-exports.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 {}
```

0 comments on commit 8a66a46

Please sign in to comment.