{"name":"@fimbul/bifrost","version":"0.21.0-dev.20190322","description":"Compatibility layer for TSLint rules","main":"src/index","types":"src/index","author":{"name":"Klaus Meinhardt"},"license":"Apache-2.0","bugs":{"url":"https://github.com/fimbullinter/wotan/issues"},"homepage":"https://github.com/fimbullinter/wotan#readme","publishConfig":{"access":"public"},"repository":{"type":"git","url":"https://github.com/fimbullinter/wotan/tree/master/packages/bifrost"},"keywords":["wotan","rules","formatters","tslint","compatibility"],"peerDependencies":{"tslint":"^5.0.0","typescript":">= 3.1.1 || >= 3.4.0-dev || >= 3.5.0-dev"},"dependencies":{"@fimbul/ymir":"0.21.0-dev.20190322","get-caller-file":"^2.0.0","tslib":"^1.8.1","tsutils":"^3.5.0"},"devDependencies":{"@types/get-caller-file":"^1.0.0"},"readme":"# Bifröst\n\nCompatiblity layer for TSLint rules and formatters.\n\n[![npm version](https://img.shields.io/npm/v/@fimbul/bifrost.svg)](https://www.npmjs.com/package/@fimbul/bifrost)\n[![npm downloads](https://img.shields.io/npm/dm/@fimbul/bifrost.svg)](https://www.npmjs.com/package/@fimbul/bifrost)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovateapp.com/)\n[![CircleCI](https://circleci.com/gh/fimbullinter/wotan/tree/master.svg?style=shield)](https://circleci.com/gh/fimbullinter/wotan/tree/master)\n[![Build status](https://ci.appveyor.com/api/projects/status/a28dpupxvjljibq3/branch/master?svg=true)](https://ci.appveyor.com/project/ajafff/wotan/branch/master)\n[![codecov](https://codecov.io/gh/fimbullinter/wotan/branch/master/graph/badge.svg)](https://codecov.io/gh/fimbullinter/wotan)\n[![Join the chat at https://gitter.im/fimbullinter/wotan](https://badges.gitter.im/fimbullinter/wotan.svg)](https://gitter.im/fimbullinter/wotan)\n\nMake sure to also read the [full documentation of all available modules](https://github.com/fimbullinter/wotan#readme).\n\n## Purpose\n\nAllows TSLint rule authors to provide the same rules for Wotan without any refactoring.\nAlthough `@fimbul/heimdall` already allows users to use your rules and formatters in Wotan, they still need to remember to use `-m @fimbul/heimdall` when running Wotan.\nYou can help these users by providing your rules in a format that Wotan understands without any plugin.\n\nIt also provides the exact opposite functionality: using rules originally written for Fimbullinter (wotan) as TSLint rule.\n\n## Installation\n\n```sh\nnpm install --save @fimbul/bifrost\n# or\nyarn add @fimbul/bifrost\n```\n\n## Using TSLint Rules and Formatters in Wotan\n\n### Rules\n\nGiven a TSLint rule `my-foo` in a file `myFooRule.ts`, you simply create a file `my-foo.ts` with the following content:\n\n```ts\nimport {wrapTslintRule} from '@fimbul/bifrost';\nimport {Rule} from './myFooRule.ts';\n\nconst Wrapped = wrapTslintRule(Rule, 'my-foo');\nexport {Wrapped as Rule};\n```\n\nIf you want to use a different directory for your TSLint rules and their Wotan wrapper, you just need to adjust the paths in the above example.\n\n### Formatters\n\nGiven a TSLint formatter `my-foo` in a file `myFooFormatter.ts`, you simply create a file `my-foo.ts` with the following content:\n\n```ts\nimport {wrapTslintFormatter} from '@fimbul/bifrost';\nimport {Formatter} from './myFooFormatter.ts';\n\nconst Wrapped = wrapTslintFormatter(Formatter);\nexport {Wrapped as Formatter};\n```\n\nNote that findings with severity `suggestion` are reported as `warning` through TSLint formatters.\n\n## Using Fimbullinter Rules in TSLint\n\nGiven a Fimbullinter rule `my-foo` in a file `my-foo.ts`, you simply create a file `myFooRule.ts` with the following content:\n\n```ts\nimport {wrapRuleForTslint} from '@fimbul/bifrost';\nimport {Rule} from './my-foo.ts';\n\nconst Wrapped = wrapRuleForTslint(Rule);\nexport {Wrapped as Rule};\n```\n\n## License\n\nApache-2.0 © [Klaus Meinhardt](https://github.com/ajafff)\n","readmeFilename":"README.md","_id":"@fimbul/bifrost@0.21.0-dev.20190322","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-39T3r3FDHyTdg221UC5RRxMFIuALb+N8O3H51NGlYtMbk03TOWgxN5QSDqw/pkP1utpvtrYkQ1sAOyqznO8EnA==","shasum":"54b3c4d5259b7e0763d72894e9c9c9a05ea88270","tarball":"http://registry-npm.ywwl.com/@fimbul/bifrost/download/@fimbul/bifrost-0.21.0-dev.20190322.tgz","fileCount":7,"unpackedSize":27997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclEyNCRA9TVsSAnZWagAAcSwP/Ru8ZF7DgNpdgDAwgoPY\nq9aktvBZr4JO5PwGiXoOpbOXoPU0YjdZ1dkaLxqceWkikIe+5xeKHshPErwC\nzs1bMgvSA/7Wsz2niffsLp3/mHUQhmaqHD+ig8drPYYjr4HhZzE0k+PvUM9l\nTbH439tEIJAlbWvrtIuma6z3JNGnkRp5e3GAKzLtlvw06MhtNURTZN0mLUzV\nLuTmX7A+0n7E+Zs1DFIey8OddTSu2LDNqq3IvdLagrhOAidU2GFUDEEWVpDC\nvbC3cZLcKIDJvQwzBDaeOflgLdHTKT0Byy75itVpCPi2/nOmXvDg8cn6ZHQS\n5ze1JBgfe3eXwm2J9xfBn45xFxnfAEGs+cacai4ypwPy1Du8pLOnYEt99cU1\nBFRlMG4rnZkT4DyVJ6unJuoyW7pqRJ2AbsbKld+PM72tz1/CfyYZf/JRnaVJ\nmzKpFfCvvmaqrY6QAFPI8IQYOApiUKtLO1U+Njdjk0yDFMFkHpk9Kxb8Phf5\nGWTBfJ3SZGrEoZIN0Txdy8Bv5GOilIZsIfByetUh84/YjR//LUJKDEkUMYVc\no92rOKSlaGBK5i95YUyZMwmrvPASPkw2cZUvvOVz8luuf+0yOTXdsGL8BVuS\nMg8xX+xaXXWUnOX5kB67wm+JaQvSPSHjY5wd3gScFg+N9ncm4lA7f9+2SN1y\nbN49\r\n=uwh0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcO77R1pjDkH66o6BY/sMcJ4ep/ZTpuMkc3DTGe4W34wIhALRstEV8lG8WvOxRGUO8QPNTaSEFAMIlA7PayrFN59cD"}],"size":9029,"noattachment":false,"key":"/@fimbul/bifrost/-/@fimbul/bifrost-0.21.0-dev.20190322.tgz"},"maintainers":[{"email":"klaus.meinhardt1@gmail.com","name":"ajaff"},{"email":"klaus.meinhardt1@gmail.com","name":"harbard"}],"_npmUser":{"name":"harbard","email":"klaus.meinhardt1@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bifrost_0.21.0-dev.20190322_1553222797055_0.2426277400269805"},"_hasShrinkwrap":false,"publish_time":1553222797212,"_cnpm_publish_time":1553222797212,"dist-tags":{"latest":"0.24.0","next":"0.24.0"}}