
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@swanide/eslint-plugin-swan
Advanced tools
eslint plugin for swan program.
support codes:
swan
Baidu smart program tpl languagesjs
JavasSript codeYou'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @swanide/eslint-plugin-swan
:
$ npm install @swanide/eslint-plugin-swan --save-dev
Install @swanide/eslint-plugin-swan
global.
$ npm install eslint @swanide/eslint-plugin-swan -g
Use swan-lint
to lint mini program project.
$ swan-lint .
Use different lint level.
$ SWAN_LINT_CONFIG=[base|recommended|strict] swan-lint .
base
basic lint rules, must be fixedrecommended
recommended lint rulesstrict
strict lint rulesAdd swan
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@swanide/swan"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@swanide/swan/valid-bind": 2
}
}
FAQs
swan eslint plugin
We found that @swanide/eslint-plugin-swan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.