Socket
Socket
Sign inDemoInstall

commitlint-plugin-tense

Package Overview
Dependencies
51
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    commitlint-plugin-tense

A commitlint plugin that checks tense


Version published
Weekly downloads
1K
decreased by-9.34%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.2 (2023-06-15)

Bug Fixes

  • add capture to allowlist (a3f6312)

Readme

Source

Commitlint Plugin Tense

A commitlint plugin that checks tense

Getting Started

npm install --save-dev commitlint-plugin-tense

And configure commitlint.config.js to use the tense plugin.

module.exports = {
  plugins: ['commitlint-plugin-tense'],
  rules: {
    'tense/subject-tense': [1, 'always']
  }
}
subject-tense
  • condition: subject is verbalized in tense present in allowedTenses
'tense/subject-tense': [severity, when, options]
  • severity: 0 disable, 1 warning, or 2 error
  • when: always or never
  • options
{
  // Array of tenses allowed
  allowedTenses: ['present-imperative'],
  // Check the first verb only or all verbs
  // Accuracy is low when checking all verbs, use with warning level only
  firstOnly: true,
  // A list of additional allowed words
  allowlist: [],
}
Tenses
[
  'past-participle', // done
  'past-tense', // did
  'present-imperative', // do
  'present-participle', // doing
  'present-third-person' // does
]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/actuallydamo/commitlint-plugin-tense

Keywords

FAQs

Last updated on 15 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc