{"name":"eslint-plugin-typescript-sort-keys","version":"0.7.0","description":"Sort interface and string enum keys","keywords":["eslint","eslintplugin","eslint-plugin","typescript"],"author":{"name":"infctr","email":"infctr@gmail.com"},"main":"lib/index.js","repository":{"type":"git","url":"git+ssh://git@github.com/infctr/eslint-plugin-typescript-sort-keys.git"},"scripts":{"lint":"eslint lib/ tests/","lint:fix":"eslint lib/ tests/ --fix","docs":"eslint-docs","docs:check":"eslint-docs check","format":"prettier --write lib/**/*.js tests/**/*.js","pretest":"yarn lint","test":"jest --silent --runInBand","posttest":"yarn docs:check"},"dependencies":{"natural-compare-lite":"~1.4.0","requireindex":"~1.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"~2.26.0","cross-spawn":"^7.0.1","eslint":"~6.8.0","eslint-config-airbnb-base":"~14.1.0","eslint-config-prettier":"~6.10.1","eslint-docs":"~0.4.0","eslint-plugin-import":"~2.20.2","eslint-plugin-node":"~11.1.0","eslint-plugin-prettier":"~3.1.2","husky":"~4.2.3","jest":"~25.2.4","lint-staged":"~10.1.1","prettier":"~2.0.2","tmp":"^0.1.0","typescript":"~3.8.3"},"peerDependencies":{"@typescript-eslint/parser":"^1 || ^2","eslint":"^5 || ^6","typescript":"^3"},"engines":{"node":">=8.3.0"},"jest":{"testRegex":"tests/.*\\.spec\\.(js|ts)$"},"license":"ISC","husky":{"hooks":{"pre-commit":"yarn test && lint-staged"}},"gitHead":"467ba270a54f2e13378c89987deee08e69c13cf1","bugs":{"url":"https://github.com/infctr/eslint-plugin-typescript-sort-keys/issues"},"homepage":"https://github.com/infctr/eslint-plugin-typescript-sort-keys#readme","_id":"eslint-plugin-typescript-sort-keys@0.7.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-W0rQOVlU4LVKAvaTzhCjGSMK96Xk8q2GqSoSkC1vosfxDLhF7jImU+93crwojKEpO7mRRCPkDx6xQnJsMM3mPA==","shasum":"465600fba2364aab951c9c82f3e0cb33f45b29b7","tarball":"http://registry-npm.ywwl.com/eslint-plugin-typescript-sort-keys/download/eslint-plugin-typescript-sort-keys-0.7.0.tgz","fileCount":10,"unpackedSize":18004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehcpsCRA9TVsSAnZWagAAxcAP/iT+SL7yIhSm5r/PuC1M\nFwPOT0ahG3XTQQDIh+3rzhzQOAJR4O2oXsYSjK3axbj3jwS82+q4pgMQ1OCQ\ntWOpi3Z/M20Vz9r/dU4PbJI1fquR+ub+jLCeg84FZduSyu0MzQEKeVpDHebE\nMsJR2iEAvg+paXtVYOk6cp/78ZY4RtBg1Yi1QefcWuNuMI1sq/wf9vW4AcsO\nwf0wZlI5CheHPOXNZm3KdAFmZ9uY/TFRUuxh7URiqkdZHSfXg9yR8ArBRC16\n6szAYkE8LsJjG7JV8S5jEhLTXzhgG2EHWFUnftlxmr/UPAzor0oAq7QxG8rU\nwPE+AnmdqolLVc1+8ZXqucS3CwmnwPXfPnvwItiHMpXz8d/a3JHWvakfTH38\neaHLUC0wXYZgufDcb5P5WRyQVUCOwr6lJwC8tUCNsQ3nAvvKn2/8rwvpXlKj\n3NU5pfqAQKn8JknFzT7ABogU40xJk3v/kw5XUPFD2eK6U9bYboCd3Ac23GrX\nt3bJVgHW6qQI0qyk/CyIre5G7ID9ousdFKFIVAWzj03gfRW9zhyO/8F124+Z\nhjkQnoUFTL3JwWnngDgv9/eE3y6slmEYJmhwD//axyL6HSpXAMF3jLv4jKDR\n7rlQIPBvfT7eLu0EHWyOSYkJTBSaMRbqpY3X6JQFlmD2rM+Ili9ZIkqy5GuX\n6q44\r\n=ug66\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBDaYY8bS2/U8jB/DxEX+VggQ4X7QNkbCmmKBjt7kapQIgXBSiuWc9CyI2S1HfG9sJPFSA2zOLaY3vaV0x06rRc1o="}],"size":5787,"noattachment":false,"key":"/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-0.7.0.tgz"},"maintainers":[{"name":"infctr","email":"infctr@gmail.com"}],"_npmUser":{"name":"infctr","email":"infctr@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-typescript-sort-keys_0.7.0_1585826412243_0.9886777609528508"},"_hasShrinkwrap":false,"readme":"![Tests](https://github.com/infctr/eslint-plugin-typescript-sort-keys/workflows/Tests/badge.svg?branch=master)\n\n# eslint-plugin-typescript-sort-keys\n\nSort interface and string enum keys\n\nInspired by and sourced from [eslint/sort-keys]([https://github.com/eslint/eslint/blob/master/docs/rules/sort-keys.md](https://github.com/eslint/eslint/blob/main/docs/src/rules/sort-keys.md))\n\n## Installation\n\nYou'll first need to install\n\n- [eslint](http://eslint.org)\n- [typescript](http://www.typescriptlang.org/)\n- [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser)\n\n```sh\nyarn add -D eslint typescript @typescript-eslint/parser\n```\n\nNext, install `eslint-plugin-typescript-sort-keys`:\n\n```sh\nyarn add -D eslint-plugin-typescript-sort-keys\n```\n\n**Note:** If you installed ESLint globally then you must also install `eslint-plugin-typescript-sort-keys` globally.\n\n## Usage\n\nSpecify the parser for typescript files in your `.eslintrc` configuration file:\n\n```json\n{\n  \"parser\": \"@typescript-eslint/parser\"\n}\n```\n\nAdd `typescript-sort-keys` to the plugins section. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"typescript-sort-keys\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"typescript-sort-keys/interface\": \"error\",\n    \"typescript-sort-keys/string-enum\": \"error\"\n  }\n}\n```\n\nOr enable all rules with defaults\n\n```json\n{\n  \"extends\": [\"plugin:typescript-sort-keys/recommended\"]\n}\n```\n\n## Supported Rules\n\n<!-- begin rule list -->\n\n**Key**: :heavy_check_mark: = recommended, :wrench: = fixable\n\n<!-- prettier-ignore -->\n| Name | Description | :heavy_check_mark: | :wrench: |\n| ---- | ----------- | ------------------ | -------- |\n| [`typescript-sort-keys/interface`](./docs/rules/interface.md) | require interface keys to be sorted | :heavy_check_mark: | :wrench: |\n| [`typescript-sort-keys/string-enum`](./docs/rules/string-enum.md) | require string enum members to be sorted | :heavy_check_mark: | :wrench: |\n\n<!-- end rule list -->\n","publish_time":1585826412400,"_cnpm_publish_time":1585826412400,"dist-tags":{"latest":"3.3.0","next":"1.1.0-rc1"}}