This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@ttou/define-config
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • Public • Published

Define Config

配置文件定义辅助工具

包名 版本 配置格式
eslint >= 8.0.0 cjs
prettier >= 3.0.0 cjs、esm
postcss >= 8.0.0 cjs
commitlint >= 17.0.0 cjs
cz-customizable >= 7.0.0 cjs
babel >= 7.0.0 cjs
stylelint >= 14.0.0 cjs
lint-staged >= 13.0.0 cjs、esm
simple-git-hooks >= 13.0.0 cjs

说明

  • 从 3.1.0 开始移除了 Jest,推荐使用 Vitest
  • 从 3.1.0 开始移除了 Rollup,推荐使用 Vite 或 tsup 等新型打包工具
  • lint-stagedsimple-git-hooks 这种简单格式的配置推荐直接写在 package.json

示例

CJS

const { defineEslintConfig } = require('@ttou/define-config')

module.exports = defineEslintConfig({
  // 具体配置
})

ESM

import { definePrettierConfig } from '@ttou/define-config'

export default definePrettierConfig({
  // 具体配置
})

/@ttou/define-config/

    Package Sidebar

    Install

    npm i @ttou/define-config

    Weekly Downloads

    2

    Version

    3.3.0

    License

    MulanPSL2

    Unpacked Size

    14.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • ttou