
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@1inch/eslint-config
Advanced tools
Common eslint config for all node.js repositories
Install packages
pnpm install --save-dev \
@typescript-eslint/eslint-plugin@7 \
@typescript-eslint/parser@7 \
eslint@9 \
eslint-config-prettier@9 \
eslint-config-standard@17 \
eslint-plugin-import@2 \
eslint-import-resolver-typescript@3 \
eslint-plugin-n@17 \
eslint-plugin-prettier@5 \
eslint-plugin-promise@6 \
eslint-plugin-unused-imports@4 \
prettier@3 \
typescript@5 \
@eslint/compat@1 \
globals@15 \
@eslint/js@9 \
@eslint/eslintrc@3 \
@stylistic/eslint-plugin@2 \
@1inch/eslint-config@latest
And then add file eslint.config.mjs
:
import oneInchEslintConfig from "@1inch/eslint-config";
export default oneInchEslintConfig
Remove .eslintignore and use special section in eslint.config.mjs
for it. Root 1inch eslint config already have this ignores rules.
import oneInchEslintConfig from "@1inch/eslint-config";
export default [
...oneInchEslintConfig,
{
ignores: [
"**/*.mock.ts",
"**/node_modules",
"**/.github",
"**/.idea",
"**/.eslintrc-tmp.js",
"**/dist",
"**/*.json",
"**/*.yml",
"**/*.html",
"**/graph.serviceuser.postgres.repository.service.ts",
"**/migrations",
],
},
{
plugins: {
// ...
},
settings: {
// ...
},
}];
Add prettier file .prettierrc.js
:
module.exports = {
singleQuote: true,
trailingComma: 'none',
tabWidth: 4,
printWidth: 120,
bracketSpacing: false,
semi: false
}
FAQs
Common eslint config for all node.js repositories
We found that @1inch/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.