🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@voya-kit/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voya-kit/eslint-config

voya eslint 配置

latest
npmnpm
Version
0.0.4
Version published
Weekly downloads
2
-80%
Maintainers
1
Weekly downloads
 
Created
Source

@voya-kit/eslint-config

简介

@voya-kit/eslint-config 是一套基于 ESLint 的代码质量检查规则集合,为 JavaScript 和 TypeScript 项目提供一致性和高质量的编码标准。适用于各类前端及Node.js后端项目。

安装

1. 安装 ESLint

首先确保你的项目中已安装了 ESLint。如果尚未安装,可以通过以下命令进行安装:

npm install eslint --save-dev

2. 安装 @voya-kit/eslint-config

安装 @voya-kit/eslint-config 插件:

npm install @voya-kit/eslint-config --save-dev

使用

在你的项目根目录下创建或修改 .eslintrc.* 文件(如 .eslintrc.json, .eslintrc.yml),并继承 @voya/eslint-config 的规则:

{
  "extends": ["@voya-kit/eslint-config"]
}

快速上手

运行 ESLint 检查代码:

npx eslint yourfile.js

如何处理版本冲突或依赖问题?

确保你的 eslint 和 @voya-kit/eslint-config 版本兼容。如有依赖冲突,可通过锁定具体版本或升级相关依赖解决。

Keywords

eslint-config

FAQs

Package last updated on 11 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts