MIT License

项目介绍

taoyage/yg-configs 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 267 个 Star、42 次 Fork。

仓库全名
taoyage/yg-configs
开源许可证
MIT License
Star 数
267
Fork 数
42

README 摘要

yg-configs 🛠📦 CLI toolbox for common scripts for my front-end projects Table of Contents Installation Usage config prettier config eslint config commitlint config lintstaged config stylelint config postcss config swc config babel example Installation Usage This can be a very helpful way to make editor integration work for tools like ESLint,babel,prettier,commitlint which require project-based configuration to be…

完整内容见 GitHub 原始 README 或本页 。

常见问题

yg-configs 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 267 个 Star。

yg-configs 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 yg-configs 的源码?

可以直接克隆仓库:git clone https://github.com/taoyage/yg-configs.git,默认分支为 master;安装与运行步骤见仓库 README。

yg-configs 最近还在维护吗?

仓库最近一次更新为 2025年7月20日,当前没有未关闭的 Issue;Star 数为 267,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

CLI toolbox for common scripts for front-end projects

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
379
价值分
175
活跃状态
活跃

语言占比

JavaScript
Shell
TypeScript

README

yg-configs 🛠📦

license npm

CLI toolbox for common scripts for my front-end projects


Table of Contents

Installation

$ npm install @taoyage/configs --save-dev
or
$ pnpm install @taoyage/configs -D

Usage

This can be a very helpful way to make editor integration work for tools like ESLint,babel,prettier,commitlint which require project-based configuration to be present to work.

config prettier

if we were to do this for prettier, you could create an .prettierrc.js with the contents of

module.exports = require('@taoyage/configs/prettier');

config eslint

if we were to do this for eslint of typescript react project, you could create an .eslintrc.js with the contents of

module.exports = require('@taoyage/configs/eslint-ts');

create tsconfig.json with the contents of

{
    "extends": "@taoyage/configs/shared-tsconfig",
    "compilerOptions": {},
    "exclude": [],
    "include": []
}

config commitlint

if were to do this for commitlint, you could create an .commitlintrc.js with the contents of

module.exports = require('@taoyage/configs/commitlint');

config lintstaged

if were to do this for lintstaged, you could create an .lintstagedrc.js with the contents of

module.exports = require('@taoyage/configs/lintstaged');

config stylelint

if were to do this for stylelint, you could create an .stylelintrc.js with the contents of

module.exports = require('@taoyage/configs/stylelint');

config postcss

if were to do this for postcss, you could create an postcss.config.js with the contents of

module.exports = require('@sk/configs/postcss');

config swc

if were to do swc-loader to webpack configure,you could import this swc configuration, this configuration suport typescript program. example of

  import swcOptions from '@taoyage/configs/swc-ts';

  module: {
    rules: [
      {
        test: /\.ts?x$/,
        use: {
          loader: 'swc-loader',
          options: swcOptions(rootPath, { isDev: false, override: {} }),
        },
      },
    ],
  },

params description type
rootPath tsconfig.json file path string
isDev current is dev or production bool
override swc compilation config object

config babel

if were todo babel-loader to webpack configure to react, you could create an .babelrc.js with content of

module.exports = {
    presets: [['@taoyage/configs/babel']],
};

TODO

  • eslint config
  • tsconfig
  • prettier
  • commitlint config
  • lintstage config
  • stylelint config
  • swc config
  • babel config
  • browserslist

评论

暂无评论