{"name":"@commitlint/lint","version":"14.0.0","description":"Lint a string against commitlint rules","main":"lib/lint.js","types":"lib/lint.d.ts","scripts":{"deps":"dep-check","pkg":"pkg-check --skip-import"},"engines":{"node":">=v12"},"repository":{"type":"git","url":"git+https://github.com/conventional-changelog/commitlint.git","directory":"@commitlint/lint"},"bugs":{"url":"https://github.com/conventional-changelog/commitlint/issues"},"homepage":"https://commitlint.js.org/","keywords":["conventional-changelog","commitlint","library","core"],"author":{"name":"Mario Nebl","email":"hello@herebecode.com"},"license":"MIT","devDependencies":{"@commitlint/test":"^14.0.0","@commitlint/utils":"^14.0.0"},"dependencies":{"@commitlint/is-ignored":"^14.0.0","@commitlint/parse":"^14.0.0","@commitlint/rules":"^14.0.0","@commitlint/types":"^14.0.0"},"gitHead":"0bb3487f8ca0cd8e67977c089f65037ea2c7788b","readme":"> Lint a string against commitlint rules\n\n# @commitlint/lint\n\n## Getting started\n\n```shell\nnpm install --save @commitlint/lint\n```\n\n## Example\n\n```js\nconst lint = require('@commitlint/lint').default;\n\nlint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then((report) =>\n  console.log(report)\n);\n// => { valid: true, errors: [], warnings: [] }\n\nlint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) =>\n  console.log(report)\n);\n/* =>\n    { valid: true,\n      errors: [],\n      warnings:\n      [ { level: 1,\n          valid: false,\n          name: 'type-enum',\n          message: 'type must be one of [bar]' } ] }\n  */\n```\n\nConsult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.\n","readmeFilename":"README.md","_id":"@commitlint/lint@14.0.0","_nodeVersion":"12.22.7","_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (darwin)","dist":{"integrity":"sha512-nC6eNLOlqF6mPEtMSKW84oF15j3xfEvF6aurYSrlN2iilkSR/2lSk8kw7cfC+V8wkbNO9AkVQM2xrPnDQ7Qp7g==","shasum":"0192e0909e766f3de7d4c1c9d112ca7bc00452ea","tarball":"http://registry-npm.ywwl.com/@commitlint/lint/download/@commitlint/lint-14.0.0.tgz","fileCount":12,"unpackedSize":23730,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGJOWK0PqTRCp/eOrkoSIyjJAFUAbthWBCHogr1TveNQIhAOVgjA0jZiyGQZ+ImSf1RoOeQT3Ome1d1Y8uK+S+AYwY"}],"size":6698,"noattachment":false,"key":"/@commitlint/lint/-/@commitlint/lint-14.0.0.tgz"},"_npmUser":{"name":"escapedcat","email":"npm@htmlcss.de"},"directories":{},"maintainers":[{"name":"marionebl","email":"hello@mario-nebl.de"},{"name":"martinhelmut","email":"info@martin-fieber.se"},{"name":"escapedcat","email":"npm@htmlcss.de"},{"name":"bycedric","email":"me@bycedric.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lint_14.0.0_1635224160772_0.29291956213071657"},"_hasShrinkwrap":false,"publish_time":1635224160896,"_cnpm_publish_time":1635224160896,"dist-tags":{"latest":"21.2.4"}}