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.
@swimlane/eslint-config
Advanced tools
Rules for eslint used in Swimlane's Javascript (etc) development.
Install:
npm install --save-dev eslint @swimlane/eslint-config eslint-plugin-security
Create an .eslintrc.yml file with the following:
env:
browser: true
commonjs: true
es2021: true
extends:
- '@swimlane'
parserOptions:
ecmaVersion: 12
Install:
npm install --save-dev eslint @swimlane/eslint-config eslint-plugin-security
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
Create an .eslintrc.yml
file with the following:
env:
browser: true
es2021: true
node: true
extends:
- '@swimlane/eslint-config/typescript'
parserOptions:
ecmaVersion: 12
sourceType: module
If using prettier (for example @swimlane/prettier-config-swimlane) you should follow instructions in the eslint-config-prettier readme to install and setup eslint-config-prettier
. For example for es6 config your
.eslintrc.yml
file will be:
env:
browser: true
commonjs: true
es2021: true
extends:
- '@swimlane'
- 'prettier'
parserOptions:
ecmaVersion: 12
Major (new linting errors)
Minor (same or fewer linting errors)
Patch (non-user-facing changes)
@swimlane/eslint-config
is a Swimlane open-source project; we
believe in giving back to the open-source community by sharing some of the
projects we build.
Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
2.0.0 (2021-01-13)
@typescript-eslint/naming-convention
@typescript-eslint/no-shadow
@typescript-eslint/no-non-null-assertion
security/detect-non-literal-fs-filename
FAQs
Linting rules for Javascript
The npm package @swimlane/eslint-config receives a total of 846 weekly downloads. As such, @swimlane/eslint-config popularity was classified as not popular.
We found that @swimlane/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.