Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@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
The npm package @swanide/eslint-plugin-swan receives a total of 3 weekly downloads. As such, @swanide/eslint-plugin-swan popularity was classified as not popular.
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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.