@appdirect/ds-enforce

中文文档
0.0.19发布于 2026/11/06UNLICENSEDTypeScriptESM + CJS零依赖近 30 天下载 2920

ESLint, Stylelint, and Mantine types that keep apps on the AppDirect design system.

原始使用文档

@appdirect/ds-enforce

ESLint plugin, Stylelint config, and Mantine type overrides for the AppDirect design system.

const enforce = require('@appdirect/ds-enforce/eslint');
@import '@appdirect/ds-enforce/stylelint';

TypeScript picks up @appdirect/ds-enforce/mantine.

Component contracts:

import contracts from '@appdirect/ds-enforce/contracts';
import button from '@appdirect/ds-enforce/contracts/Button.json';

版本与发布记录

@appdirect/ds-enforce 共发布 20 个版本,首次发布于 2026/10/14;过去 12 个月发布了 20 个版本。

版本发布日期距今
0.0.19latest2026/11/062 天前
0.0.182026/10/318 天前
0.0.172026/10/2811 天前
0.0.162026/10/2711 天前
0.0.152026/10/2712 天前
0.0.142026/10/2712 天前

关于 @appdirect/ds-enforce 的常见问题

@appdirect/ds-enforce 是什么?

ESLint, Stylelint, and Mantine types that keep apps on the AppDirect design system.

如何安装 @appdirect/ds-enforce?

在项目目录运行 npm install @appdirect/ds-enforce,或使用 pnpm add / yarn add / bun add。

@appdirect/ds-enforce 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@appdirect/ds-enforce 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@appdirect/ds-enforce 可以商用吗?

@appdirect/ds-enforce 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@appdirect/ds-enforce 的下载量有多少?

根据 npm 官方下载统计,@appdirect/ds-enforce 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,920 次,日均约 97 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@appdirect/ds-enforce 还在维护吗?

最新版本 0.0.19 发布于 2026/11/06(2 天前);至今共发布 20 个版本,其中过去 12 个月发布了 20 个;首次发布于 2026/10/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。