This repository was archived by the owner on Jun 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +50
-9
lines changed Expand file tree Collapse file tree 4 files changed +50
-9
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ module.exports = {
32
32
'SwitchCase' : 1
33
33
}
34
34
] ,
35
+ 'react/jsx-no-target-blank' : [
36
+ 2
37
+ ] ,
35
38
'react/jsx-indent' : [
36
39
'error' ,
37
40
2
Original file line number Diff line number Diff line change @@ -20,7 +20,15 @@ export default class HelpInstallSnap extends Component {
20
20
</ code >
21
21
</ pre >
22
22
< p className = { styles . p } >
23
- Don’t have snapd installed? < a className = { styles . external } href = { HELP_INSTALL_URL } target = "_blank" > Install it now</ a > .
23
+ Don’t have snapd installed? { ' ' }
24
+ < a
25
+ className = { styles . external }
26
+ href = { HELP_INSTALL_URL }
27
+ rel = "noreferrer noopener"
28
+ target = "_blank"
29
+ >
30
+ Install it now
31
+ </ a > .
24
32
</ p >
25
33
</ div >
26
34
) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ const getErrorCode = (error) => {
19
19
const Agreement = ( props ) => {
20
20
const checkbox = < input type = "checkbox" onChange = { props . onChange } /> ;
21
21
const link = (
22
- < a className = { styles . external } href = { AGREEMENT_URL } target = "_blank" >
22
+ < a
23
+ className = { styles . external }
24
+ href = { AGREEMENT_URL }
25
+ target = "_blank"
26
+ rel = "noreferrer noopener"
27
+ >
23
28
Developer Programme Agreement
24
29
</ a >
25
30
) ;
@@ -136,7 +141,14 @@ const Caption = (props) => {
136
141
< p > < ErrorIcon /> Sorry, { reason } . Try a different name.</ p >
137
142
< p className = { styles . helpText } >
138
143
If you think you should have sole rights to the name,
139
- you can < a href = { FILE_NAME_CLAIM_URL } target = '_blank' > file a claim</ a > .
144
+ you can
145
+ < a
146
+ href = { FILE_NAME_CLAIM_URL }
147
+ target = '_blank'
148
+ rel = "noreferrer noopener"
149
+ >
150
+ file a claim
151
+ </ a > .
140
152
</ p >
141
153
</ div >
142
154
) ;
Original file line number Diff line number Diff line change @@ -40,14 +40,32 @@ const UnconfiguredDropdown = (props) => {
40
40
installable, and runnable.
41
41
</ p >
42
42
< p className = { styles . helpText } >
43
- < a href = { LEARN_THE_BASICS_LINK } target = "_blank" > Learn the basics</ a > ,
44
- or
45
- < a href = { getTemplateUrl ( snap ) } target = "_blank" > get started with a template</ a > .
43
+ < a
44
+ href = { LEARN_THE_BASICS_LINK }
45
+ target = "_blank"
46
+ rel = "noreferrer noopener"
47
+ >
48
+ Learn the basics
49
+ </ a > ,
50
+ or { ' ' }
51
+ < a
52
+ href = { getTemplateUrl ( snap ) }
53
+ target = "_blank"
54
+ rel = "noreferrer noopener"
55
+ >
56
+ get started with a template
57
+ </ a > .
46
58
</ p >
47
59
< p className = { styles . helpText } >
48
- Don’t have snapcraft?
49
- < a href = { INSTALL_IT_LINK } target = "_blank" > Install it on your own PC </ a >
50
- for testing.
60
+ Don’t have snapcraft? { ' ' }
61
+ < a
62
+ href = { INSTALL_IT_LINK }
63
+ target = "_blank"
64
+ rel = "noreferrer noopener"
65
+ >
66
+ Install it on your own PC
67
+ </ a >
68
+ { ' ' } for testing.
51
69
</ p >
52
70
</ Data >
53
71
</ Row >
You can’t perform that action at this time.
0 commit comments