File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,11 @@ module.exports = {
4
4
parserOptions : {
5
5
sourceType : "module" ,
6
6
} ,
7
+ rules : {
8
+ "@ota-meshi/svelte/no-target-blank" : "error" ,
9
+ "@ota-meshi/svelte/button-has-type" : "error" ,
10
+ "@ota-meshi/svelte/no-useless-mustaches" : "error" ,
11
+ "@ota-meshi/svelte/prefer-class-directive" : "error" ,
12
+ "@ota-meshi/svelte/spaced-html-comment" : "error" ,
13
+ } ,
7
14
}
Original file line number Diff line number Diff line change 161
161
class ="rule-link {getRule (msg .ruleId )?.classes }"
162
162
class:is-rule-error ={msg .ruleId }
163
163
href ={getRule (msg .ruleId )?.url }
164
- target ="_blank" >({msg .ruleId })</a
164
+ target =" _blank"
165
+ rel ="noopener noreferrer" >({msg .ruleId })</a
165
166
>
166
167
</li >
167
168
{/each }
Original file line number Diff line number Diff line change 221
221
/>
222
222
<div class =" eslint-editor__tools" >
223
223
{#if showApplyFix }
224
- <button on:click ={applyFix }>Apply Fix</button >
224
+ <button on:click ={applyFix } type = " button " >Apply Fix</button >
225
225
{/if }
226
226
</div >
227
227
</div >
Original file line number Diff line number Diff line change 122
122
}),
123
123
)
124
124
}}
125
+ type =" button"
125
126
>
126
127
<svg
127
128
xmlns =" http://www.w3.org/2000/svg"
163
164
/>
164
165
{rule .ruleId }
165
166
</label >
166
- <a href ={rule .url } target =" _blank"
167
+ <a href ={rule .url } target =" _blank" rel = " noopener noreferrer "
167
168
><svg
168
169
xmlns =" http://www.w3.org/2000/svg"
169
170
aria-hidden =" true"
Original file line number Diff line number Diff line change 65
65
href =" https://github.com/ota-meshi/eslint-plugin-svelte"
66
66
target =" _blank"
67
67
class =" github-link"
68
+ rel =" noopener noreferrer"
68
69
>
69
70
<svg
70
71
version =" 1.1"
You can’t perform that action at this time.
0 commit comments