
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@142vip/eslint-config
Advanced tools
# 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"
}
Copyright (c) 2019-present, @142vip 储凡
仅供学习参考,商业使用请保留作者版权信息,作者不保证也不承担任何软件的使用风险。
FAQs
通用的Eslint配置规则和规范,简化Eslint配置
We found that @142vip/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.