• This project
    • Loading...
  • Sign in

Hooke / vben-admin

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • vben-admin
  • internal
  • lint-configs
  • eslint-config
  • src
  • configs
  • prettier.ts
  • hookehuyr's avatar
    feat: 初始化项目基础结构和配置 · 68b2d1af ...
    68b2d1af
    添加项目基础文件结构、配置文件和核心功能模块
    包括Vite配置、样式、工具函数、组件库和文档等基础架构
    hookehuyr authored 2026-01-06 10:46:30 +0800
prettier.ts 412 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import type { Linter } from 'eslint';

import { interopDefault } from '../util';

export async function prettier(): Promise<Linter.Config[]> {
  const [pluginPrettier] = await Promise.all([
    interopDefault(import('eslint-plugin-prettier')),
  ] as const);
  return [
    {
      plugins: {
        prettier: pluginPrettier,
      },
      rules: {
        'prettier/prettier': 'error',
      },
    },
  ];
}