Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@1inch/eslint-config

Package Overview
Dependencies
Maintainers
0
Versions
6
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

  • 3.0.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
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 \
  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
}

FAQs

Package last updated on 21 Aug 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc