New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@142vip/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@142vip/eslint-config

通用的Eslint配置规则和规范,简化Eslint配置

latest
Source
npmnpm
Version
0.0.1-alpha.5
Version published
Maintainers
1
Created
Source

@142vip/eslint-config

NPM version

安装

# npm
npm install @142vip/eslint-config -D
# pnpm
pnpm i @142vip/eslint-config -D

快速配置

本模块是在@antfu/eslint-config模块基础上封装的,可以自定义配置忽略文件校验规则,例如:

import { defineVipEslintConfig } from '@142vip/eslint-config'

export default defineVipEslintConfig({
  ignores: [
    '**/CHANGELOG.md',
  ],
  rules: {
    // 用于在模块构建后基于dist导出时找不到文件,忽略校验
    'antfu/no-import-dist': 1,
  },
})

同时,使用eslint:8.55.0版本,支持IDEA上配置使用

使用

在项目根目录中的package.json文件中,添加如下命令,校验项目,例如:

{
  "lint": "npx eslint .",
  "lint:fix": "npx eslint ."
}

也可以配合@142vip/fairy-cli模块,配置命令换成:

{
  "lint": "npx fa lint",
  "lint:fix": "npx fa lint --fix"
}

参考

证书

MIT

Copyright (c) 2019-present, @142vip 储凡

仅供学习参考,商业使用请保留作者版权信息,作者不保证也不承担任何软件的使用风险。

Keywords

公众号搜:储凡

FAQs

Package last updated on 23 Sep 2025

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