Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
eslint-plugin-supaur
Advanced tools
数跑定制eslint验证, 以及集合规则包
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-supaur
:
npm install eslint-plugin-supaur --save-dev
Add supaur
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"supaur"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"supaur/rule-name": 2
}
}
规则 | 描述 |
---|---|
plugin:supaur/supaur | 定制规则 |
plugin:supaur/vue | vue常规规则 |
plugin:supaur/ts | ts常规规则 |
[!CAUTION]
项目解析器采用 vue-eslint-parser + @typescript-eslint/parser 组合解析用作解析
[!CAUTION]
规则 | 描述 |
---|---|
valid-templete-computed | 模板复杂计算,建议使用computed |
valid-func-name | 方法名需要带指定动词开头 |
valid-ref | 不要通过ref与parent调用实例的方法和属性 |
valid-router | 请使用/xxx-xxx/xxx-xxx格式 |
[!CAUTION] 目前以实现功能为主, 并未分析上下文语法, 后续会逐渐完善, 有问题可提出, 会及时完善
FAQs
数跑定制eslint验证, 以及集合规则包
We found that eslint-plugin-supaur demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.