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
- Host: GitHub
- URL: https://github.com/operationcode/configs
- Owner: OperationCode
- Created: 2019-10-18T00:36:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-11T18:22:24.000Z (over 3 years ago)
- Last Synced: 2025-02-12T09:49:06.887Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 14
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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`