🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more
Socket
Book a DemoInstallSign in
Socket

@cloud-ru/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloud-ru/eslint-config

Config and dependencies for eslint.config.js

Source
npmnpm
Version
1.1.3-preview-db5de6a.0
Version published
Weekly downloads
297
57.14%
Maintainers
1
Weekly downloads
 
Created
Source

@cloud-ru/eslint-config

Установка: npm i @cloud-ru/eslint-config

Вместе с пакетом приезжают все необходимые зависимости для работы eslint в вашем приложении.

Usage

For monorepositories:

// projectRoot/eslint.config.mjs
import monorepoEslintConfig from '@cloud-ru/eslint-config/monorepo';

// simple usage
export default monorepoEslintConfig;

// extended usage with rules
export default [
  ...monorepoEslintConfig,
  {
    files: ['packages/config-playwright/src/**/*.ts'],
    rules: {
      'react-hooks/rules-of-hooks': 'off',
    },
  },
];

For other projects:

// projectRoot/eslint.config.mjs
import baseConfig from '@cloud-ru/eslint-config';

export default baseConfig;

Tips

Usage deprecation annotation

  /**
  * @deprecated Any message
  * */
  const deprecatedConstant = 'deprecatedConstant';

  // Eslint: 'deprecatedConstant' is deprecated. Any message ('deprecation/deprecation')
  deprecatedConstant

FAQs

Package last updated on 24 Dec 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