Skip to content

Commit

Permalink
chore: 💡 remove useless disable
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 18, 2023
1 parent 46064ce commit 509c2f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/remark-fff/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ export const remarkFFF: Plugin<[RemarkFFFOptions]>
(_tree, file) => {
// make TS happy
const post: _Post = file as unknown as _Post
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
const path = post.filename ?? post.path
const fm = transform(
{
/* eslint-disable unicorn/no-nested-ternary */
...(options.target === 'mdsvex'
? post.data.fm
: (options.target === 'astro'
? post.data.astro.frontmatter
// eslint-disable-next-line unicorn/no-nested-ternary
: (options.target === 'nuxt'
? post.data
: post.data))),
/* eslint-enable unicorn/no-nested-ternary */
},
[
...options.presets,
Expand Down

0 comments on commit 509c2f1

Please sign in to comment.