Created
February 4, 2019 02:42
-
-
Save sumyapp/aee22168581ddc356752d1ef557a43f7 to your computer and use it in GitHub Desktop.
Goodcheck YAML sample for target-blank
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
- id: review.sider.html.target-blank | |
pattern: | |
- 'target="_blank"' | |
- "target='_blank'" | |
- 'target: "_blank"' | |
- "target: '_blank'" | |
glob: | |
- "**/*.{slim,erb,html,jsx,tsx}" | |
message: | | |
`target="_blank"` を使うときは `rel="noopener"` を付けておくとよいです。 | |
セキュリティにもパフォーマンスにも良い影響があります。 | |
See https://qiita.com/memolog/items/9913b0067e4e6883ed17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment