{"name":"eslint-plugin-typescript-sort-keys","version":"0.5.0","description":"Sort interface and string enum keys","keywords":["eslint","eslintplugin","eslint-plugin"],"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","mocha":"mocha tests --recursive --reporter=dot","pretest":"yarn lint","test":"mocha tests --recursive --reporter=dot","posttest":"yarn docs:check"},"dependencies":{"natural-compare-lite":"~1.4.0","requireindex":"~1.2.0"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^2.6.0","@typescript-eslint/parser":"~2.6.0","cross-spawn":"^7.0.1","eslint":"~6.6.0","eslint-config-airbnb-base":"~14.0.0","eslint-config-prettier":"~6.0.0","eslint-docs":"~0.4.0","eslint-plugin-import":"~2.18.2","eslint-plugin-node":"~9.1.0","eslint-plugin-prettier":"~3.1.0","husky":"~3.0.0","lint-staged":"~8.1.1","mocha":"~5.2.0","prettier":"~1.18.2","tmp":"^0.1.0","typescript":"~3.6.4"},"peerDependencies":{"@typescript-eslint/parser":"^1 || ^2","eslint":"^5 || ^6","typescript":"^3"},"engines":{"node":">=8.3.0"},"license":"ISC","husky":{"hooks":{"pre-commit":"npm test && lint-staged"}},"gitHead":"6f1d6d13483d5d720b93ca0a81aac5a94945d2af","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.5.0","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"integrity":"sha512-TZ5i5UqtUfASpi86RkpYisv+MZUuac2X4FgUJ/e6wHpkvCCGk8tw77cBP0vzuNEtkaec6HfJ6kuflnOgmtMRyA==","shasum":"dea8d5d4d3305010e23c7132d909e0cd474b96a4","tarball":"http://registry-npm.ywwl.com/eslint-plugin-typescript-sort-keys/download/eslint-plugin-typescript-sort-keys-0.5.0.tgz","fileCount":8,"unpackedSize":16927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7nhzCRA9TVsSAnZWagAAKi0P/0Lzr0YJ2c9h52gQs8K0\nnZoboWQGOhjXQWOToatciGXw3l/cCVUFipVcloiSgYvM4uNh+JgOvqYE28Lz\nteIyV2DGkr5XFpelELygnTJZeagGrFInNKqHJnxLkbEri6lE2kp0SiBWpYx8\nb30QEhYSuK+S+hC4QnNtT61AubOvzrTiq4vOfdF5eJraabGJ/1HHpcHW2Wya\nH+jS4JDmNDPRpJSMYrAQHszHqSqSIG5h6AtPREKUT3x0tudhypoDRD1pBqfz\n+d14X+yTuUOIbtWZskF4jOdafP2kr4sk0+eXL3NPw18fA2Z2etrOuN3l5Bic\nNoBTHmDQiHW2HgkUUHeMWfdlSbhyVUEu+fyWsmk37T0EzS5D4vlYdHzlhRvw\nyJAFF/2nO/A8nGZWLZ0p0L3ESHm/EcjdmzAzmVrYb1qGI2jKmcrhJyyVCXV0\nQ4Boe0yBsuUHoBkLDUgyaTfn6rxwGNVr8RktL8hpWZ4YLMBELs7Bz/ra4ENe\nrmpKdje0lmLBnb4fnA65vtGQA/J1AjfJ1EOOkA+og+h2WgqHj+U6QQ+/gVMT\nhnvDsDicYxX6oBf7vO+RsdmnBWftb6YlvrsdpxismpW37hx0af1HzBeIwLuE\nX3d4OZe/FZOnXIBDQUxpYbKH3KfhYIzUpwlnWBwQhTZVonr7EcoGp2GSOgYi\nA8VL\r\n=ouJ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7LBtWgzbud+EacwTS+bGUacY71dqTR/D3uWoYPdo/oQIhAOGzDi38t2LwR6LPCuOQELJT5Cws5VV++RV/Tz/iMOQo"}],"size":5109,"noattachment":false,"key":"/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-0.5.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.5.0_1575909491310_0.3060223373641868"},"_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":1575909491483,"_cnpm_publish_time":1575909491483,"dist-tags":{"latest":"3.3.0","next":"1.1.0-rc1"}}