🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@1inch/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1inch/eslint-config

Common eslint config for all node.js repositories

latest
Source
npmnpm
Version
3.0.8
Version published
Maintainers
6
Created
Source

eslint-config

Common eslint config for all node.js repositories

Install

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 \
  @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

Package last updated on 21 Oct 2025

Did you know?

Socket

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.

Install

Related posts