Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

576 B
Raw Blame
import prettier from '@lobehub/prettier-config';

export default {
  ...prettier,
  overrides: [
    ...prettier.overrides,
    {
      /**
       * Leave shell code blocks in docs untouched. prettier-plugin-sh parses command synopses such as
       * `lh model view <id> [--json]` as real shell and rewrites `<id>` into a redirection and
       * `[--json]` into a glob. Standalone `.sh` files keep the shell formatter.
       */
      files: ['*.md', '*.mdx'],
      options: { plugins: prettier.plugins.filter((plugin) => plugin !== 'prettier-plugin-sh') },
    },
  ],
};