Socket
Book a DemoInstallSign in
Socket

@croquiscom/eslint-config

Package Overview
Dependencies
Maintainers
15
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@croquiscom/eslint-config

ESLint configuration used by Kakaostyle Node.js projects

latest
Source
npmnpm
Version
3.2.1
Version published
Maintainers
15
Created
Source

설정 방법

npm install --save-dev eslint typescript @croquiscom/eslint-config로 패키지를 추가하고, 다음과 같이 eslint.config.mjs를 작성한다. (각 프로젝트에 맞는 추가 설정 필요)

import baseConfig from '@croquiscom/eslint-config/requiring-type-checking.mjs';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default tseslint.config(
  ...baseConfig,
  {
    languageOptions: {
      globals: {
        ...globals.node,
      },

      parserOptions: {
        projectService: true,
        tsconfigRootDir: import.meta.dirname,
        project: `${import.meta.dirname}/tsconfig.json`,
      },
    },

    settings: {
      'import/resolver': {
        typescript: {
          project: `${import.meta.dirname}/tsconfig.json`,
        },
      },
    },

    rules: {},
  },
  {
    ignores: ['eslint.config.mjs'],
  },
);

FAQs

Package last updated on 16 Apr 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