{"maintainers":[{"name":"anonymous","email":"ethan@pilatch.com"}],"keywords":["auto fix","auto format","auto-fix","auto-format","tslint auto fix","tslint auto format","tslint fix","tslint format","tslint","tslint-fix","tslint-format"],"dist-tags":{"latest":"1.0.0"},"description":"Watches your files for changes, runs them through TSLint's fix function, then overwrites them if they have been fixed.","readme":"# tslint-auto-fix\n\nWatches your files for changes, runs them through TSLint's fix function, then overwrites them if they have been fixed.\n\nUses your existing TSLint configuration.\n\nIt's good for productivity, helping your team conform to whatever TS style guide you choose without worrying about text editor plugins or additional setup. Heck, you could have different projects using totally different style guides, and your developers won't care whether they have to write semicolons or not.\n\n## Installation\n\n```bash\nnpm i --save-dev tslint-auto-fix\n```\n\n## Usage\n\n```bash\nnpx tslint-auto-fix\n```\n\nOr add it to your package.json\n\n```json\n{\n  \"scripts\": {\n    \"fix-ts\": \"tslint-auto-fix\"\n  }\n}\n```\n\n## Command Line Options\n\n`--help` to show the help message\n\n`--project` to specify your Typescript configuration. Defaults to `tsconfig.json`.\n\n`--verbose` to report whenever a file is changed.\n\n`--format` to specify which TSLint format to use. Defaults to `prose`, which is probably what you want.\n\n`[globs-to-watch]` are all the file globs you want tslint-auto-fix to watch. You can pass multiple globs.\n\nExample:\n\n```bash\nnpx tslint-auto-fix \"src/**/*.ts\" \"cli.ts\" \"bin/*.ts\"\n```\n\n## Quote 'em!\n\nBecause your shell loves to expand `*` characters, you'll probably want to put these in quotes. Otherwise it'll feed a limited number of file paths to tslint-auto-fix, and should you add new files that would match that initial glob, they won't be fixed.\n\nExample:\n\n```bash\nnpx tslint-auto-fix \"lib/*.ts\"\n```\n\nThe above will probably do what you want. If a new file is added in the `lib` folder, tslint-auto-fix will watch it and fix it automatically without requiring you to restart the process.\n\nHowever:\n\n```bash\nnpx tslint-auto-fix lib/*.ts\n```\n\nWithout the quotes this will only watch the `.ts` files that are present in the `lib` folder at the time this process starts.\n\n## Defaults\n\nIf you don't provide the file globs to watch, it will watch all files in your project ending in `.ts` and `.tsx`.\n\n## Peer Dependency\n\nThis module has a peer dependency on TSLint. If you don't already have that installed in your project, add it to your \"devDependencies\" in package.json. If anything weird is going on, check the version requirements and let me know.\n\n## Limitations\n\nWhat can be fixed is limited by what TSLint can fix.\n","repository":{"type":"git","url":"git+https://github.com/Pilatch/tslint-auto-fix.git"},"bugs":{"url":"https://github.com/Pilatch/tslint-auto-fix/issues"},"license":"GNU GENERAL PUBLIC LICENSE","versions":{"1.0.0":{"name":"tslint-auto-fix","version":"1.0.0","repository":{"type":"git","url":"git+https://github.com/Pilatch/tslint-auto-fix.git"},"bin":{"tslint-auto-fix":"cli.js"},"main":"fix.js","scripts":{},"dependencies":{"chokidar":"^2.0.4","tslint":"^5.8","typescript":"^3.3.3333","yargs":"^13.2.1"},"devDependencies":{},"peerDependencies":{"tslint":">=5.8"},"engines":{"node":">=6 < 14"},"license":"GNU GENERAL PUBLIC LICENSE","keywords":["auto fix","auto format","auto-fix","auto-format","tslint auto fix","tslint auto format","tslint fix","tslint format","tslint","tslint-fix","tslint-format"],"gitHead":"6547a522271fc61dd2043a670dc9ebe19a0fcc88","description":"Watches your files for changes, runs them through TSLint's fix function, then overwrites them if they have been fixed.","bugs":{"url":"https://github.com/Pilatch/tslint-auto-fix/issues"},"homepage":"https://github.com/Pilatch/tslint-auto-fix#readme","_id":"tslint-auto-fix@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"anonymous","email":"ethan@pilatch.com"},"dist":{"integrity":"sha512-uqvOuFuhFtXGH44hY/EFb/8w8Bu+2/vpCfMUVFqbmapNM/+ysG8oeLG7m4h+WO+uH+svwjUbdidKKFNwttCkKA==","shasum":"91456d14fe7b887f9f0bf9fff293811040016fcc","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/tslint-auto-fix/-/tslint-auto-fix-1.0.0.tgz","fileCount":6,"unpackedSize":89868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchp6XCRA9TVsSAnZWagAAZ6wP/1qzMTCxTaC9iVpq2phM\nL2pSfw9nG1YL54iLyVZwr+b4jnX1BFPwcsgvulKg9M3ZSCJlKD9KX2onDuUh\n9INvUCelXMx+qil5fsMoLZRubtxJM9Jqm9cx2JJPIWJW4GY3diz/hZ3Mxcdk\nxNcfYwxI6YQN4nNtyIOqchE12irzCmnE6zCB7M0FRnBus+nLtGlLyzytVlm8\nD+vRxkF95y9PfF1DAsWPgDBIkLFivImHt+LeB4Nyq8viAcEp7z8pNP50kUC/\nX3f3mOYw9QibsuR4NEqpB9CS/bIWFmjCYttk4rnSsLx31l4Gn3LV6DEVgD71\nD+RdmIFO2c0JdtaIc4HgCxJ/s9QL8iGdD8Vgm/xyyvE83LBms7Fqp1piCq7I\nGHwL72wjxJbd54Dukyjtk4ulX/it7B/7ClFhcJFwTG6i3TL0yLlyzL0inoVT\nQCfzgm4DKgJLcqkXkZBBf8aN9mp2pHOY/Ao2UBU+L1SQylMLzhGob8IOgSiG\nnFspHqrkYED13UMyeIehCEoBT/c43RuTckP1g8Lmgt0x/eJL2St9KkxtD7r+\n+yfJeMpmWawxi3/o4iK4bpHg5aZC45hZP+bDB+/5wI58TwHUscdN3+jdcXPV\nx/sjm0K8hOBSXfQJKgxlRP5IuUbkgAKmQbUA05OGh32MgpATmHCmXlMIUK8c\nRN5Y\r\n=Kq8T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4hu/9B4xwGNLEvWWNDhquL1ZP6ucwyFS89uV2RLNYUAIhAPl0EXqXTsivgN6X0UTcD8zr+aqRLCj3GtBqwMVkW6Gp"}]},"maintainers":[{"name":"anonymous","email":"ethan@pilatch.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tslint-auto-fix_1.0.0_1552326294331_0.9765083874961638"},"_hasShrinkwrap":false}},"name":"tslint-auto-fix","time":{"created":"2019-03-11T17:44:54.331Z","1.0.0":"2019-03-11T17:44:54.515Z","modified":"2022-05-22T08:35:43.821Z"},"readmeFilename":"README.md","homepage":"https://github.com/Pilatch/tslint-auto-fix#readme"}