Comments (2)
补充:目前在 Vue 中文网站中发现的几个特殊配置需求如下:
- Heading 后面的全角问号和大括号之间的空格:
## 谁在维护 Vue? {#who-maintains-vue}
- 用来切换 voa 和 vca 文档内容的
<span>
周围的空格使用与默认规则不符
这两个用例将作为目标案例进行分析
from zhlint.
需求整理
- rules: preset, config, custom rule
- hyper parsers: preset, config, custom hyper parser
- global ignore cases
技术设计
- 支持
.zhlintrc
:{ rules: { preset, ...rules }, hyperParsers: { preset, ...hyperParsers }, ignores: [] }
JSON 格式 - 支持
.zhlintignore
: 每行一条 ignore 规则,等价于.zhlintrc
中的ignores
字段,且优先级更高 - 支持 custom hyper parser 和 custom rule 的第三方包,包名遵循
zhlint-parser-*
,zhlint-rule-*
,zhlint-preset-*
(待详细设计) - 支持以下 CLI 参数:
--dir
配置文件所在目录,--config
配置文件名,--ignore
ignore 配置文件名
from zhlint.
Related Issues (20)
- v0.7.1 计划
- 另起一行的情况不应该再强制使用空格导致他们变成一行
- TypeError: Cannot read properties of undefined (reading 'match')
- 引号未闭合,这个怎么关掉 HOT 3
- 希望可以生成文本报告 HOT 1
- 请教关于 .zhlintrc 的使用问题 HOT 2
- 全中文下,圆括号用半角还是全角? HOT 1
- 有docker compose版本么? HOT 1
- [BUG] 每次运行 `zhlint --fix` 时都会在文件最后添加一个空行 HOT 1
- .zhlintrc" does not exist. Will proceed as default. HOT 1
- 如果 markdown 文件有 frontmatter 会格式错误(Vitepress) HOT 1
- 有几个 bad case 会报错:Cannot read properties of undefined (reading 'match')
- 重新设计 .zhlintignore 以支持文件筛选 HOT 1
- 基于 W3C 中文排版需求统一术语
- 基于 W3C 中文排版需求进一步细分标点符号类型
- 基于 W3C 中文排版需求更新近似符号统一表和简体/繁体转换表
- recent bug collections
- api-extractor/tsconfig improvement
- 错误输出定位符位置不准确 HOT 2
- feat: add `spaceAroundHyperMark` rule HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zhlint.