🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@ausuliv/eslint-config-redhat-cloud-services

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ausuliv/eslint-config-redhat-cloud-services

Recommended eslint configuration used in cloud.redhat.com frontend apps.

latest
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

Installation

NPM

$ npm i --save-dev @redhat-cloud-services/eslint-config-redhat-cloud-services

YARN

$ yarn add -D @redhat-cloud-services/eslint-config-redhat-cloud-services

Configuration

Eslint

In your eslint configuration extends this eslint config

{
    "extends": "@redhat-cloud-services/eslint-config-redhat-cloud-services"
}

You can also extend multiple configurations and customize your rules

{
  "extends": ["@redhat-cloud-services/eslint-config-redhat-cloud-services", "other-config", ...],
  "rules": {
    "no-console": "warn"
  }
}

Prettier

If you are not using prettier, firtst add prettier.config.js.

Add this content to your prettier configuration file:

module.exports = {
  ...require('@redhat-cloud-services/eslint-config-redhat-cloud-services/prettier.config.js'),
  // For more configuration options visit: https://prettier.io/
};

Used packages

  • eslint-config-prettier
  • eslint-plugin-prettier
  • eslint-plugin-react
  • prettier

Keywords

eslint

FAQs

Package last updated on 12 Jun 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