{"name":"@putout/quick-lint","version":"2.0.0","keywords":["quick-lint-js","linter","js","putout"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/quick-lint@2.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"http://github.com/putoutjs/quick-lint","bugs":{"url":"https://github.com/putoutjs/quick-lint/issues"},"bin":{"quick-lint":"bin/quick-lint.mjs"},"dist":{"shasum":"04d7e12d3137077e7305af39dcde2fb483a5ae6a","tarball":"http://registry-npm.ywwl.com/@putout/quick-lint/download/@putout/quick-lint-2.0.0.tgz","fileCount":10,"integrity":"sha512-aq9M4I0bR5guOX9pOhNXAeHJkapXkLemATEiGkrTkdlYO3CdxQPwTSOWj0KUwpclzDA2TydStAMafF6C7neozw==","signatures":[{"sig":"MEUCIQCBVR4a9apwwfge8Iz3+MGJV3+ZuiMwrlZVRKo3ogJdcAIgDraPz5yzH26hnov5kXcrAchlhsiLPYACCtlLCraMCdo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":514851,"size":180632,"noattachment":false,"key":"/@putout/quick-lint/-/@putout/quick-lint-2.0.0.tgz"},"main":"lib/quick-lint.js","type":"module","engines":{"node":">=20"},"gitHead":"59808e68032d85083cbb974a718e8ae2c9516fdb","scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","watcher":"madrun watcher","coverage":"madrun coverage","fix:lint":"madrun fix:lint","watch:lint":"madrun watch:lint","watch:test":"madrun watch:test","update:dist":"madrun update:dist"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"repository":{"url":"git+https://github.com/putoutjs/quick-lint.git","type":"git"},"_npmVersion":"11.1.0","description":"quick-lint-js as library","directories":{},"_nodeVersion":"24.1.0","dependencies":{"once":"^1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","ipull":"^4.0.3","eslint":"^9.1.1","madrun":"^11.0.2","montag":"^1.2.1","putout":"^40.3.0","nodemon":"^3.1.0","supertape":"^11.1.3","@putout/test":"^13.3.1","try-to-catch":"^3.0.1","eslint-plugin-putout":"^27.1.0"},"_npmOperationalInternal":{"tmp":"tmp/quick-lint_2.0.0_1748951014065_0.18828802834078884","host":"s3://npm-registry-packages-npm-production"},"readme":"# Quick Lint [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/quick-lint.svg?style=flat\n[BuildStatusURL]: https://github.com/putoutjs/quick-lint/actions?query=workflow%3A%22Node+CI%22 \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/putoutjs/quick-lint/workflows/Node%20CI/badge.svg\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/@putout/quick-lint \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/putoutjs/quick-lint?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/putoutjs/quick-lint/badge.svg?branch=master&service=github\n\n[quick-lint-js](https://quick-lint-js.com/) as library.\n\n## Install\n\n`npm i @putout/quick-lint --save`\n\n## API\n\n### quickLint(source: string, options: Options)\n\n```ts\ninterface Options {\n    isJSX: boolean;\n    isTS: boolean;\n    startLine: number;\n}\n```\n\n```js\nconst quickLint = require('@putout/quick-lint');\nconst option = `\n    function x() {\n        await m();\n    }\n`;\n\nquickLint(source, {\n    isJSX: true,\n    isTS: false,\n    startLine: 0, // default\n});\n\n// returns\n[{\n    rule: 'parser (quick-lint-js)',\n    message: '\\'await\\' is only allowed in async functions',\n    position: {\n        line: 2,\n        column: 8,\n    },\n}, {\n    rule: 'parser (quick-lint-js)',\n    message: 'use of undeclared variable: m',\n    position: {\n        line: 2,\n        column: 14,\n    },\n}];\n```\n\n## License\n\nMIT\n","publish_time":1748951014316,"_cnpm_publish_time":1748951014316,"dist-tags":{"latest":"2.1.0"}}