UNPKG

commitlint-plugin-function-rules

Version:
221 lines (220 loc) 5.17 kB
{ "name": "commitlint-plugin-function-rules", "version": "4.1.0", "description": "commitlint plugin to use functions as rule value", "keywords": [ "commitlint", "commitlintplugin", "function", "plugin", "rules" ], "homepage": "https://github.com/vidavidorra/commitlint-plugin-function-rules#readme", "bugs": { "url": "https://github.com/vidavidorra/commitlint-plugin-function-rules/issues" }, "repository": { "type": "git", "url": "git+https://github.com/vidavidorra/commitlint-plugin-function-rules.git" }, "license": "GPL-3.0-or-later", "author": "Jeroen de Bruijn", "type": "module", "exports": "./dist/index.js", "files": [ "./dist/**/!(*.test).{js,d.ts,cjs}" ], "scripts": { "build": "tsc", "format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn", "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn", "lint": "npm run format:check && xo", "lint:fix": "npm run format && xo --fix", "prepare": "husky .github/husky", "test": "c8 ava" }, "xo": { "prettier": true, "space": true }, "prettier": { "singleQuote": true }, "release": { "branches": [ "main", { "name": "beta", "prerelease": true } ], "plugins": [ [ "@semantic-release/commit-analyzer", { "releaseRules": [ { "type": "perf", "release": "patch" }, { "type": "revert", "release": "patch" }, { "type": "docs", "release": "patch" }, { "type": "chore", "release": false }, { "type": "refactor", "release": "patch" }, { "type": "test", "release": "patch" }, { "type": "build", "release": "patch" }, { "type": "ci", "release": "patch" } ] } ], "@semantic-release/release-notes-generator", "@semantic-release/changelog", [ "@semantic-release/exec", { "prepareCmd": "prettier --write CHANGELOG.md" } ], [ "@semantic-release/npm", { "tarballDir": "dist" } ], "@semantic-release/git", [ "@semantic-release/github", { "assets": "dist/*.tgz" } ] ], "preset": "conventionalcommits", "presetConfig": { "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "perf", "section": "Performance Improvements" }, { "type": "revert", "section": "Reverts" }, { "type": "docs", "section": "Documentation" }, { "type": "style", "section": "Styles" }, { "type": "chore", "section": "Miscellaneous Chores", "hidden": true }, { "type": "refactor", "section": "Code Refactoring" }, { "type": "test", "section": "Tests" }, { "type": "build", "section": "Build System" }, { "type": "ci", "section": "Continuous Integration" } ] } }, "ava": { "files": [ "!worktrees", "src/**/*.test.ts" ], "typescript": { "rewritePaths": { "src/": "dist/" }, "compile": "tsc" } }, "c8": { "include": [ "dist/**/*.js" ], "reporter": [ "cobertura", "html", "lcovonly", "text-summary" ] }, "devDependencies": { "@ava/typescript": "6.0.0", "@commitlint/cli": "20.0.0", "@commitlint/config-conventional": "20.0.0", "@commitlint/lint-19.x": "npm:@commitlint/lint@19.8.1", "@commitlint/load-19.x": "npm:@commitlint/load@19.8.1", "@commitlint/lint-20.x": "npm:@commitlint/lint@20.0.0", "@commitlint/load-20.x": "npm:@commitlint/load@20.0.0", "@commitlint/rules": "20.0.0", "@commitlint/types": "20.0.0", "@semantic-release/changelog": "6.0.3", "@semantic-release/exec": "7.1.0", "@semantic-release/git": "10.0.1", "@types/sinon": "17.0.4", "ava": "6.4.1", "c8": "10.1.3", "husky": "9.1.7", "lint-staged": "16.2.1", "prettier": "3.6.2", "semantic-release": "24.2.9", "sinon": "21.0.0", "typescript": "5.9.2", "xo": "1.2.2" }, "peerDependencies": { "@commitlint/lint": ">=19 <21" }, "engines": { "node": ">=20" }, "overrides": { "conventional-changelog-conventionalcommits": ">= 8.0.0" } }