Skip to content

Commit

Permalink
Meta: Use new template form for rule proposals (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 8, 2021
1 parent 014b4dc commit 6423799
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/rule_proposal.md

This file was deleted.

49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/rule_proposal.yml
@@ -0,0 +1,49 @@
name: Rule proposal
description: Have an idea for a new rule?
title: "Rule proposal: "
labels:
- new rule
- 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%3Aissue+label%3A%22new+rule%22)
- type: textarea
validations:
required: true
attributes:
label: Description
description: Explain here why this rule would be beneficial
- 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';
}
```

0 comments on commit 6423799

Please sign in to comment.