Skip to content

5.3.0

Compare
Choose a tag to compare
@azu azu released this 18 Dec 01:45
· 327 commits to master since this release

Bug Fixes

  • deps: update dependency prh to ^5.4.4 (c6b62e3)
  • typo: textlinrc -> textlintrc (#67) (80753d7)

Features

  • options: support CodeBlock's comment (#69) (ee66921), closes #38

You can check the code's commebt by checkCodeComment options.

Example

{
    "rules": {
        "prh": {
            "checkCodeComment": ["js", "javascript"],
            "rulePaths" :["./prh.yml"]
        }
    }
}

Support CodeBlock's comment // and /*.

// $ is jquery

Limitation: It just support JavaScript Code, because I don't found any lang comment parser correctly.

Future Work: #70