@department-of-veterans-affairs/eslint-config-mobile

中文文档
0.22.1发布于 2024/08/27ISC近 30 天下载 4458

VA Design System Mobile ESLint Configuration

原始使用文档

VA Mobile Design System - Linting Package

The Linting package contains an ESLint config for use by consumers of the VA Design System Mobile Component Library to automatically issue deprecation notices when outdated components are being used.

For consumers

These steps assume you already have eslint installed for your project as a devDependency and configured correctly.

  1. Add @department-of-veterans-affairs/eslint-config-mobile as a devDependency to your project
    • Note: Your version should match your components package version to behave correctly
  2. In your eslint config file, add to the extends attribute: @department-of-veterans-affairs/mobile

Once configured, running linting on your project should emit warnings for using outdated components.

If linting is part of your continuous integration checks and warnings cause failures, the following can be added to your CI linting script to suppress the warnings during CI:

--rule 'deprecate/import: off'

For contributors

Not much to say for contributors as this is just a set of linting rules.

This package leverages the eslint-plugin-deprecate package to issue deprecation notices as part of linting. As there is no real code and nothing to be run, contributing is as simple as editing the linting rules in the GitHub web interface and creating a PR.

Versioning of this package should be aligned with the components package.

版本与发布记录

@department-of-veterans-affairs/eslint-config-mobile 共发布 21 个版本,首次发布于 2023/12/06;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.22.1latest2024/08/272 年前
0.22.02024/08/262 年前
0.18.1-alpha.0alpha2024/08/202 年前
0.18.02024/06/252 年前
0.17.02024/06/252 年前
0.16.02024/06/252 年前

关于 @department-of-veterans-affairs/eslint-config-mobile 的常见问题

@department-of-veterans-affairs/eslint-config-mobile 是什么?

VA Design System Mobile ESLint Configuration

如何安装 @department-of-veterans-affairs/eslint-config-mobile?

在项目目录运行 npm install @department-of-veterans-affairs/eslint-config-mobile,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:eslint(>= 8)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@department-of-veterans-affairs/eslint-config-mobile 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/department-of-veterans-affairs__eslint-config-mobile 是否存在。

@department-of-veterans-affairs/eslint-config-mobile 可以商用吗?

@department-of-veterans-affairs/eslint-config-mobile 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@department-of-veterans-affairs/eslint-config-mobile 的下载量有多少?

根据 npm 官方下载统计,@department-of-veterans-affairs/eslint-config-mobile 在 2026/10/12 – 2026/11/10 这 30 天内被下载 4,458 次,日均约 149 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@department-of-veterans-affairs/eslint-config-mobile 还在维护吗?

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