{"name":"@putout/quick-lint","version":"1.1.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@1.1.0","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":"11bf63098fcbf372aa43bdb6a4795a2bcb8de6fa","tarball":"http://registry-npm.ywwl.com/@putout/quick-lint/download/@putout/quick-lint-1.1.0.tgz","fileCount":9,"integrity":"sha512-5zKi03SPGSQiEllctAvaFg+EHNrxCCOdU/wvpQEuUD5DAbxZncrbIuvD+reMxg67pO+ZdzL46uHhPgJ3PussPQ==","signatures":[{"sig":"MEYCIQDswWjYgR5gKVEcnEKdLPENg+lkIeoHcuosl/bBRN/2SAIhANZrp2Fp9iWGm2TNw+NQ2vMqSptYgklHMV+nWNz5FfA1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":503580,"size":177588,"noattachment":false,"key":"/@putout/quick-lint/-/@putout/quick-lint-1.1.0.tgz"},"main":"lib/quick-lint.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"a13c68e64deeb414ad6021d876cc3ea069297503","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://github.com/putoutjs/quick-lint.git","type":"git"},"_npmVersion":"10.5.0","description":"quick-lint-js as library","directories":{},"_nodeVersion":"20.12.2","dependencies":{"once":"^1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^9.1.0","eslint":"^9.1.1","madrun":"^10.0.1","montag":"^1.2.1","putout":"^35.16.2","nodemon":"^3.1.0","supertape":"^10.5.0","@putout/test":"^9.1.0","try-to-catch":"^3.0.1","eslint-plugin-n":"^17.3.1","eslint-plugin-putout":"^22.5.1"},"_npmOperationalInternal":{"tmp":"tmp/quick-lint_1.1.0_1714392316742_0.5777612748987437","host":"s3://npm-registry-packages"},"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":1714392316957,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1714392316957,"dist-tags":{"latest":"2.1.0"}}