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-jota
Advanced tools
This is a very opinionated linting configuration used by our small and not well-established company Jota One. It's opinionated in the way that it's Vue and Typescript oriented, with a glimpse of prettier to automatically rearrange your ugly code.
The package is shipped with 2 options (for now). Let's check how to integrate them in your eslint.config.js file (yes it's done for flat config only).
And as we're supporting Typescript, we'll demonstrate their usage directly in a type-safe way:
// @ts-check
import jota from 'eslint-config-jota'
import tseslint from 'typescript-eslint'
export default tseslint.config(
...jota,
{
rules: {
'your-other-rules': 'error'
}
}
)
This configuration will bring you directly a delightful linting for your JS/TS files and Vue Single File components. It provides the recommanded schemes from Vue, JS and TS eslint configs.
On top of that, it will also sort your imports and rewrite your code with our own home-cooked prettier settings.
The above base setting is not that easy to respect as is, especially if you're adding it to an existing project.
To make things easier, you can add the.... easier config that will in fact disable a few errors. Once added, your eslint.config.js file should look like this:
// @ts-check
import jota from 'eslint-config-jota'
import easier from 'eslint-config-jota/easier'
import tseslint from 'typescript-eslint'
export default tseslint.config(
...jota,
...easier,
{
rules: {
'your-other-rules': 'error'
}
}
)
FAQs
Jota default linting configuration
We found that eslint-config-jota demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.