File tree 3 files changed +34
-35
lines changed
3 files changed +34
-35
lines changed Original file line number Diff line number Diff line change @@ -21,31 +21,25 @@ body:
21
21
validations :
22
22
required : true
23
23
attributes :
24
- label : Fail
25
- description : Specify examples of code that should be detected .
24
+ label : Examples
25
+ description : Provide examples of code to detect and the acceptable alternatives .
26
26
value : |
27
27
```js
28
+ // ❌
28
29
var replace = 'me';
30
+
31
+ // ✅
32
+ const replace = 'me';
29
33
```
30
34
31
35
```js
36
+ // ❌
32
37
function foo() {
33
38
var replace = 'me';
34
39
return replace;
35
40
}
36
- ```
37
- - type : textarea
38
- validations :
39
- required : true
40
- attributes :
41
- label : Pass
42
- description : Specify examples of code that would be accepted in its place.
43
- value : |
44
- ```js
45
- const replace = 'me';
46
- ```
47
41
48
- ```js
42
+ // ✅
49
43
function foo() {
50
44
return 'me';
51
45
}
Original file line number Diff line number Diff line change @@ -20,33 +20,27 @@ body:
20
20
validations :
21
21
required : true
22
22
attributes :
23
- label : Fail
24
- description : Specify examples of code that should be detected
23
+ label : Examples
24
+ description : Provide examples of code to detect and the acceptable alternatives.
25
25
value : |
26
26
```js
27
+ // ❌
27
28
var replace = 'me';
29
+
30
+ // ✅
31
+ const replace = 'me';
28
32
```
29
33
30
34
```js
35
+ // ❌
31
36
function foo() {
32
- var replace = 'me';
33
- return replace;
37
+ var replace = 'me';
38
+ return replace;
34
39
}
35
- ```
36
- - type : textarea
37
- validations :
38
- required : true
39
- attributes :
40
- label : Pass
41
- description : Specify examples of code that would be accepted in its place
42
- value : |
43
- ```js
44
- const replace = 'me';
45
- ```
46
40
47
- ```js
41
+ // ✅
48
42
function foo() {
49
- return 'me';
43
+ return 'me';
50
44
}
51
45
```
52
46
- type : input
Original file line number Diff line number Diff line change 3
3
4
4
<!-- Remove this comment, add more detailed description. -->
5
5
6
- ## Fail
6
+ ## Examples
7
7
8
8
```js
9
+ // ❌
9
10
const foo = 'unicorn';
10
- ```
11
11
12
- ## Pass
12
+ // ✅
13
+ const foo = '🦄';
14
+ ```
13
15
14
16
```js
15
- const foo = '🦄';
17
+ // ❌
18
+ function foo() {
19
+ var replace = 'me';
20
+ return replace;
21
+ }
22
+
23
+ // ✅
24
+ function foo() {
25
+ return 'me';
26
+ }
16
27
```
You can’t perform that action at this time.
0 commit comments