@nimblehq/eslint-config-nimble-react

1.4.0 • Public • Published

@nimblehq/eslint-config-nimble-react

This package provides ESLint React rules

Installation

  npm install --save-dev @nimblehq/eslint-config-nimble-react

Usage

Standalone

Add @nimblehq/eslint-config-nimble-react to the extends section of your .eslintrc configuration file.

{
  "extends": [
      "@nimblehq/eslint-config-nimble-react"
  ],
  "rules": {
    // Additional, per-project rules...
  }
}

If the targeting project is using jest and cypress, add @nimblehq/eslint-config-nimble-testing as the following extension

{
  "extends": [
      "@nimblehq/eslint-config-nimble-react",
      "@nimblehq/eslint-config-nimble-testing"
  ],
  "rules": {
    // Additional, per-project rules...
  }
}

With a framework

Similar to the process above, but usually it requires adding the extra rules for the JS framework:

{
  "extends": [
      "@nimblehq/eslint-config-nimble-react",
      "@nimblehq/eslint-config-nimble-testing",
      "plugin:vue/recommended"
  ],
  "rules": {
    // Additional, per-project rules...
  }
}

This would require defining the required dependencies in the project itself.

License

This project is Copyright (c) 2021 and onwards Nimble. It is free software and may be redistributed under the terms specified in the LICENSE file.

About

Nimble

This project is maintained and funded by Nimble.

We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.

Package Sidebar

Install

npm i @nimblehq/eslint-config-nimble-react

Weekly Downloads

33

Version

1.4.0

License

MIT

Unpacked Size

5.91 kB

Total Files

9

Last publish

Collaborators

  • dev-nimbl3
  • olivierobert
  • dev-nimblehq