eslint-plugin-smarthr 1.0.0 → 1.2.0
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 +14 -0
- package/LICENSE +4 -2
- package/README.md +35 -35
- package/package.json +8 -12
- package/rules/a11y-delegate-element-has-role-presentation/index.js +1 -1
- package/rules/a11y-input-has-name-attribute/index.js +1 -1
- package/rules/a11y-input-in-form-control/README.md +4 -4
- package/rules/a11y-input-in-form-control/index.js +4 -1
- package/rules/a11y-prohibit-input-placeholder/index.js +2 -2
- package/rules/require-declaration/README.md +2 -2
- package/test/a11y-delegate-element-has-role-presantation.js +2 -2
- package/test/a11y-input-has-name-attribute.js +4 -1
- package/test/a11y-input-in-form-control.js +7 -3
- package/test/a11y-prohhibit-input-placeholder.js +6 -1
- package/test/a11y-required-layout-as-attribute.js +5 -6
- package/.github/CODEOWNERS +0 -3
- package/.node-version +0 -1
- package/CODE_OF_CONDUCT.md +0 -89
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
## [1.2.0](https://github.com/kufu/tamatebako/compare/eslint-plugin-smarthr-v1.1.0...eslint-plugin-smarthr-v1.2.0) (2025-01-09)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* a11y系のルールをsmarthr-ui/WarekiPickerに対応させる ([#471](https://github.com/kufu/tamatebako/issues/471)) ([a52995c](https://github.com/kufu/tamatebako/commit/a52995cb999de2942989eac00bbc299922cf6208))
|
|
11
|
+
|
|
12
|
+
## [1.1.0](https://github.com/kufu/tamatebako/compare/eslint-plugin-smarthr-v1.0.0...eslint-plugin-smarthr-v1.1.0) (2025-01-08)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* a11y-input-in-form-controlでtype="hidden"の場合の判定を追加 ([#455](https://github.com/kufu/tamatebako/issues/455)) ([4ff63b9](https://github.com/kufu/tamatebako/commit/4ff63b90b5cba5df34fe5ffc0fb25cbd1ed8a2b3))
|
|
18
|
+
|
|
5
19
|
## [1.0.0](https://github.com/kufu/eslint-plugin-smarthr/compare/v0.5.20...v1.0.0) (2024-12-12)
|
|
6
20
|
|
|
7
21
|
|
package/LICENSE
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright 2024 SmartHR
|
|
2
4
|
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
6
|
|
|
5
7
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
8
|
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
# eslint-plugin-smarthr
|
|
2
2
|
|
|
3
|
-
- [a11y-anchor-has-href-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
4
|
-
- [a11y-clickable-element-has-text](https://github.com/kufu/eslint-plugin-smarthr/
|
|
5
|
-
- [a11y-delegate-element-has-role-presentation](https://github.com/kufu/eslint-plugin-smarthr/
|
|
6
|
-
- [a11y-form-control-in-form](https://github.com/kufu/eslint-plugin-smarthr/
|
|
7
|
-
- [a11y-heading-in-sectioning-content](https://github.com/kufu/eslint-plugin-smarthr/
|
|
8
|
-
- [a11y-image-has-alt-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
9
|
-
- [a11y-input-has-name-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
10
|
-
- [a11y-input-in-form-control](https://github.com/kufu/eslint-plugin-smarthr/
|
|
11
|
-
- [a11y-numbered-text-within-ol](https://github.com/kufu/eslint-plugin-smarthr/
|
|
12
|
-
- [a11y-prohibit-input-maxlength-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
13
|
-
- [a11y-prohibit-input-placeholder](https://github.com/kufu/eslint-plugin-smarthr/
|
|
14
|
-
- [a11y-prohibit-sectioning-content-in-form](https://github.com/kufu/eslint-plugin-smarthr/
|
|
15
|
-
- [a11y-prohibit-useless-sectioning-fragment](https://github.com/kufu/eslint-plugin-smarthr/
|
|
16
|
-
- [a11y-replace-unreadable-symbol](https://github.com/kufu/eslint-plugin-smarthr/
|
|
17
|
-
- [a11y-required-layout-as-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
18
|
-
- [a11y-trigger-has-button](https://github.com/kufu/eslint-plugin-smarthr/
|
|
19
|
-
- [best-practice-for-button-element](https://github.com/kufu/eslint-plugin-smarthr/
|
|
20
|
-
- [best-practice-for-data-test-attribute](https://github.com/kufu/eslint-plugin-smarthr/
|
|
21
|
-
- [best-practice-for-date](https://github.com/kufu/eslint-plugin-smarthr/
|
|
22
|
-
- [best-practice-for-layouts](https://github.com/kufu/eslint-plugin-smarthr/
|
|
23
|
-
- [best-practice-for-remote-trigger-dialog](https://github.com/kufu/eslint-plugin-smarthr/
|
|
24
|
-
- [design-system-guideline-prohibit-double-icons](https://github.com/kufu/eslint-plugin-smarthr/
|
|
25
|
-
- [format-import-path](https://github.com/kufu/eslint-plugin-smarthr/
|
|
26
|
-
- [format-translate-component](https://github.com/kufu/eslint-plugin-smarthr/
|
|
27
|
-
- [jsx-start-with-spread-attributes](https://github.com/kufu/eslint-plugin-smarthr/
|
|
28
|
-
- [no-import-other-domain](https://github.com/kufu/eslint-plugin-smarthr/
|
|
29
|
-
- [prohibit-export-array-type](https://github.com/kufu/eslint-plugin-smarthr/
|
|
30
|
-
- [prohibit-file-name](https://github.com/kufu/eslint-plugin-smarthr/
|
|
31
|
-
- [prohibit-import](https://github.com/kufu/eslint-plugin-smarthr/
|
|
32
|
-
- [prohibit-path-within-template-literal](https://github.com/kufu/eslint-plugin-smarthr/
|
|
33
|
-
- [require-barrel-import](https://github.com/kufu/eslint-plugin-smarthr/
|
|
34
|
-
- [require-declaration](https://github.com/kufu/eslint-plugin-smarthr/
|
|
35
|
-
- [require-export](https://github.com/kufu/eslint-plugin-smarthr/
|
|
36
|
-
- [require-import](https://github.com/kufu/eslint-plugin-smarthr/
|
|
37
|
-
- [trim-props](https://github.com/kufu/eslint-plugin-smarthr/
|
|
3
|
+
- [a11y-anchor-has-href-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-anchor-has-href-attribute)
|
|
4
|
+
- [a11y-clickable-element-has-text](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-clickable-element-has-text)
|
|
5
|
+
- [a11y-delegate-element-has-role-presentation](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-delegate-element-has-role-presentation)
|
|
6
|
+
- [a11y-form-control-in-form](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-form-control-in-form)
|
|
7
|
+
- [a11y-heading-in-sectioning-content](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-heading-in-sectioning-content)
|
|
8
|
+
- [a11y-image-has-alt-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-image-has-alt-attribute)
|
|
9
|
+
- [a11y-input-has-name-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-input-has-name-attribute)
|
|
10
|
+
- [a11y-input-in-form-control](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-input-in-form-control)
|
|
11
|
+
- [a11y-numbered-text-within-ol](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-numbered-text-within-ol)
|
|
12
|
+
- [a11y-prohibit-input-maxlength-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-prohibit-input-maxlength-attribute)
|
|
13
|
+
- [a11y-prohibit-input-placeholder](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-prohibit-input-placeholder)
|
|
14
|
+
- [a11y-prohibit-sectioning-content-in-form](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-prohibit-sectioning-content-in-form)
|
|
15
|
+
- [a11y-prohibit-useless-sectioning-fragment](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-prohibit-useless-sectioning-fragment)
|
|
16
|
+
- [a11y-replace-unreadable-symbol](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-replace-unreadable-symbol)
|
|
17
|
+
- [a11y-required-layout-as-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-required-layout-as-attribute)
|
|
18
|
+
- [a11y-trigger-has-button](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/a11y-trigger-has-button)
|
|
19
|
+
- [best-practice-for-button-element](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/best-practice-for-button-element)
|
|
20
|
+
- [best-practice-for-data-test-attribute](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/best-practice-for-data-test-attribute)
|
|
21
|
+
- [best-practice-for-date](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/best-practice-for-date)
|
|
22
|
+
- [best-practice-for-layouts](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/best-practice-for-layouts)
|
|
23
|
+
- [best-practice-for-remote-trigger-dialog](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/best-practice-for-remote-trigger-dialog)
|
|
24
|
+
- [design-system-guideline-prohibit-double-icons](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/design-system-guideline-prohibit-double-icons)
|
|
25
|
+
- [format-import-path](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/format-import-path)
|
|
26
|
+
- [format-translate-component](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/format-translate-component)
|
|
27
|
+
- [jsx-start-with-spread-attributes](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/jsx-start-with-spread-attributes)
|
|
28
|
+
- [no-import-other-domain](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/no-import-other-domain)
|
|
29
|
+
- [prohibit-export-array-type](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/prohibit-export-array-type)
|
|
30
|
+
- [prohibit-file-name](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/prohibit-file-name)
|
|
31
|
+
- [prohibit-import](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/prohibit-import)
|
|
32
|
+
- [prohibit-path-within-template-literal](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/prohibit-path-within-template-literal)
|
|
33
|
+
- [require-barrel-import](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-barrel-import)
|
|
34
|
+
- [require-declaration](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-declaration)
|
|
35
|
+
- [require-export](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-export)
|
|
36
|
+
- [require-import](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-import)
|
|
37
|
+
- [trim-props](https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/trim-props)
|
package/package.json
CHANGED
|
@@ -1,36 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-smarthr",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"author": "SmartHR",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A sharable ESLint plugin for SmartHR",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=20.
|
|
9
|
+
"node": ">=20.18.1"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"test": "jest"
|
|
13
|
-
"release:dryrun": "standard-version --dry-run",
|
|
14
|
-
"release": "standard-version"
|
|
12
|
+
"test": "jest"
|
|
15
13
|
},
|
|
16
14
|
"repository": {
|
|
17
15
|
"type": "git",
|
|
18
|
-
"url": "git+
|
|
16
|
+
"url": "git+git@github.com:kufu/tamatebako.git"
|
|
19
17
|
},
|
|
20
|
-
"homepage": "https://github.com/kufu/eslint-plugin-smarthr",
|
|
18
|
+
"homepage": "https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr",
|
|
21
19
|
"publishConfig": {
|
|
22
20
|
"registry": "https://registry.npmjs.org"
|
|
23
21
|
},
|
|
24
22
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/kufu/
|
|
23
|
+
"url": "https://github.com/kufu/tamatebako/issues"
|
|
26
24
|
},
|
|
27
25
|
"dependencies": {
|
|
28
26
|
"json5": "^2.2.3"
|
|
29
27
|
},
|
|
30
28
|
"devDependencies": {
|
|
31
|
-
"eslint": "^9.15.0",
|
|
32
|
-
"jest": "^29.7.0",
|
|
33
|
-
"standard-version": "^9.5.0",
|
|
34
29
|
"typescript-eslint": "^8.14.0"
|
|
35
30
|
},
|
|
36
31
|
"peerDependencies": {
|
|
@@ -41,5 +36,6 @@
|
|
|
41
36
|
"eslint-plugin",
|
|
42
37
|
"eslintplugin",
|
|
43
38
|
"smarthr"
|
|
44
|
-
]
|
|
39
|
+
],
|
|
40
|
+
"gitHead": "71d56c769bf74139d828b181bec39fb148d9b5ca"
|
|
45
41
|
}
|
|
@@ -8,7 +8,7 @@ const EXPECTED_NAMES = {
|
|
|
8
8
|
'RadioButtonPanel$': 'RadioButtonPanel$',
|
|
9
9
|
'Check(b|B)ox$': 'CheckBox$',
|
|
10
10
|
'Combo(b|B)ox$': 'ComboBox$',
|
|
11
|
-
'
|
|
11
|
+
'(Date|Wareki)Picker$': '(Date|Wareki)Picker$',
|
|
12
12
|
'TimePicker$': 'TimePicker$',
|
|
13
13
|
'DropZone$': 'DropZone$',
|
|
14
14
|
'Switch$': 'Switch$',
|
|
@@ -9,7 +9,7 @@ const EXPECTED_NAMES = {
|
|
|
9
9
|
'RadioButtonPanel$': 'RadioButtonPanel$',
|
|
10
10
|
'Check(b|B)ox$': 'CheckBox$',
|
|
11
11
|
'Combo(b|B)ox$': 'ComboBox$',
|
|
12
|
-
'
|
|
12
|
+
'(Date|Wareki)Picker$': '(Date|Wareki)Picker$',
|
|
13
13
|
'TimePicker$': 'TimePicker$',
|
|
14
14
|
'DropZone$': 'DropZone$',
|
|
15
15
|
}
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
</Fieldset>
|
|
71
71
|
|
|
72
72
|
<FormControl title="any heading" role="group">
|
|
73
|
-
<
|
|
73
|
+
<WarekiPicker />
|
|
74
74
|
~
|
|
75
|
-
<
|
|
75
|
+
<WarekiPicker />
|
|
76
76
|
</FormControl>
|
|
77
77
|
|
|
78
78
|
<Fieldset title="any heading">
|
|
79
79
|
<FormControl role="group">
|
|
80
|
-
<
|
|
80
|
+
<WarekiPicker />
|
|
81
81
|
~
|
|
82
|
-
<
|
|
82
|
+
<WarekiPicker />
|
|
83
83
|
</FormControl>>
|
|
84
84
|
</Fieldset>
|
|
85
85
|
|
|
@@ -15,7 +15,7 @@ const EXPECTED_INPUT_NAMES = {
|
|
|
15
15
|
'(S|^s)elect$': '(Select)$',
|
|
16
16
|
'InputFile$': '(InputFile)$',
|
|
17
17
|
'Combo(b|B)ox$': '(ComboBox)$',
|
|
18
|
-
'
|
|
18
|
+
'(Date|Wareki)Picker$': '((Date|Wareki)Picker)$',
|
|
19
19
|
'TimePicker$': '(TimePicker)$',
|
|
20
20
|
...EXPECTED_LABELED_INPUT_NAMES,
|
|
21
21
|
}
|
|
@@ -143,6 +143,9 @@ module.exports = {
|
|
|
143
143
|
case 'checkbox':
|
|
144
144
|
isTypeCheck = true
|
|
145
145
|
break
|
|
146
|
+
case 'hidden':
|
|
147
|
+
// HINT: hiddenの場合はラベルなしを許容するため、breakではなくreturnで処理終了させる
|
|
148
|
+
return
|
|
146
149
|
}
|
|
147
150
|
|
|
148
151
|
break
|
|
@@ -6,10 +6,10 @@ const EXPECTED_NAMES = {
|
|
|
6
6
|
'(t|T)extarea$': 'Textarea$',
|
|
7
7
|
'FieldSet$': 'FieldSet$',
|
|
8
8
|
'ComboBox$': 'ComboBox$',
|
|
9
|
-
'
|
|
9
|
+
'(Date|Wareki)Picker$': '(Date|Wareki)Picker$',
|
|
10
10
|
'TimePicker$': 'TimePicker$',
|
|
11
11
|
}
|
|
12
|
-
const INPUT_TAG_REGEX = /((i|I)nput|(t|T)extarea|FieldSet|ComboBox|(Date|Time)Picker)$/
|
|
12
|
+
const INPUT_TAG_REGEX = /((i|I)nput|(t|T)extarea|FieldSet|ComboBox|(Date|Wareki|Time)Picker)$/
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @type {import('@typescript-eslint/utils').TSESLint.RuleModule<''>}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
- 対象ファイルに宣言してほしい、変数・関数・class・型などを定義するルールです
|
|
4
4
|
- コードの規約などを決める際に便利です
|
|
5
5
|
- import, exportを強制したい場合は以下を利用してください
|
|
6
|
-
- https://github.com/kufu/eslint-plugin-smarthr/
|
|
7
|
-
- https://github.com/kufu/eslint-plugin-smarthr/
|
|
6
|
+
- https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-import
|
|
7
|
+
- https://github.com/kufu/tamatebako/tree/master/packages/eslint-plugin-smarthr/rules/require-export
|
|
8
8
|
|
|
9
9
|
## rules
|
|
10
10
|
|
|
@@ -11,7 +11,7 @@ const ruleTester = new RuleTester({
|
|
|
11
11
|
},
|
|
12
12
|
})
|
|
13
13
|
|
|
14
|
-
const defaultInteractiveRegex = '/((i|I)nput$|(t|T)extarea$|(s|S)elect$|InputFile$|RadioButtonPanel$|Check(b|B)ox$|Combo(b|B)ox$|
|
|
14
|
+
const defaultInteractiveRegex = '/((i|I)nput$|(t|T)extarea$|(s|S)elect$|InputFile$|RadioButtonPanel$|Check(b|B)ox$|Combo(b|B)ox$|(Date|Wareki)Picker$|TimePicker$|DropZone$|Switch$|SegmentedControl$|RightFixedNote$|FieldSet$|Fieldset$|FormControl$|FormGroup$|(b|B)utton$|Anchor$|Link$|TabItem$|^a$|(f|F)orm$|ActionDialogWithTrigger$|RemoteDialogTrigger$|RemoteTrigger(.+)Dialog$|FormDialog$|Pagination$|SideNav$|AccordionPanel$|FilterDropdown$)/'
|
|
15
15
|
const messageNonInteractiveEventHandler = (nodeName, onAttrs, interactiveComponentRegex = defaultInteractiveRegex) => {
|
|
16
16
|
const onAttrsText = onAttrs.join(', ')
|
|
17
17
|
|
|
@@ -66,7 +66,7 @@ ruleTester.run('smarthr/a11y-delegate-element-has-role-presentation', rule, {
|
|
|
66
66
|
{ code: '<div onClick={any} onSubmit={any2} role="presentation"><Hoge /></div>', errors: [ { message: messageRolePresentationNotHasInteractive('div', ['onClick', 'onSubmit']) } ] },
|
|
67
67
|
{ code: '<div onClick={any}><Link /></div>', errors: [ { message: messageNonInteractiveEventHandler('div', ['onClick']) } ] },
|
|
68
68
|
{ code: '<Wrapper onClick={any}><Link /></Wrapper>', errors: [ { message: messageNonInteractiveEventHandler('Wrapper', ['onClick']) } ] },
|
|
69
|
-
{ code: '<Wrapper onSubmit={any}><Hoge /></Wrapper>', options: [{ additionalInteractiveComponentRegex: ['^Hoge$'] }], errors: [ { message: messageNonInteractiveEventHandler('Wrapper', ['onSubmit'], '/((i|I)nput$|(t|T)extarea$|(s|S)elect$|InputFile$|RadioButtonPanel$|Check(b|B)ox$|Combo(b|B)ox$|
|
|
69
|
+
{ code: '<Wrapper onSubmit={any}><Hoge /></Wrapper>', options: [{ additionalInteractiveComponentRegex: ['^Hoge$'] }], errors: [ { message: messageNonInteractiveEventHandler('Wrapper', ['onSubmit'], '/((i|I)nput$|(t|T)extarea$|(s|S)elect$|InputFile$|RadioButtonPanel$|Check(b|B)ox$|Combo(b|B)ox$|(Date|Wareki)Picker$|TimePicker$|DropZone$|Switch$|SegmentedControl$|RightFixedNote$|FieldSet$|Fieldset$|FormControl$|FormGroup$|(b|B)utton$|Anchor$|Link$|TabItem$|^a$|(f|F)orm$|ActionDialogWithTrigger$|RemoteDialogTrigger$|RemoteTrigger(.+)Dialog$|FormDialog$|Pagination$|SideNav$|AccordionPanel$|FilterDropdown$|^Hoge$)/') } ] },
|
|
70
70
|
{ code: '<Wrapper onClick={any} onChange={anyany}><any><Link /></any></Wrapper>', errors: [ { message: messageNonInteractiveEventHandler('Wrapper', ['onClick', 'onChange']) } ] },
|
|
71
71
|
{ code: '<Wrapper onClick={any}>{any ? null : (hoge ? <AnyLink /> : null)}</Wrapper>', errors: [ { message: messageNonInteractiveEventHandler('Wrapper', ['onClick']) } ] },
|
|
72
72
|
],
|
|
@@ -30,6 +30,7 @@ ruleTester.run('a11y-input-has-name-attribute', rule, {
|
|
|
30
30
|
{ code: `import { CheckBox as FugaCheckBox } from './hoge'` },
|
|
31
31
|
{ code: `import { HogeComboBox as FugaComboBox } from './hoge'` },
|
|
32
32
|
{ code: `import { DatePicker as HogeDatePicker } from './hoge'` },
|
|
33
|
+
{ code: `import { WarekiPicker as HogeWarekiPicker } from './hoge'` },
|
|
33
34
|
{ code: `import { HogeDropZone as HogeFugaDropZone } from './hoge'` },
|
|
34
35
|
{ code: 'const HogeInput = styled.input``' },
|
|
35
36
|
{ code: 'const HogeInput = styled(Input)``' },
|
|
@@ -65,8 +66,10 @@ ruleTester.run('a11y-input-has-name-attribute', rule, {
|
|
|
65
66
|
- CheckBoxが型の場合、'import type { CheckBox as FugaCheckBoxHoge }' もしくは 'import { type CheckBox as FugaCheckBoxHoge }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
66
67
|
{ code: `import { HogeComboBox as ComboBoxFuga } from './hoge'`, errors: [ { message: `ComboBoxFugaを正規表現 "/ComboBox$/" がmatchする名称に変更してください。
|
|
67
68
|
- HogeComboBoxが型の場合、'import type { HogeComboBox as ComboBoxFuga }' もしくは 'import { type HogeComboBox as ComboBoxFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
68
|
-
{ code: `import { DatePicker as HogeDatePickerFuga } from './hoge'`, errors: [ { message: `HogeDatePickerFugaを正規表現 "/
|
|
69
|
+
{ code: `import { DatePicker as HogeDatePickerFuga } from './hoge'`, errors: [ { message: `HogeDatePickerFugaを正規表現 "/(Date|Wareki)Picker$/" がmatchする名称に変更してください。
|
|
69
70
|
- DatePickerが型の場合、'import type { DatePicker as HogeDatePickerFuga }' もしくは 'import { type DatePicker as HogeDatePickerFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
71
|
+
{ code: `import { WarekiPicker as HogeWarekiPickerFuga } from './hoge'`, errors: [ { message: `HogeWarekiPickerFugaを正規表現 "/(Date|Wareki)Picker$/" がmatchする名称に変更してください。
|
|
72
|
+
- WarekiPickerが型の場合、'import type { WarekiPicker as HogeWarekiPickerFuga }' もしくは 'import { type WarekiPicker as HogeWarekiPickerFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
70
73
|
{ code: `import { HogeDropZone as HogeFugaDropZoneAbc } from './hoge'`, errors: [ { message: `HogeFugaDropZoneAbcを正規表現 "/DropZone$/" がmatchする名称に変更してください。
|
|
71
74
|
- HogeDropZoneが型の場合、'import type { HogeDropZone as HogeFugaDropZoneAbc }' もしくは 'import { type HogeDropZone as HogeFugaDropZoneAbc }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
72
75
|
{ code: 'const Hoge = styled.input``', errors: [ { message: `Hogeを正規表現 "/Input$/" がmatchする名称に変更してください。` } ] },
|
|
@@ -13,13 +13,13 @@ const ruleTester = new RuleTester({
|
|
|
13
13
|
const noLabeledInput = (name) => `${name} を、smarthr-ui/FormControl もしくはそれを拡張したコンポーネントが囲むようマークアップを変更してください。
|
|
14
14
|
- FormControlで入力要素を囲むことでラベルと入力要素が適切に紐づき、操作性が高まります
|
|
15
15
|
- ${name}が入力要素とラベル・タイトル・説明など含む概念を表示するコンポーネントの場合、コンポーネント名を/((FormGroup)$|(FormControl)$|((F|^f)ieldset)$)/とマッチするように修正してください
|
|
16
|
-
- ${name}が入力要素自体を表現するコンポーネントの一部である場合、ルートとなるコンポーネントの名称を/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|
|
|
16
|
+
- ${name}が入力要素自体を表現するコンポーネントの一部である場合、ルートとなるコンポーネントの名称を/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|(Date|Wareki)Picker$|TimePicker$|RadioButton$|RadioButtons$|RadioButtonPanel$|RadioButtonPanels$|Check(B|b)ox$|Check(B|b)ox(e)?s$)/とマッチするように修正してください
|
|
17
17
|
- 上記のいずれの方法も適切ではない場合、${name}のtitle属性に "どんな値を入力すれば良いのか" の説明を設定してください
|
|
18
18
|
- 例: <${name} title="姓を全角カタカナのみで入力してください" />`
|
|
19
19
|
const noLabeledSelect = (name) => `${name} を、smarthr-ui/FormControl もしくはそれを拡張したコンポーネントが囲むようマークアップを変更してください。
|
|
20
20
|
- FormControlで入力要素を囲むことでラベルと入力要素が適切に紐づき、操作性が高まります
|
|
21
21
|
- ${name}が入力要素とラベル・タイトル・説明など含む概念を表示するコンポーネントの場合、コンポーネント名を/((FormGroup)$|(FormControl)$|((F|^f)ieldset)$)/とマッチするように修正してください
|
|
22
|
-
- ${name}が入力要素自体を表現するコンポーネントの一部である場合、ルートとなるコンポーネントの名称を/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|
|
|
22
|
+
- ${name}が入力要素自体を表現するコンポーネントの一部である場合、ルートとなるコンポーネントの名称を/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|(Date|Wareki)Picker$|TimePicker$|RadioButton$|RadioButtons$|RadioButtonPanel$|RadioButtonPanels$|Check(B|b)ox$|Check(B|b)ox(e)?s$)/とマッチするように修正してください
|
|
23
23
|
- 上記のいずれの方法も適切ではない場合、${name}のtitle属性に "どんな値を選択すれば良いのか" の説明を設定してください
|
|
24
24
|
- 例: <${name} title="検索対象を選択してください" />`
|
|
25
25
|
const invalidPureCheckboxInFormControl = (name) => `HogeFormControl が ${name} を含んでいます。smarthr-ui/FormControl を smarthr-ui/Fieldset に変更し、正しくグルーピングされるように修正してください。
|
|
@@ -74,7 +74,7 @@ const invalidChildreninFormControl = (children) => `FormControl が、${children
|
|
|
74
74
|
- FormControlではなく、smarthr-ui/Fieldset、もしくはsmarthr-ui/Section + smarthr-ui/Heading などでのマークアップを検討してください
|
|
75
75
|
- 方法2: 親要素であるFormControlがsmarthr-ui/FormControlを拡張したコンポーネントではない場合、コンポーネント名を/(Form(Control|Group))$/と一致しない名称に変更してください`
|
|
76
76
|
const requireMultiInputInFormControlWithRoleGroup = () => `HogeFormControl内に入力要素が2個以上存在しないため、'role=\"group\"'を削除してください。'role=\"group\"'は複数の入力要素を一つのグループとして扱うための属性です。
|
|
77
|
-
- HogeFormControl内に2つ以上の入力要素が存在する場合、入力要素を含むコンポーネント名全てを/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|
|
|
77
|
+
- HogeFormControl内に2つ以上の入力要素が存在する場合、入力要素を含むコンポーネント名全てを/((I|^i)nput$|SearchInput$|(T|^t)extarea$|(S|^s)elect$|InputFile$|Combo(b|B)ox$|(Date|Wareki)Picker$|TimePicker$|RadioButton$|RadioButtons$|RadioButtonPanel$|RadioButtonPanels$|Check(B|b)ox$|Check(B|b)ox(e)?s$)/、もしくは/((FormGroup)$|(FormControl)$|((F|^f)ieldset)$)/にマッチする名称に変更してください`
|
|
78
78
|
|
|
79
79
|
ruleTester.run('a11y-input-in-form-control', rule, {
|
|
80
80
|
valid: [
|
|
@@ -90,6 +90,8 @@ ruleTester.run('a11y-input-in-form-control', rule, {
|
|
|
90
90
|
{ code: 'const HogeRadioButtonPanel = styled(FugaRadioButtonPanel)``' },
|
|
91
91
|
{ code: 'const HogeCheckBox = styled(FugaCheckbox)``' },
|
|
92
92
|
{ code: 'const DatePicker = styled(AnyDatePicker)``' },
|
|
93
|
+
{ code: 'const WarekiPicker = styled(AnyWarekiPicker)``' },
|
|
94
|
+
{ code: '<input type="hidden" />' },
|
|
93
95
|
{ code: '<input title="any"/>' },
|
|
94
96
|
{ code: '<HogeInput title="any"/>' },
|
|
95
97
|
{ code: '<textarea title="any"/>' },
|
|
@@ -99,6 +101,7 @@ ruleTester.run('a11y-input-in-form-control', rule, {
|
|
|
99
101
|
{ code: '<HogeInputFile title="any"/>' },
|
|
100
102
|
{ code: '<HogeComboBox title="any"/>' },
|
|
101
103
|
{ code: '<HogeDatePicker title="any"/>' },
|
|
104
|
+
{ code: '<HogeWarekiPicker title="any"/>' },
|
|
102
105
|
{ code: '<HogeFormGroup />' },
|
|
103
106
|
{ code: '<HogeFormControl />' },
|
|
104
107
|
{ code: '<HogeFieldset />' },
|
|
@@ -157,6 +160,7 @@ ruleTester.run('a11y-input-in-form-control', rule, {
|
|
|
157
160
|
{ code: '<HogeComboBox />', errors: [ { message: noLabeledInput('HogeComboBox') } ] },
|
|
158
161
|
{ code: '<HogeComboBox inputAttributes={{ any }} />', errors: [ { message: noLabeledInput('HogeComboBox') } ] },
|
|
159
162
|
{ code: '<HogeDatePicker />', errors: [ { message: noLabeledInput('HogeDatePicker') } ] },
|
|
163
|
+
{ code: '<HogeWarekiPicker />', errors: [ { message: noLabeledInput('HogeWarekiPicker') } ] },
|
|
160
164
|
{ code: '<HogeFormControl><Input type="checkbox" /><Input type="checkbox" /></HogeFormControl>', errors: [ { message: invalidPureCheckboxInFormControl('Input') } ] },
|
|
161
165
|
{ code: '<HogeFormControl><HogeCheckBox /><Input /></HogeFormControl>', errors: [ { message: invalidMultiInputsInFormControl() } ] },
|
|
162
166
|
{ code: '<HogeFormControl><HogeCheckBox /><HogeCheckBox /></HogeFormControl>', errors: [ { message: invalidCheckboxInFormControl('HogeCheckBox') } ] },
|
|
@@ -20,6 +20,7 @@ ruleTester.run('a11y-prohibit-input-placeholder', rule, {
|
|
|
20
20
|
{ code: `import { HogeTextarea as FugaHogeTextarea } from './hoge'` },
|
|
21
21
|
{ code: `import { ComboBox as FugaHogeComboBox } from './hoge'` },
|
|
22
22
|
{ code: `import { AbcDatePicker as StyledDatePicker } from './hoge'` },
|
|
23
|
+
{ code: `import { AbcWarekiPicker as StyledWarekiPicker } from './hoge'` },
|
|
23
24
|
{ code: 'const HogeInput = styled.input``' },
|
|
24
25
|
{ code: 'const HogeTextarea = styled.textarea``' },
|
|
25
26
|
{ code: 'const HogeInput = styled(Input)``' },
|
|
@@ -39,6 +40,7 @@ ruleTester.run('a11y-prohibit-input-placeholder', rule, {
|
|
|
39
40
|
{ code: `<CustomComboBox />` },
|
|
40
41
|
{ code: `<SearchInput />` },
|
|
41
42
|
{ code: `<DatePicker />` },
|
|
43
|
+
{ code: `<WarekiPicker />` },
|
|
42
44
|
{ code: `<TimePicker />` },
|
|
43
45
|
{ code: `<CustomSearchInput tooltipMessage="hoge" />` },
|
|
44
46
|
{ code: `<CustomSearchInput tooltipMessage="hoge" placeholder="fuga" />` },
|
|
@@ -57,8 +59,10 @@ ruleTester.run('a11y-prohibit-input-placeholder', rule, {
|
|
|
57
59
|
- HogeTextareaが型の場合、'import type { HogeTextarea as HogeTextareaFuga }' もしくは 'import { type HogeTextarea as HogeTextareaFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
58
60
|
{ code: `import { HogeComboBox as ComboBoxFuga } from './hoge'`, errors: [ { message: `ComboBoxFugaを正規表現 "/ComboBox$/" がmatchする名称に変更してください。
|
|
59
61
|
- HogeComboBoxが型の場合、'import type { HogeComboBox as ComboBoxFuga }' もしくは 'import { type HogeComboBox as ComboBoxFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
60
|
-
{ code: `import { DatePicker as HogeDatePickerFuga } from './hoge'`, errors: [ { message: `HogeDatePickerFugaを正規表現 "/
|
|
62
|
+
{ code: `import { DatePicker as HogeDatePickerFuga } from './hoge'`, errors: [ { message: `HogeDatePickerFugaを正規表現 "/(Date|Wareki)Picker$/" がmatchする名称に変更してください。
|
|
61
63
|
- DatePickerが型の場合、'import type { DatePicker as HogeDatePickerFuga }' もしくは 'import { type DatePicker as HogeDatePickerFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
64
|
+
{ code: `import { WarekiPicker as HogeWarekiPickerFuga } from './hoge'`, errors: [ { message: `HogeWarekiPickerFugaを正規表現 "/(Date|Wareki)Picker$/" がmatchする名称に変更してください。
|
|
65
|
+
- WarekiPickerが型の場合、'import type { WarekiPicker as HogeWarekiPickerFuga }' もしくは 'import { type WarekiPicker as HogeWarekiPickerFuga }' のように明示的に型であることを宣言してください。名称変更が不要になります` } ] },
|
|
62
66
|
{ code: 'const Hoge = styled.input``', errors: [ { message: `Hogeを正規表現 "/Input$/" がmatchする名称に変更してください。` } ] },
|
|
63
67
|
{ code: 'const Hoge = styled(StyledInput)``', errors: [ { message: `Hogeを正規表現 "/Input$/" がmatchする名称に変更してください。` } ] },
|
|
64
68
|
{ code: 'const Hoge = styled.textarea``', errors: [ { message: `Hogeを正規表現 "/Textarea$/" がmatchする名称に変更してください。` } ] },
|
|
@@ -78,6 +82,7 @@ ruleTester.run('a11y-prohibit-input-placeholder', rule, {
|
|
|
78
82
|
{ code: `<HogeTextarea placeholder="any" />`, errors: [ { message: `HogeTextarea にはplaceholder属性は設定せず、別途ヒント用要素の利用を検討してください。(例: '<div><HogeTextarea /><Hint>ヒント</Hint></div>')` } ] },
|
|
79
83
|
{ code: `<HogeFieldSet placeholder="any" />`, errors: [ { message: `HogeFieldSet にはplaceholder属性は設定せず、別途ヒント用要素の利用を検討してください。(例: '<div><HogeFieldSet /><Hint>ヒント</Hint></div>')` } ] },
|
|
80
84
|
{ code: `<HogeDatePicker placeholder="any" />`, errors: [ { message: `HogeDatePicker にはplaceholder属性は設定せず、別途ヒント用要素の利用を検討してください。(例: '<div><HogeDatePicker /><Hint>ヒント</Hint></div>')` } ] },
|
|
85
|
+
{ code: `<HogeWarekiPicker placeholder="any" />`, errors: [ { message: `HogeWarekiPicker にはplaceholder属性は設定せず、別途ヒント用要素の利用を検討してください。(例: '<div><HogeWarekiPicker /><Hint>ヒント</Hint></div>')` } ] },
|
|
81
86
|
{ code: `<HogeComboBox placeholder="any" />`, errors: [ { message: `HogeComboBox にはplaceholder属性は設定せず、以下のいずれか、もしくは組み合わせての対応を検討してください。
|
|
82
87
|
- 選択肢をどんな値で絞り込めるかの説明をしたい場合は dropdownHelpMessage 属性に変更してください。
|
|
83
88
|
- 空の値の説明のためにplaceholderを利用している場合は defaultItem 属性に変更してください。
|
|
@@ -2,13 +2,12 @@ const rule = require('../rules/a11y-required-layout-as-attribute')
|
|
|
2
2
|
const RuleTester = require('eslint').RuleTester
|
|
3
3
|
|
|
4
4
|
const ruleTester = new RuleTester({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
languageOptions: {
|
|
6
|
+
parserOptions: {
|
|
7
|
+
ecmaFeatures: {
|
|
8
|
+
jsx: true,
|
|
9
|
+
},
|
|
10
10
|
},
|
|
11
|
-
sourceType: 'module',
|
|
12
11
|
},
|
|
13
12
|
})
|
|
14
13
|
|
package/.github/CODEOWNERS
DELETED
package/.node-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
20.11.1
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
SmartHR CODE OF CONDUCT
|
|
2
|
-
===
|
|
3
|
-
|
|
4
|
-
# コントリビューター行動規範
|
|
5
|
-
|
|
6
|
-
## 私たちの約束
|
|
7
|
-
メンバー、コントリビューター、およびリーダーとして、年齢、体の大きさ、目に見えるまたは目に見えない障害、民族性、性別、
|
|
8
|
-
性同一性、表現、経験のレベル、教育、社会経済的地位、国籍、人格、人種、宗教、または性的同一性と指向に関係なく、
|
|
9
|
-
コミュニティへの参加をハラスメントのない体験にすることを誓います。
|
|
10
|
-
|
|
11
|
-
私たちは、オープンで親しみやすく、多様で包括的で健全なコミュニティに貢献する方法で行動し、交流することを誓います。
|
|
12
|
-
|
|
13
|
-
## 私たちの標準
|
|
14
|
-
|
|
15
|
-
前向きな環境を作り上げることに貢献する行動の例:
|
|
16
|
-
|
|
17
|
-
* 他人への共感と優しさを示す
|
|
18
|
-
|
|
19
|
-
* 異なる意見、視点、経験を尊重する
|
|
20
|
-
|
|
21
|
-
* 建設的なフィードバックを与え、優雅に受け入れる
|
|
22
|
-
|
|
23
|
-
* 私たちの過ちの影響を受けた人々に責任を受け入れ、謝罪し、そしてその経験から学ぶ
|
|
24
|
-
|
|
25
|
-
* 個人としてだけでなく、コミュニティ全体にとっても最善であることに焦点を当てる
|
|
26
|
-
|
|
27
|
-
許容できない行動の例は次のとおりです。
|
|
28
|
-
|
|
29
|
-
* 性的な言葉や画像の使用、および性的な注意またはその他あらゆる種類の問題行為
|
|
30
|
-
|
|
31
|
-
* トローリング、侮辱的または中傷的なコメント、個人的または政治的攻撃
|
|
32
|
-
|
|
33
|
-
* 公的またはプライベートの嫌がらせ
|
|
34
|
-
|
|
35
|
-
* 明示的な許可なしに、住所や電子メールアドレスなど、他者の個人情報を公開する
|
|
36
|
-
|
|
37
|
-
* 職業上不適切と合理的に考えられるその他の行為
|
|
38
|
-
|
|
39
|
-
## 執行責任
|
|
40
|
-
|
|
41
|
-
コミュニティリーダーは、許容される行動の基準を明確にし、実施する責任があり、不適切、脅迫的、攻撃的、または有害と見なされる行動に応じて、適切で公正な是正措置を講じます。
|
|
42
|
-
|
|
43
|
-
コミュニティリーダーは、コメント、コミット、コード、wikiの編集、問題、およびこの行動規範に沿っていないその他の貢献を削除、編集、または拒否する権利と責任を持ち、適切な場合はモデレーションの決定の理由を伝えます。
|
|
44
|
-
|
|
45
|
-
## 適用範囲
|
|
46
|
-
|
|
47
|
-
この行動規範は、すべてのコミュニティスペース内で適用され、個人がパブリックスペースでコミュニティを公式に代表している場合にも適用されます。
|
|
48
|
-
私たちのコミュニティを代表する例には、公式の電子メールアドレスの使用、公式のソーシャルメディアアカウントを介した投稿、オンラインまたはオフラインのイベントでの指定代理人としての行動などがあります。
|
|
49
|
-
|
|
50
|
-
## 執行
|
|
51
|
-
|
|
52
|
-
虐待的、嫌がらせ、またはその他の許容できない行動の事例は、執行を担当するコミュニティリーダーに対して `oss@smarthr.co.jp` で報告される場合があります。
|
|
53
|
-
すべての苦情は迅速かつ公正にレビューおよび調査されます。
|
|
54
|
-
|
|
55
|
-
すべてのコミュニティリーダーは、問題の報告者のプライバシーとセキュリティを尊重する義務があります。
|
|
56
|
-
|
|
57
|
-
## 執行ガイドライン
|
|
58
|
-
|
|
59
|
-
コミュニティリーダーは、この行動規範に違反していると見なした行動への帰結を判断する際に、これらのコミュニティガイドラインに従います。
|
|
60
|
-
|
|
61
|
-
### 1. 更生
|
|
62
|
-
|
|
63
|
-
**コミュニティへの影響**: コミュニティで専門家にふさわしくない、または歓迎されないと思われる不適切な言葉の使用やその他の不適切な行動をすること。
|
|
64
|
-
|
|
65
|
-
**帰結**: コミュニティリーダーからの非公開の書面による警告。違反の理由を明確にし、行動が不適切だった理由を説明します。 公の謝罪が要求される場合があります。
|
|
66
|
-
|
|
67
|
-
### 2. 警告
|
|
68
|
-
|
|
69
|
-
**コミュニティへの影響**: 単一の出来事または一連の動作による違反。
|
|
70
|
-
|
|
71
|
-
**帰結**: 持続的な行動の結果を伴う警告。 指定された期間、行動規範の実施者との一方的な対話を含め、関係者との対話はありません。 これには、コミュニティスペースやソーシャルメディアなどの外部チャネルでの相互作用の回避が含まれます。 これらの条件に違反すると、一時的または永続的に禁止される場合があります。
|
|
72
|
-
|
|
73
|
-
### 3. 一時的な禁止
|
|
74
|
-
**コミュニティへの影響**: 持続的で不適切な行動を含む、コミュニティ標準の重大な違反。
|
|
75
|
-
|
|
76
|
-
**帰結**: 指定された期間のコミュニティとのあらゆる種類の相互関係または公的なコミュニケーションの一時的な禁止。 この期間中、行動規範を実施する人々との一方的な対話を含め、関係する人々との公的または私的な対話は許可されません。
|
|
77
|
-
これらの条件に違反すると、永久的に禁止される場合があります。
|
|
78
|
-
### 4. 永久的な禁止
|
|
79
|
-
**コミュニティへの影響**: 連続的な不適切な行動、個人への嫌がらせ、または個人の集団に対する攻撃または名誉毀損を含む、コミュニティの標準への違反のパターンを示す。
|
|
80
|
-
|
|
81
|
-
**帰結**: コミュニティ内でのあらゆる種類の公的な相互関係の永久的な禁止。
|
|
82
|
-
|
|
83
|
-
## 帰属
|
|
84
|
-
この行動規範は、https://www.contributor-covenant.org/version/2/0/code_of_conduct.html で利用可能な [Contributor Covenant][homepage] バージョン2.0を基に作成されています。
|
|
85
|
-
|
|
86
|
-
コミュニティへの影響ガイドラインは[Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity)に適合しています。
|
|
87
|
-
|
|
88
|
-
[homepage]: https://www.contributor-covenant.org
|
|
89
|
-
この行動規範に関する一般的な質問への回答については、https://www.contributor-covenant.org/faq のFAQを参照してください。翻訳はhttps://www.contributor-covenant.org/translations で入手できます。
|