2.0.4 • Published 1 month ago

@redhat-cloud-services/eslint-config-redhat-cloud-services v2.0.4

Weekly downloads
169
License
Apache
Repository
-
Last release
1 month ago

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

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
2.0.4

1 month ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.3.0

1 year ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.1-beta.4

3 years ago

1.0.1-beta.2

3 years ago

1.0.1-beta.3

3 years ago

1.0.1-beta.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.1

3 years ago

0.0.1

4 years ago

0.0.0

4 years ago