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-config-globeletjs
Advanced tools
A basic ESLint configuration for GlobeletJS modules
To use this configuration in your module, run:
npm install --save-dev eslint eslint-config-globeletjs
Then add the following in an .eslintrc.json
in the project's root directory:
{
"extends": "globeletjs"
}
Finally, add a linting script to your package.json
file:
"scripts": {
"lint": "eslint src examples/*/*.js",
"pretest": "npm run lint"
}
To see which of your code is inconsistent with the GlobeletJS coding style, you can run
npm run lint
If you are brave, you can automatically fix errors in a given file as follows:
npx eslint --fix file.js
Many popular standards, including the AirBnB, Google, and Standard style guides, require single quotes for strings.
GlobeletJS uses double quotes, except where single quotes can help avoid the need to escape a double quote within the string. There are 2 main reasons for this:
One reason given for single quotes is that it allows HTML strings to be written without escapes. (The values of HTML attributes are typically enclosed in double quotes.) We don't accept this argument, for two reasons:
FAQs
A basic ESLint configuration for GlobeletJS modules
The npm package eslint-config-globeletjs receives a total of 3 weekly downloads. As such, eslint-config-globeletjs popularity was classified as not popular.
We found that eslint-config-globeletjs 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.