textlint including one rule(no todos) and a filter to disable rules if needed

This commit is contained in:
Ulf Gebhardt 2023-01-03 21:33:02 +01:00
parent 04ee1c055e
commit 35721521a9
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 3188 additions and 1 deletions

8
.textlintrc Normal file
View File

@ -0,0 +1,8 @@
{
"rules": {
"no-todo": true
},
"filters": {
"comments": true
}
}

3176
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
"build:workflow": "vuepress build docs",
"dev": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "textlint \"*.md\" \"docs/**/*.md\""
},
"repository": {
"type": "git",
@ -20,6 +20,9 @@
},
"homepage": "https://github.com/IT4Change/IT4C.dev#readme",
"devDependencies": {
"textlint": "^12.4.0",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-no-todo": "^2.0.1",
"vuepress": "^1.9.7",
"vuepress-theme-book": "^0.0.9"
}