An open API service indexing awesome lists of open source software.

https://github.com/operationcode/configs

JavaScript-relevant configurations for OC projects
https://github.com/operationcode/configs

Last synced: 10 months ago
JSON representation

JavaScript-relevant configurations for OC projects

Awesome Lists containing this project

README

          

# eslint-plugin-custom-rules

Custom ESLint Rules for [Operation Code](https://github.com/operationCode/) Projects.

## Installation

```bash
yarn add -D @operation_code/eslint-plugin-custom-rules
```

## Usage

Add `@operation_code/custom-rules` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
"plugins": ["@operation_code/custom-rules"]
}
```

Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"@operation_code/custom-rules/proptype-definition-above-fn": "error"
}
}
```

## Supported Rules

- `proptype-definition-above-fn`