@tuling-ai/lint
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@tuling/lint

一个集成了多种代码规范配置的工具包,帮助您快速在项目中设置和维护代码质量标准。

📦 功能特性

  • ESLint 配置 - JavaScript/TypeScript 代码规范
  • Stylelint 配置 - CSS/SCSS 样式规范
  • Commitlint 配置 - Git 提交信息规范
  • Changelog 配置 - 变更日志生成规范
  • Remark 配置 - Markdown 文档规范
  • Prettier 配置 - 代码格式化规范
  • Semantic Release 配置 - 语义化发布规范

📦 安装

$ bun add @tuling/lint -D

🤯 使用指南

.npmrc 配置

为了确保依赖包正确提升,请在项目根目录添加以下配置:

public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*

ESLint 配置

在项目根目录创建 .eslintrc.js

module.exports = require('@tuling/lint').eslint;

配置详情可查看 .eslintrc.js

Stylelint 配置

在项目根目录创建 .stylelintrc.js

module.exports = require('@tuling/lint').stylelint;

配置详情可查看 .stylelintrc.js

Commitlint 配置

在项目根目录创建 .commitlintrc.js

module.exports = require('@tuling/lint').commitlint;

配置详情可查看 .commitlintrc.js

Changelog 配置

在项目根目录创建 .changelogrc.js

module.exports = require('@tuling/lint').changelog;

配置详情可查看 .changelogrc.js

Remark 配置

在项目根目录创建 .remarkrc.js

module.exports = require('@tuling/lint').remarklint;

配置详情可查看 .remarkrc.js

Prettier 配置

在项目根目录创建 .prettierrc.js

module.exports = require('@tuling/lint').prettier;

配置详情可查看 .prettierrc.js

Semantic Release 配置

在项目根目录创建 .releaserc.js

module.exports = require('@tuling/lint').semanticRelease;

配置详情可查看 .releaserc.js

⌨️ 本地开发

$ cd tuling/lint
$ bun install
$ bun start

📝 协议

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @tuling-ai/lint

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

38.4 kB

Total Files

25

Last publish

Collaborators

  • leeql