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 = {
44 parserOptions : {
55 sourceType : "module" ,
66 } ,
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+ } ,
714}
Original file line number Diff line number Diff line change 161161 class ="rule-link {getRule (msg .ruleId )?.classes }"
162162 class:is-rule-error ={msg .ruleId }
163163 href ={getRule (msg .ruleId )?.url }
164- target ="_blank" >({msg .ruleId })</a
164+ target =" _blank"
165+ rel ="noopener noreferrer" >({msg .ruleId })</a
165166 >
166167 </li >
167168 {/each }
Original file line number Diff line number Diff line change 221221 />
222222 <div class =" eslint-editor__tools" >
223223 {#if showApplyFix }
224- <button on:click ={applyFix }>Apply Fix</button >
224+ <button on:click ={applyFix } type = " button " >Apply Fix</button >
225225 {/if }
226226 </div >
227227</div >
Original file line number Diff line number Diff line change 122122 }),
123123 )
124124 }}
125+ type =" button"
125126 >
126127 <svg
127128 xmlns =" http://www.w3.org/2000/svg"
163164 />
164165 {rule .ruleId }
165166 </label >
166- <a href ={rule .url } target =" _blank"
167+ <a href ={rule .url } target =" _blank" rel = " noopener noreferrer "
167168 ><svg
168169 xmlns =" http://www.w3.org/2000/svg"
169170 aria-hidden =" true"
Original file line number Diff line number Diff line change 6565 href =" https://github.com/ota-meshi/eslint-plugin-svelte"
6666 target =" _blank"
6767 class =" github-link"
68+ rel =" noopener noreferrer"
6869 >
6970 <svg
7071 version =" 1.1"
You can’t perform that action at this time.
0 commit comments