mirror of
https://github.com/brain-hackers/wiki.brainux.org
synced 2024-12-21 19:50:06 +09:00
Install textlint and markdownlint
This commit is contained in:
parent
cd45f190d9
commit
1718bd57f5
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,3 +4,6 @@ _site
|
||||
Gemfile.lock
|
||||
.DS_Store
|
||||
.idea
|
||||
env
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
17
.markdownlint.json
Normal file
17
.markdownlint.json
Normal 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
10
.textlintrc
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"rules": {
|
||||
"preset-japanese": true,
|
||||
"prh": {
|
||||
"rulePaths": [
|
||||
"prh_rules/wiki.yml"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
15
package.json
Normal file
15
package.json
Normal 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
3031
prh_rules/wiki.yml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user