Giter Club home page Giter Club logo

Comments (2)

Jinjiang avatar Jinjiang commented on May 31, 2024

补充:目前在 Vue 中文网站中发现的几个特殊配置需求如下:

  1. Heading 后面的全角问号和大括号之间的空格:## 谁在维护 Vue? {#who-maintains-vue}
  2. 用来切换 voa 和 vca 文档内容的 <span> 周围的空格使用与默认规则不符

这两个用例将作为目标案例进行分析

from zhlint.

Jinjiang avatar Jinjiang commented on May 31, 2024

需求整理

  • 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.