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.
@rimac-technology/eslint-config
Advanced tools
yarn add -D @rimac-technology/eslint-config eslint
root
of the project called .eslintrc.json
{
"extends": ["@rimac-technology/eslint-config/core"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
}
project
field (under parserOptions
) is pointing to the correct path to your
tsconfig.json
You can add the following ruleset to your .eslintrc.json
file under extends
section (example below)
"@rimac-technology/eslint-config/react"
"@rimac-technology/eslint-config/jest"
"@rimac-technology/eslint-config/type-graphql"
"@rimac-technology/eslint-config/mobx"
"@rimac-technology/eslint-config/testing-library"
General
The following is added to .eslintrc.json
{
"extends": [
"@rimac-technology/eslint-config/core",
"@rimac-technology/eslint-config/<optional-ruleset-name>"
]
}
Targeting only some files
If you prefer more granular control of which files some-ruleset considers when linting you can target those
by using overrides
and globs
{
"overrides": [
{
"files": ["**/__tests__/**/*.[jt]s?(x)"],
"extends": ["@rimac-technology/eslint-config/some-ruleset"]
}
]
}
File>Settings>Languages & Frameworks>Javascript>Code Quality Tools>ESLint
Automatic ESLint Configuration
run eslint --fix on save
Rules can be overridden by adding them to the rules
section in .eslintrc.json
like the following example
where we disable the space-infix-ops
rule
{
"extends": ["@rimac-technology/eslint-config/core"],
"rules": {
"space-infix-ops": "off"
}
}
Little fellow sometimes has problems. Here is how to help if it doesn't work:
node_modules
File>Invalidate Caches>Invalidate and Restart
Check if it works from the terminal. If it does, you IDE might be the problem here.
In package.json
, specify the path to the folder where you cloned eslint-config
on your computer and place
it instead of the version.
Then you can use it like any other lib.
// Current
{
"@rimac-technology/eslint-config": "^19.0.0"
}
{
"@rimac-technology/eslint-config": "../eslint-config"
}
FAQs
A shareable ESLint configuration
We found that @rimac-technology/eslint-config 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.