
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
@homebound/eslint-plugin
Advanced tools
custom rules for homebound projects
You'll first need to install ESLint:
yarn add -D eslint
Next, install @homebound/eslint-plugin
:
yarn add -D @homebound/eslint-plugin
Add homebound-rules
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["@homebound"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@homebound/no-b-add-column": 2
}
}
Name                                 | Description |
---|---|
no-b-add-column | we should be using the custom addColumn for indexing purposes, rather than the MigrationBuilder's addColumn |
no-cyanaudit-in-migrations | Prevents running cyanaudit logic in migrations |
prevent-test-file-imports-in-app-code | Prevents importing test code in application logic |
This repository followed this tutorial to initialize.
TL;DR:
yarn yo eslint
Rule
homebound
ESLint Plugin
no-b-add-column
docs/rules/your-rule.md
test/lib/rules/your-rule.js
babel-eslint
to quickly test a tool in the UI. Add pass/fail code to the top left, and iterate on your rule in the bottom left. The bottom right will show the ESLint output of your rule. Use the Top Right to explore the AST (I suggest turning on Methods, and turning off Location Data and Type Keys)FAQs
Custom rules for homebound projects
We found that @homebound/eslint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 40 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.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.