Install textlint and markdownlint

This commit is contained in:
Takumi Sueda 2022-01-12 02:51:44 +09:00
parent cd45f190d9
commit 1718bd57f5
5 changed files with 3076 additions and 0 deletions

3
.gitignore vendored
View File

@ -4,3 +4,6 @@ _site
Gemfile.lock
.DS_Store
.idea
env
node_modules
package-lock.json

17
.markdownlint.json Normal file
View File

@ -0,0 +1,17 @@
{
"no-inline-html": {
"allowed_elements": [
"img"
]
},
"blanks-around-headings": {
"lines_above": 2,
"lines_below": 1
},
"no-multiple-blanks": {
"maximum": 2
},
"single-title": false,
"line-length": false,
"commands-show-output": false
}

10
.textlintrc Normal file
View File

@ -0,0 +1,10 @@
{
"rules": {
"preset-japanese": true,
"prh": {
"rulePaths": [
"prh_rules/wiki.yml"
]
}
}
}

15
package.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "wiki-brainux-org",
"devDependencies": {
"markdownlint": "^0.25.0",
"markdownlint-cli": "^0.30.0",
"textlint": "^11.9.0",
"textlint-rule-preset-japanese": "^6.0.1",
"textlint-rule-prh": "^5.3.0"
},
"scripts": {
"lint": "textlint '_posts/*'",
"fix": "textlint --fix '_posts/*'",
"mdlint": "./node_modules/markdownlint-cli/markdownlint.js _posts"
}
}

3031
prh_rules/wiki.yml Normal file

File diff suppressed because it is too large Load Diff