
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@afuteam/eslint-plugin-fe
Advanced tools
安装 ESLint 和 @afuteam/eslint-plugin-fe
:
npm i eslint @afuteam/eslint-plugin-fe --save-dev
在 .eslintrc
配置文件中, 引入 @afuteam/eslint-plugin-fe
插件
{
"plugins": ["@afuteam/fe"]
}
然后根据项目类型, 配置对应规则
// js + react
{
"extends": [
"plugin:@afuteam/fe/react-js"
],
"plugins": ["@afuteam/fe"]
}
// js + vue2
{
"extends": ["plugin:@afuteam/fe/vue2-js"],
"plugins": ["@afuteam/fe"]
}
// js + vue3
{
"extends": ["plugin:@afuteam/fe/vue3-js"],
"plugins": ["@afuteam/fe"]
}
// ts + react 包含js规则
{
"extends": [
"plugin:@afuteam/fe/react-ts"
],
"plugins": ["@afuteam/fe"]
}
// ts + vue2 包含js规则
{
"plugins": ["@afuteam/fe"],
"extends": ["plugin:@afuteam/fe/vue2-ts"]
}
// ts + vue3 包含js规则
{
"plugins": ["@afuteam/fe"],
"extends": ["plugin:@afuteam/fe/vue3-ts"]
}
查看当前支持的类型,列出清单
npx @afuteam/eslint-plugin-fe@latest --help=type
使用
npx @afuteam/eslint-plugin-fe@latest --type=react-ts --path=src/
2.0.7
complexity
;complexity
新增规则 complexity-without-switchcase
,需要配合 @afuteam/fe
的 plugin
使用2.0.1
FAQs
AfuTeam ESLint Plugin
The npm package @afuteam/eslint-plugin-fe receives a total of 3 weekly downloads. As such, @afuteam/eslint-plugin-fe popularity was classified as not popular.
We found that @afuteam/eslint-plugin-fe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.