eslint-plugin-smarthr 0.5.19 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.5.20](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.18...v0.5.20) (2024-11-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* エラーメッセージ生成ミスを修正 ([#152](https://github.com/kufu/eslint-plugin-smarthr/issues/152)) ([17b8bd0](https://github.com/kufu/eslint-plugin-smarthr/commit/17b8bd03f6bd7c0587618f280c943517308710b2))
|
|
11
|
+
|
|
5
12
|
### [0.5.19](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.18...v0.5.19) (2024-11-25)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -187,7 +187,7 @@ module.exports = {
|
|
|
187
187
|
message: `${sectioningContent.elementName}とその内部に存在するHeadingをsmarthr-ui/Fieldsetに置き換えてください
|
|
188
188
|
- もしくはform要素を利用していない場合、フォームを構成する入力要素郡すべてを一つのform要素で囲んでください
|
|
189
189
|
- required属性、pattern属性など一部属性はform要素で囲まないと動作しません
|
|
190
|
-
- 送信用ボタンのonClickをform要素のonSubmit
|
|
190
|
+
- 送信用ボタンのonClickをform要素のonSubmitに移動し、送信用ボタンのtype属性に "submit" を指定することでより適切にマークアップ出来ます
|
|
191
191
|
- その際、onSubmitの動作中で "e.preventDefault()" と "e.stopPropagation()" を指定する必要がある場合があります。
|
|
192
192
|
- form内の見出しとなる要素をlegend, labelのみに統一することでスクリーンリーダーのジャンプ機能などの利便性が向上します
|
|
193
193
|
- smarthr-ui/Fieldset が利用できない場合、fieldset要素とlegend要素を使ったマークアップに修正してください
|