Giter Club home page Giter Club logo

Comments (3)

Jinjiang avatar Jinjiang commented on July 16, 2024

我看了一下你引用的这个 issue,感觉重点是回避检查代码片段,不然代码里肯定有很多非中文的书写习惯会导致错误,目前 zhlint 默认只会跳过一些比较明显的非中文内容,比如 markdown 里的 code block。

from zhlint.

Jinjiang avatar Jinjiang commented on July 16, 2024

针对你提供的用例,我建议在执行 zhlint 的上层环境加一些判断规则吧。如果想完全跳过 zhlint 的所有检查,可以加 <!-- zhlint disabled -->,但我不确定这是不是你想要的。

from zhlint.

ygqygq2 avatar ygqygq2 commented on July 16, 2024

感谢作者开发这么好用的工具,规范主要还是用于注释中和 markdown 这种书写。代码和配置文件内容的话,因为各种符号和编程规范,确实可能会冲突。我现在的配置是这样,写前端、JS、TS 这些用起来没啥问题。注释的代码这个引号的提示问题,是 eslint-plugin-zhlint 这个工具没有处理好。

        zhlint: {
          rules: {
            halfWidthPunctuation: '',
            fullWidthPunctuation: '',
            unifiedPunctuation: 'simplified',
            spaceBetweenHalfWidthLetters: false,
            spaceAfterHalfWidthPunctuation: false,
          },
        },

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.