Text lint add half and full width bracket.

This commit is contained in:
Anduin Xue 2022-03-01 01:19:31 +08:00
parent 50716b3b7e
commit 0a705c1e70
4 changed files with 75 additions and 5 deletions

View File

@ -3,6 +3,7 @@
"rules": { "rules": {
"ja-space-between-half-and-full-width": { "ja-space-between-half-and-full-width": {
"space": "always" "space": "always"
} },
"zh-half-and-full-width-bracket": true
} }
} }

View File

@ -84,7 +84,7 @@
* [土豆炖排骨](./dishes/home-cooking/土豆炖排骨/土豆炖排骨.md) * [土豆炖排骨](./dishes/home-cooking/土豆炖排骨/土豆炖排骨.md)
* [西红柿炒鸡蛋](./dishes/home-cooking/西红柿炒鸡蛋.md) * [西红柿炒鸡蛋](./dishes/home-cooking/西红柿炒鸡蛋.md)
* [西红柿牛腩](./dishes/home-cooking/西红柿牛腩/西红柿牛腩.md) * [西红柿牛腩](./dishes/home-cooking/西红柿牛腩/西红柿牛腩.md)
* [西红柿土豆炖牛肉(腩)](./dishes/home-cooking/西红柿土豆炖牛肉/西红柿土豆炖牛肉(腩).md) * [西红柿土豆炖牛肉(腩)](./dishes/home-cooking/西红柿土豆炖牛肉/西红柿土豆炖牛肉(腩).md)
* [香干芹菜炒肉](./dishes/home-cooking/香干芹菜炒肉/香干芹菜炒肉.md) * [香干芹菜炒肉](./dishes/home-cooking/香干芹菜炒肉/香干芹菜炒肉.md)
* [香干肉丝](./dishes/home-cooking/香干肉丝.md) * [香干肉丝](./dishes/home-cooking/香干肉丝.md)
* [香菇滑鸡](./dishes/home-cooking/香菇滑鸡/香菇滑鸡.md) * [香菇滑鸡](./dishes/home-cooking/香菇滑鸡/香菇滑鸡.md)
@ -157,7 +157,7 @@
* [金汤力](./dishes/drink/金汤力/金汤力.md) * [金汤力](./dishes/drink/金汤力/金汤力.md)
* [奶茶](./dishes/drink/奶茶.md) * [奶茶](./dishes/drink/奶茶.md)
* [酸梅汤](./dishes/drink/酸梅汤/酸梅汤.md) * [酸梅汤](./dishes/drink/酸梅汤/酸梅汤.md)
* [酸梅汤(半成品加工)](./dishes/drink/酸梅汤(半成品加工).md) * [酸梅汤(半成品加工)](./dishes/drink/酸梅汤(半成品加工).md)
* [杨枝甘露](./dishes/drink/杨枝甘露.md) * [杨枝甘露](./dishes/drink/杨枝甘露.md)
* [B52轰炸机](./dishes/drink/B52轰炸机.md) * [B52轰炸机](./dishes/drink/B52轰炸机.md)

70
package-lock.json generated
View File

