New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commitlint-plugin-wizardoc-rules

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitlint-plugin-wizardoc-rules - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "commitlint-plugin-wizardoc-rules",
"version": "1.0.0",
"version": "1.1.0",
"main": "./dist/index.js",
"license": "MIT"
}
import { BREAK_CHANGE_SYMBOL } from "./constants";
import { Commit, Rule, RuleOutcome } from "@commitlint/types";
import { Commit, RuleOutcome, RuleConfigCondition } from "@commitlint/types";

@@ -10,10 +10,14 @@ export type WithSymbol<T> = T & {

export const breakChangeSymbolRule = (walkData: Commit): RuleOutcome => {
export const breakChangeSymbolRule = (
walkData: Commit,
_when?: RuleConfigCondition,
value: string = BREAK_CHANGE_SYMBOL
): RuleOutcome => {
const { symbol } = walkData as CommitWithSymbol;
const isRuleValid = !symbol || symbol === BREAK_CHANGE_SYMBOL;
const isRuleValid = !symbol || symbol === value;
return [
isRuleValid,
`break change must be symbol with "${BREAK_CHANGE_SYMBOL}" e.g: ${BREAK_CHANGE_SYMBOL}[Type::scope] subject`,
`break change must be symbol with "${value}" e.g: ${value}[Type::scope] subject`,
];
};
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc