Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add issue template for a rule change #2279

Merged
merged 8 commits into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/rule_change.yml
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