@ -6,7 +6,8 @@
"": { "": {
"dependencies": { "dependencies": {
"textlint": "^12.1.0", "textlint": "^12.1.0",
"textlint-rule-ja-space-between-half-and-full-width": "^2.2.0" "textlint-rule-ja-space-between-half-and-full-width": "^2.2.0",
"textlint-rule-zh-half-and-full-width-bracket": "^1.1.0"
} }
}, },
"node_modules/@azu/format-text": { "node_modules/@azu/format-text": {
@ -22,6 +23,18 @@
"@azu/format-text": "^1.0.1" "@azu/format-text": "^1.0.1"
} }
}, },
"node_modules/@babel/runtime-corejs3": {
"version": "7.17.2",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.17.2.tgz",
"integrity": "sha512-NcKtr2epxfIrNM4VOmPKO46TvDMCBhgi2CrSHaEarrz+Plk2K5r9QemmOFTGpZaoKnWoGH5MO+CzeRsih/Fcgg==",
"dependencies": {
"core-js-pure": "^3.20.2",
"regenerator-runtime": "^0.13.4"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@textlint/ast-node-types": { "node_modules/@textlint/ast-node-types": {
"version": "12.1.0", "version": "12.1.0",
"resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-12.1.0.tgz", "resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-12.1.0.tgz",
@ -371,6 +384,16 @@
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
}, },
"node_modules/core-js-pure": {
"version": "3.21.1",
"resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.21.1.tgz",
"integrity": "sha512-12VZfFIu+wyVbBebyHmRTuEE/tZrB4tJToWcwAMcsp3h4+sHR+fMJWbKpYiCRWlhFBq+KNyO8rIV9rTkeVmznQ==",
"hasInstallScript": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/core-js"
}
},
"node_modules/crypt": { "node_modules/crypt": {
"version": "0.0.2", "version": "0.0.2",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
@ -1549,6 +1572,11 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/regenerator-runtime": {
"version": "0.13.9",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
},
"node_modules/regexp.prototype.flags": { "node_modules/regexp.prototype.flags": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz",
@ -1922,6 +1950,18 @@
"textlint-rule-helper": "^2.2.0" "textlint-rule-helper": "^2.2.0"
} }
}, },
"node_modules/textlint-rule-zh-half-and-full-width-bracket": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/textlint-rule-zh-half-and-full-width-bracket/-/textlint-rule-zh-half-and-full-width-bracket-1.1.0.tgz",
"integrity": "sha512-P204kbCFkzu84hYp1TF7sR/DUp+HeGbJ3wL2PMjeHEDgEIgFfbHOOWIPqsyHdNCwwfx+N+IrPtXSRCwpCUcpww==",
"dependencies": {
"@babel/runtime-corejs3": "^7.9.6",
"textlint-rule-helper": "^2.1.1"
},
"peerDependencies": {
"textlint": ">= 5.5.0"
}
},
"node_modules/traverse": { "node_modules/traverse": {
"version": "0.6.6", "version": "0.6.6",
"resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz",
@ -2164,6 +2204,15 @@
"@azu/format-text": "^1.0.1" "@azu/format-text": "^1.0.1"
} }
}, },
"@babel/runtime-corejs3": {
"version": "7.17.2",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.17.2.tgz",
"integrity": "sha512-NcKtr2epxfIrNM4VOmPKO46TvDMCBhgi2CrSHaEarrz+Plk2K5r9QemmOFTGpZaoKnWoGH5MO+CzeRsih/Fcgg==",
"requires": {
"core-js-pure": "^3.20.2",
"regenerator-runtime": "^0.13.4"
}
},
"@textlint/ast-node-types": { "@textlint/ast-node-types": {
"version": "12.1.0", "version": "12.1.0",
"resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-12.1.0.tgz", "resolved": "https://registry.npmjs.org/@textlint/ast-node-types/-/ast-node-types-12.1.0.tgz",
@ -2464,6 +2513,11 @@
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
}, },
"core-js-pure": {
"version": "3.21.1",
"resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.21.1.tgz",
"integrity": "sha512-12VZfFIu+wyVbBebyHmRTuEE/tZrB4tJToWcwAMcsp3h4+sHR+fMJWbKpYiCRWlhFBq+KNyO8rIV9rTkeVmznQ=="
},
"crypt": { "crypt": {
"version": "0.0.2", "version": "0.0.2",
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
@ -3321,6 +3375,11 @@
} }
} }
}, },
"regenerator-runtime": {
"version": "0.13.9",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
},
"regexp.prototype.flags": { "regexp.prototype.flags": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz",
@ -3604,6 +3663,15 @@
"textlint-rule-helper": "^2.2.0" "textlint-rule-helper": "^2.2.0"
} }
}, },
"textlint-rule-zh-half-and-full-width-bracket": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/textlint-rule-zh-half-and-full-width-bracket/-/textlint-rule-zh-half-and-full-width-bracket-1.1.0.tgz",
"integrity": "sha512-P204kbCFkzu84hYp1TF7sR/DUp+HeGbJ3wL2PMjeHEDgEIgFfbHOOWIPqsyHdNCwwfx+N+IrPtXSRCwpCUcpww==",
"requires": {
"@babel/runtime-corejs3": "^7.9.6",
"textlint-rule-helper": "^2.1.1"
}
},
"traverse": { "traverse": {
"version": "0.6.6", "version": "0.6.6",
"resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz",

View File

@ -1,6 +1,7 @@
{ {
"dependencies": { "dependencies": {
"textlint": "^12.1.0", "textlint": "^12.1.0",
"textlint-rule-ja-space-between-half-and-full-width": "^2.2.0" "textlint-rule-ja-space-between-half-and-full-width": "^2.2.0",
"textlint-rule-zh-half-and-full-width-bracket": "^1.1.0"
} }
} }