Skip to content

v3.0.0

Compare
Choose a tag to compare
@azu azu released this 09 May 03:57
· 16 commits to master since this release

Features

  • add skipPatterns and skipUrlStringLink options (#17) (6ece8cd)

v3.0.0 allow following URL string link by default.

Very long <https://example.com?longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong> URL.

You can configure it by skipUrlStringLink options.

BREAKING CHANGES

  • skip to count of url string link by default
  • Deprecated exclusionPatterns and use skipPatterns instead of it
  • Add skipUrlStringLink and Enable it by default

Migration from v2

If you want to get the same behavior to v2, update the package and put the following settings.

{
    "rules": {
        "sentence-length": {
            "max": 100,
-            "exclusionPatterns": [
+            "skipPatterns": [
                "/\\(.*\\)$\\./"
            ],
+            "skipUrlStringLink": false
        }
    }
}