1.0.4 • Published 2 years ago

eslint-plugin-guesty v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

eslint-plugin-guesty

===================

Guesty specific linting rules for eslint

Installation

yarn add -D eslint@^7.32.0 eslint-plugin-guesty

Configuration

Use our preset to get defaults:

{
  "extends": [
    "eslint:recommended",
    "plugin:guesty/recommended"
  ]
}

Add "guesty" to the plugins section.

{
  "plugins": [
    "guesty"
  ]
}

If you do not use a preset you will need to specify individual rules and add extra configuration.

{
  "rules": {
    "guesty/no-testing": "error"
  }
}

Enable JSX support.

With eslint 2+

{
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  }
}

Shareable configurations

Recommended

This plugin exports a recommended configuration that enforces React good practices.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "extends": ["eslint:recommended", "plugin:guesty/recommended"]
}

See eslint documentation for more information about extending configuration files.

License

eslint-plugin-guesty is licensed under the MIT License.