-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add issue template for a rule change (#2279)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com> Co-authored-by: fisker Cheung <lionkay@gmail.com>
- Loading branch information
1 parent
d8f8161
commit 94b6f5e
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |