Skip to content

Commit

Permalink
2022年3月29日時点の社内版を反映: RELEASE Ver. 202203.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ma10 committed Mar 29, 2022
1 parent ad773fd commit 4f8460c
Show file tree
Hide file tree
Showing 111 changed files with 4,780 additions and 1,782 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
'data/json/schema/*.json': (files) => files.map((file) => `ajv compile --spec=draft2020 -s ${file}`),
'data/yaml/gl/**/*.yaml': (files) => files.map((file) => `ajv validate --spec=draft2020 -s data/json/schema/guideline.json -d ${file}`),
'data/yaml/checks/**/*.yaml': (files) => files.map((file) => `ajv validate --spec=draft2020 -s data/json/schema/check.json -d ${file}`),
}
2 changes: 1 addition & 1 deletion data/json/schema/check.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
]
},
"target": {
"description": "target in the develop ment process",
"description": "target in the development process",
"type": "string",
"enum": [
"design",
Expand Down
24 changes: 24 additions & 0 deletions data/json/schema/guideline.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,33 @@
"type": "string",
"pattern": "^gl-.+"
},
"sortKey": {
"type": "integer",
"minimum": 1001,
"maximum": 2199
},
"title": {
"description": "title of the guideline",
"type": "string"
},
"category": {
"description": "category the guideline belongs to",
"type": "string",
"enum": [
"dynamic_content",
"form",
"icon",
"image",
"images_of_text",
"input_device",
"link",
"login_session",
"markup",
"multimedia",
"page",
"text"
]
},
"priority": {
"description": "priority of the guideline",
"type": "string",
Expand Down Expand Up @@ -60,6 +83,7 @@
"additionalProperties": false,
"required": [
"id",
"sortKey",
"title",
"priority",
"guideline",
Expand Down
Loading

0 comments on commit 4f8460c

Please sign in to comment.