Skip to content

Commit

Permalink
Add issue template for a rule change (#2279)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
3 people committed May 10, 2024
1 parent d8f8161 commit 94b6f5e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/rule_change.yml
@@ -0,0 +1,55 @@
name: Rule change
description: A rule could be improved or extended?
title: "`rule-name`: "
labels:
- change request
- evaluating
body:
- type: markdown
attributes:
value: |
Before opening a new issue:
- Look for existing [open or closed rule proposals](https://github.com/sindresorhus/eslint-plugin-unicorn/issues?q=is:issue+label%25enhancement)
- [Report a bug](https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?assignees=&labels=&projects=&template=bug_report.md) instead if it's a false positive
- type: textarea
validations:
required: true
attributes:
label: Description
description: Explain the improvement you would like to see.
- type: textarea
validations:
required: true
attributes:
label: Fail
description: Specify examples of code that should be detected.
value: |
```js
var replace = 'me';
```
```js
function foo() {
var replace = 'me';
return replace;
}
```
- type: textarea
validations:
required: true
attributes:
label: Pass
description: Specify examples of code that would be accepted in its place.
value: |
```js
const replace = 'me';
```
```js
function foo() {
return 'me';
}
```
- type: textarea
attributes:
label: Additional Info

0 comments on commit 94b6f5e

Please sign in to comment.