{"_id":"@bung87/tslint-to-eslint-config","_rev":"2-4a1df817993ec4e6d817dc906cb02259","name":"@bung87/tslint-to-eslint-config","dist-tags":{"latest":"2.9.2"},"versions":{"2.9.1":{"bin":{"tslint-to-eslint-config":"bin/tslint-to-eslint-config"},"bugs":{"url":"https://github.com/typescript-eslint/tslint-to-eslint-config/issues"},"description":"Converts your TSLint configuration to the closest reasonable ESLint equivalent.","engines":{"node":">=12.0.0"},"dependencies":{"chalk":"4.1.2","commander":"8.1.0","cson-parser":"4.0.9","eslint-config-prettier":"8.3.0","glob":"7.1.7","json5":"2.2.0","lodash":"4.17.21","minimatch":"3.0.4","tslint":"6.1.3","typescript":"4.3.5"},"devDependencies":{"@babel/core":"7.15.0","@babel/plugin-proposal-nullish-coalescing-operator":"7.14.5","@babel/plugin-proposal-optional-chaining":"7.14.5","@babel/preset-env":"7.15.0","@babel/preset-typescript":"7.15.0","@types/eslint-config-prettier":"6.11.0","@types/glob":"7.1.4","@types/jest":"27.0.1","@types/json5":"0.0.30","@types/lodash":"4.14.172","@types/minimatch":"3.0.5","@types/node":"16.0.0","@typescript-eslint/eslint-plugin":"4.29.1","@typescript-eslint/parser":"4.29.1","babel-jest":"27.0.6","eslint":"7.32.0","eslint-plugin-simple-import-sort":"7.0.0","husky":"7.0.1","jest":"27.0.6","lint-staged":"11.1.2","prettier":"2.3.2","strip-ansi":"6.0.0"},"homepage":"https://github.com/typescript-eslint/tslint-to-eslint-config#readme","keywords":["eslint","tslint","lint","configuration"],"license":"MIT","lint-staged":{"**/*.{js,json,ts,xml,yaml}":["prettier --write"]},"main":"./src/index.js","name":"@bung87/tslint-to-eslint-config","repository":{"type":"git","url":"git+https://github.com/typescript-eslint/tslint-to-eslint-config.git"},"scripts":{"eslint":"eslint \"./src/*.ts\" \"./src/**/*.ts\" --report-unused-disable-directives","precommit":"lint-staged","prepare":"husky install","prettier":"prettier \"./src/*.{js,json,ts,xml,yaml}\" \"./src/**/*.{js,json,ts,xml,yaml}\" --ignore-path .prettierignore","prettier:write":"npm run prettier -- --write","test":"jest","test:ci":"jest --coverage --maxWorkers=2","tsc":"tsc"},"version":"2.9.1","gitHead":"09732523b13a3e5b139f84c68939cb397fa89254","_id":"@bung87/tslint-to-eslint-config@2.9.1","_nodeVersion":"14.17.4","_npmVersion":"7.20.5","dist":{"integrity":"sha512-zvbSGbwNndfDLBGIMtGUKTsfZUkL9/BdONRahjE+Y/Rt5S1GrvGX3E0PMNhlIdtLiH6OmdVHV94O3p8uaWAQNA==","shasum":"2536cca8cb689bca547a7d4f9f0e74a4af052692","tarball":"https://registry.npmjs.org/@bung87/tslint-to-eslint-config/-/tslint-to-eslint-config-2.9.1.tgz","fileCount":34,"unpackedSize":48922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGUA8CRA9TVsSAnZWagAADNoQAIlF9+ljhxQqM/S827Dy\nAQdJ9pAtHP/2GZLXgA4ezLtEpRTkFNBfFJDInC8z/NRb9wB1lSVrDUVOmeqt\nvjLi259cKEinONoztJ4CszIZh2SNd0AFYKL4aKmEq3iZDtxsBu5L7qRhyCho\nQsXg6T44gdaDz7H1KSqgW0VfRktEcKthJFZgXJ59FU14QJdlNZ7pJMJcx9tx\nZga32xfi/Ya19GMCDsczJ8tqQwT22ioUXq5GU/qSm9tuhOG4mld5pMzMxhJ0\nIeuzIH6EC44KeQQ2yPdCuglq9n8pVe2uoEDHjKxAtAPRg8zgWfBR96m8cfUB\nGUear47+Ly7TDG4ZoBhoKn1XwxOPkJlF4uPnakhkoO0SMk+0RG/yF1zzAdhX\nlMl+8CuVsbPwcCfZIvtWnENkDr6pMP+Z5sRx5VhEv82qabVLUH4TvDf1OR0t\nXxMVN4MMPfKJZ6lBfzuT1MZ9ysCAeDDkaPvO4eO7QfdT6odeG/XW/UF4yZ2W\nNgkKnnLUcelOeISOwZA3yidLBJEA6LbrpWC/sy0AwT14Z92ltygZVqtlraZD\nosI6GoJ4Jvkk1lFGuz75xd7efZYs7QNMnflvBkLF+BBHVmKkxEQJ7QsSedHh\nyZ4JOnKGKrgA6UXgRYH2+3p5oGffLZEDyWfbTP2AR/dpJZ8RcCaUF4MgvY9a\nRfu/\r\n=TSbg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWr9aKG8fN9reujCqbLAIEPBRqejWG12sD4e4URD8MHAiEAzAH9eNNUQajt6YLbe02GvJt48WoGvPrs+diLHrpL9wo="}]},"_npmUser":{"name":"bung87","email":"crc32@qq.com"},"directories":{},"maintainers":[{"name":"bung87","email":"crc32@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tslint-to-eslint-config_2.9.1_1629044796261_0.8931315601361098"},"_hasShrinkwrap":false},"2.9.2":{"bin":{"tslint-to-eslint-config":"bin/tslint-to-eslint-config"},"bugs":{"url":"https://github.com/typescript-eslint/tslint-to-eslint-config/issues"},"description":"Converts your TSLint configuration to the closest reasonable ESLint equivalent.","engines":{"node":">=12.0.0"},"dependencies":{"chalk":"4.1.2","commander":"8.1.0","cson-parser":"4.0.9","eslint-config-prettier":"8.3.0","glob":"7.1.7","json5":"2.2.0","lodash":"4.17.21","minimatch":"3.0.4","tslint":"6.1.3","typescript":"4.3.5"},"devDependencies":{"@babel/core":"7.15.0","@babel/plugin-proposal-nullish-coalescing-operator":"7.14.5","@babel/plugin-proposal-optional-chaining":"7.14.5","@babel/preset-env":"7.15.0","@babel/preset-typescript":"7.15.0","@types/eslint-config-prettier":"6.11.0","@types/glob":"7.1.4","@types/jest":"27.0.1","@types/json5":"0.0.30","@types/lodash":"4.14.172","@types/minimatch":"3.0.5","@types/node":"16.0.0","@typescript-eslint/eslint-plugin":"4.29.1","@typescript-eslint/parser":"4.29.1","babel-jest":"27.0.6","eslint":"7.32.0","eslint-plugin-simple-import-sort":"7.0.0","husky":"7.0.1","jest":"27.0.6","lint-staged":"11.1.2","prettier":"2.3.2","strip-ansi":"6.0.0"},"homepage":"https://github.com/typescript-eslint/tslint-to-eslint-config#readme","keywords":["eslint","tslint","lint","configuration"],"license":"MIT","lint-staged":{"**/*.{js,json,ts,xml,yaml}":["prettier --write"]},"main":"./src/index.js","name":"@bung87/tslint-to-eslint-config","repository":{"type":"git","url":"git+https://github.com/typescript-eslint/tslint-to-eslint-config.git"},"scripts":{"eslint":"eslint \"./src/*.ts\" \"./src/**/*.ts\" --report-unused-disable-directives","precommit":"lint-staged","prepare":"husky install","prettier":"prettier \"./src/*.{js,json,ts,xml,yaml}\" \"./src/**/*.{js,json,ts,xml,yaml}\" --ignore-path .prettierignore","prettier:write":"npm run prettier -- --write","test":"jest","test:ci":"jest --coverage --maxWorkers=2","tsc":"tsc","prepublishOnly":"tsc"},"version":"2.9.2","gitHead":"09732523b13a3e5b139f84c68939cb397fa89254","_id":"@bung87/tslint-to-eslint-config@2.9.2","_nodeVersion":"14.17.4","_npmVersion":"7.20.5","dist":{"integrity":"sha512-2aqMKiuco7QqHuA2Ie5aR9iMF0oF9SYeBzqQAi7PytWfpdfFHQunIs3V9wM4bY9X5HopVo6DRGH0xq0paMzOXQ==","shasum":"86e983345b4fa5c1b0b667bcbc60edde13be177c","tarball":"https://registry.npmjs.org/@bung87/tslint-to-eslint-config/-/tslint-to-eslint-config-2.9.2.tgz","fileCount":803,"unpackedSize":480564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGUEOCRA9TVsSAnZWagAAaQsP/RaQvKxIou1Nk4XKSqzK\nlXAQjRuaas5bfUsHT6eLl7Mi0oLN2mOYVgP9tUa/aDk2k+E65U3aIOdRDN1C\naBZP5EYSGICSzCOXFcGAoGI8/o50o6LWAG26yCxGX08AjNg5nLNAKFyrVQG8\nDK8eiipgLCT0C2v278qO7+G3Bv9a9OQVFM4XuUfNM6ahI4T8NVjjm7Hn1W5e\nBiP9CyOHze6sNDp4eP19jVYV/84ou+/O9Vh2O2yed7y02tacfV29+BZ+tnea\nGZjL8hMZ2X+8nLergKbrhXhZbYmyTI2jwZ+bfTXWlrtIHYhQ8cU0mMMmTA/2\n7itkOks6MqbggTKADASgxECHSFR0LQG9zcKczFce7prXkRTqftEk0+oIkbk8\nFnRerEmUPPDcmHQBeoEIzkW4nAG9CobjOkwgRziI2TxQax3BPMuP+2YyF3F6\ntp5EGR+BTSmyeC1zCP2HtU98AQ6M/oLxpHABp0cA279WroWiaDy0Xk9ZHWPT\n3GvaLorVMOD8fY8HwcKW2Y/MDf5WddgQGWPRdsXKeVlogxG5kXxBAwFvP5cI\njP2ymS4ZOMRz7LugozNaiN9cR+TdO5BtbQWgaTHlF81i3gMsrCynT6BClEeu\nhdn+XfytTK0g65xPkKvHtXPEaIRmnJW2jqzW7YrTRwi6usnT6zFAEQAdcouZ\nf46X\r\n=fF2Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEBn+LXPQgAZTIugYuWxo++QsVD7Nn/GUBmm0ACQ7HNwIhAIVFMC6XOatWx3PmRQhrbveRF8YRHZpPNrH9IS8TwN4a"}]},"_npmUser":{"name":"bung87","email":"crc32@qq.com"},"directories":{},"maintainers":[{"name":"bung87","email":"crc32@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tslint-to-eslint-config_2.9.2_1629045006359_0.6118847309079289"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-15T16:26:36.223Z","2.9.1":"2021-08-15T16:26:36.404Z","modified":"2022-04-04T21:06:14.246Z","2.9.2":"2021-08-15T16:30:06.494Z"},"maintainers":[{"name":"bung87","email":"crc32@qq.com"}],"description":"Converts your TSLint configuration to the closest reasonable ESLint equivalent.","homepage":"https://github.com/typescript-eslint/tslint-to-eslint-config#readme","keywords":["eslint","tslint","lint","configuration"],"repository":{"type":"git","url":"git+https://github.com/typescript-eslint/tslint-to-eslint-config.git"},"bugs":{"url":"https://github.com/typescript-eslint/tslint-to-eslint-config/issues"},"license":"MIT","readme":"# tslint-to-eslint-config\n\n[![Code Style: Prettier](https://img.shields.io/badge/code_style-prettier-e72163.svg)](https://prettier.io)\n![Coverage: 100%](https://img.shields.io/badge/coverage-100%25-orange.svg)\n![TypeScript: Strict](https://img.shields.io/badge/typescript-strict-yellow.svg)\n[![NPM version](https://badge.fury.io/js/tslint-to-eslint-config.svg)](http://badge.fury.io/js/tslint-to-eslint-config)\n[![Circle CI](https://img.shields.io/circleci/build/github/typescript-eslint/tslint-to-eslint-config.svg)](https://circleci.com/gh/typescript-eslint/tslint-to-eslint-config)\n[![Join the chat at https://gitter.im/tslint-to-eslint-config/community](https://img.shields.io/badge/chat-gitter-informational.svg)](https://gitter.im/tslint-to-eslint-config/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n[![Code Style: Prettier](https://img.shields.io/badge/speed-blazingly_fast-blueviolet.svg)](https://prettier.io)\n\nConverts your TSLint configuration to the closest reasonable ESLint equivalent.\n\n👉 Did you know [TSLint is deprecated](https://github.com/palantir/tslint/issues/4534)?\nHooray!\nUse `tslint-to-eslint-config` to expedite migrating your project onto ESLint.\n\nConsider taking a peek at the relevant documentation: 🤔\n\n-   [ESLint](https://eslint.org/docs) itself\n-   [typescript-eslint](https://typescript-eslint.io), which allows TypeScript files to be linted by ESLint\n\n## Usage\n\n> ⚠ Coming from Angular? Use **[angular-eslint](https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint)** instead to coordinate around this tool and others.\n\n```shell\nnpx tslint-to-eslint-config\n```\n\n_⚡ (wow, so simple!) ⚡_\n\nThe `tslint-to-eslint-config` command reads in any existing linter, TypeScript, and package configuration files, then creates an `.eslintrc.js` result based on them.\n\nFor any TSLint rules with corresponding ESLint equivalents, those equivalents will be used in the new configuration.\nTSLint rules without ESLint equivalents will be wrapped with [eslint-plugin-tslint](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin-tslint).\n\n> Requires Node 12+ (LTS) and TSLint 5.18+\n\n### FAQs\n\nWe **strongly** advise reading [docs/FAQs.md](./docs/FAQs.md) before planning your conversion from TSLint to ESLint.\n\n### CLI Flags\n\nEach of these flags is optional:\n\n-   **[`comments`](#comments)**: TypeScript configuration or file glob path(s) to convert TSLint rule flags to ESLint within.\n-   **[`config`](#config)**: Path to print the generated ESLint configuration file to.\n-   **[`editor`](#editor)**: Path to an editor configuration file to convert linter settings within.\n-   **[`eslint`](#eslint)**: Path to an ESLint configuration file to read settings from.\n-   **[`package`](#package)**: Path to a package.json file to read dependencies from.\n-   **[`prettier`](#prettier)**: Add `eslint-config-prettier` to the plugins list.\n-   **[`tslint`](#tslint)**: Path to a TSLint configuration file to read settings from.\n-   **[`typescript`](#typescript)**: Path to a TypeScript configuration file to read TypeScript compiler options from.\n\n#### `comments`\n\n```shell\nnpx tslint-to-eslint-config --comments\n```\n\n_Default: none_\n\nIndicates to convert from [TSLint rule flags](https://palantir.github.io/tslint/usage/rule-flags) to [ESLint inline comments](https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments).\nComments such as `// tslint:disable: tslint-rule-name` will be converted to equivalents like `// eslint-disable eslint-rule-name`.\n\nIf passed without arguments, respects the `excludes`, `files`, and `includes` in your TypeScript configuration.\n\nIf passed a single file path ending with `.json`, that is treated as a TypeScript configuration file describing with files to convert.\n\n```shell\nnpx tslint-to-eslint-config --comments tsconfig.json\n```\n\nIf passed any other arguments, those are treated as glob paths for file paths to convert:\n\n```shell\nnpx tslint-to-eslint-config --comments 'src/**/*.ts'\n```\n\n#### `config`\n\n```shell\nnpx tslint-to-eslint-config --config .eslintrc.json\n```\n\n_Default: `.eslintrc.js`_\n\nPath to print the generated ESLint configuration file to.\n\nThe file extension of this path will be used to determine the format of the created file:\n\n-   `.js` file paths will be written `module.exports = ...` JavaScript\n-   Other file paths will default to JSON\n\n#### `editor`\n\n```shell\nnpx tslint-to-eslint-config --editor ./path/to/.vscode/settings.json\n```\n\n_Default: `.vscode/settings.json`_\n\nPath to an editor configuration file to convert settings settings within.\nAny VS Code style editor settings for TSLint will be converted to their ESLint equivalents.\n\n#### `eslint`\n\n```shell\nnpx tslint-to-eslint-config --eslint ./path/to/eslintrc.js\n```\n\n_Default: `--config`'s value_\n\nPath to an ESLint configuration file to read settings from.\nThe generated ESLint configuration file will include any settings `import`ed from this file.\n\n#### `package`\n\n```shell\nnpx tslint-to-eslint-config --package ./path/to/package.json\n```\n\n_Default: `package.json`_\n\nPath to a `package.json` file to read dependencies from.\nThis will help inform the generated ESLint configuration file's [env](https://eslint.org/docs/user-guide/configuring#specifying-parser-options) settings.\n\n#### `prettier`\n\n```shell\nnpx tslint-to-eslint-config --prettier\n```\n\n_Default: `false`_\n\nAdd [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) to the list of ESLint plugins.\nWe [highly recommend](./docs/FAQs.md#should-i-use-prettier) you use [Prettier](http://prettier.io) for code formatting.\n\nWhen `--prettier` isn't enabled:\n\n-   If the output configuration already doesn't enable any formatting rules, it'll extend from `eslint-config-prettier`.\n-   Otherwise, a CLI message will suggest running with `--prettier`.\n\n#### `tslint`\n\n```shell\nnpx tslint-to-eslint-config --tslint ./path/to/tslint.json\n```\n\n_Default: `tslint.json`_\n\nPath to a TSLint configuration file to read settings from.\nThis file is piped into TSLint's `--print-config` to generate the list of rules to enable in the generated ESLint configuration file.\n\n#### `typescript`\n\n```shell\nnpx tslint-to-eslint-config --typescript ./path/to/tsconfig.json\n```\n\n_Default: `tsconfig.json`_\n\nPath to a TypeScript configuration file to read TypeScript compiler options from.\nThis will help inform the generated ESLint configuration file's [env](https://eslint.org/docs/user-guide/configuring#specifying-parser-options) settings.\n\n## Node API\n\nYou can use `tslint-to-eslint-config` programmatically via its exported functions.\nSee [docs/API](./docs/API.md) for details.\n\n```ts\nimport { convertLintConfig } from \"tslint-to-eslint-config\";\n\nconst result = await convertLintConfig();\n```\n\n## Development\n\nSee the [Code of Conduct](./.github/CODE_OF_CONDUCT.md) and [general development docs](./docs/Development.md). 💖\n","readmeFilename":"README.md"}