diff --git a/.textlintrc b/.textlintrc index ae518263..d0d82ad5 100644 --- a/.textlintrc +++ b/.textlintrc @@ -1,28 +1,33 @@ { + "filters": { + "comments": true + }, "rules": { "no-todo": true, "terminology": { "defaultTerms": true, - "skip": ["Image", "Code"], + "skip": ["Code", "Image"], "terms": [ + "AMD64", + "ARM64", + "Basg", + "Docker", + "Drush", + "Git", + "Mutagen", + "MySQL", + "phpMyAdmin", + "Xdebug", + ["(\\s)ddev", "DDEV"], ["(\\s)http", "HTTP"], ["(\\s)https", "HTTPS"], + ["(\\s)SSH", "SSH"], ["web-?server", "web server"] ], "exclude": [ - "front[- ]end(\\w*)", "back[- ]end(\\w*)", "command ?line", - "PDF", - "PNG", - "JPG", - "GIF", - "HTML", - "CSS", - "ID", - "Markdown", - "URL", - "walk[- ]through", + "front[- ]end(\\w*)", "web[- ]?site(s)?" ] } diff --git a/package-lock.json b/package-lock.json index 6bb0cd85..b88f36ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,6 +41,7 @@ "devDependencies": { "dotenv": "^16.0.3", "textlint": "^13.0.5", + "textlint-filter-rule-comments": "^1.2.2", "textlint-rule-no-todo": "^2.0.1", "textlint-rule-terminology": "^3.0.4" } @@ -8415,6 +8416,15 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, + "node_modules/textlint-filter-rule-comments": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/textlint-filter-rule-comments/-/textlint-filter-rule-comments-1.2.2.tgz", + "integrity": "sha512-AtyxreCPb3Hq/bd6Qd6szY1OGgnW34LOjQXAHzE8NoXbTUudQqALPdRe+hvRsf81rnmGLxBiCUXZbnbpIseFyw==", + "dev": true, + "peerDependencies": { + "textlint": ">=6.8.0" + } + }, "node_modules/textlint-rule-helper": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/textlint-rule-helper/-/textlint-rule-helper-2.3.0.tgz", @@ -15250,6 +15260,13 @@ } } }, + "textlint-filter-rule-comments": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/textlint-filter-rule-comments/-/textlint-filter-rule-comments-1.2.2.tgz", + "integrity": "sha512-AtyxreCPb3Hq/bd6Qd6szY1OGgnW34LOjQXAHzE8NoXbTUudQqALPdRe+hvRsf81rnmGLxBiCUXZbnbpIseFyw==", + "dev": true, + "requires": {} + }, "textlint-rule-helper": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/textlint-rule-helper/-/textlint-rule-helper-2.3.0.tgz", diff --git a/package.json b/package.json index 5e7109f5..53ae7dcb 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "devDependencies": { "dotenv": "^16.0.3", "textlint": "^13.0.5", + "textlint-filter-rule-comments": "^1.2.2", "textlint-rule-no-todo": "^2.0.1", "textlint-rule-terminology": "^3.0.4" }