{"name":"eslint-plugin-typescript-sort-keys","version":"0.4.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/parser":"~1.11.0","eslint":"~5.16.0","eslint-config-airbnb-base":"~13.2.0","eslint-config-prettier":"~6.0.0","eslint-docs":"~0.4.0","eslint-plugin-import":"~2.18.0","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","typescript":"~3.5.3"},"peerDependencies":{"@typescript-eslint/parser":"^1.11.0","eslint":"^5.16.0","typescript":"^3.5.3"},"engines":{"node":">=8.0.0"},"license":"ISC","husky":{"hooks":{"pre-commit":"npm test && lint-staged"}},"gitHead":"0cf047c4a50c64cdab45d793aff3a2a160bde012","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.4.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-kmIbs5CYYUtYUpZbFyaBWlI+10WDZxfeVlVTgtKkGoPChHBz/Sm+/deeJpO93peI+79dkseFKsZKsJEfbfh+2g==","shasum":"71b5c570fbed41a685ec8905219f4cfdbe2c6dff","tarball":"http://registry-npm.ywwl.com/eslint-plugin-typescript-sort-keys/download/eslint-plugin-typescript-sort-keys-0.4.0.tgz","fileCount":7,"unpackedSize":12284,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJZiRCRA9TVsSAnZWagAAoWwP/1C3rvkCgCqfzrUgFQUz\npdvdV1hO1FrtY8rq1vUSKi+7U0CvOqwCdEBB7Mdp/l1M/u7W1ZXxVYrRBe4+\n3O+bc2nvByueoUmI/+HGQj2Lqn9sOCZdZ2k3bj5d7D2OTKEUxsOrAJYwc51k\nOm/CHqk/IN34KCyWbBDKBJdWnhe9Dm8GSp/emvzkYp3q+wjx4Pfav13K1SfS\nVCyj2uFgY8Lvci0IIEBYJzyMGbTJLbZO9JmhguINNaW784fmGLoOY6BoEu+v\nAmpa6TFq4H96rJr6mlUAelFqhVueRVLmduKiAsAG/YCNkhODR3vEtd6i2Teb\nScqJEeHbjnzaPzkumKSetQd+vE1KXA+LAYG59l5KoN0XBIwW/1QWPO0lt9Kp\nHgqduaqgGTsPUQpYE0EgPzErO2AI28LRQpp2jB8UMxlthCJUX937ZnL2b4GM\no52vHJ5bfB9WPzJghnRoazqw5Te9Sb75Dnn4SapxzB1yIUgGT97+DtCr4j27\nmjm1asjdNKgcqmV8qF2V4/94LKLiVnpBxv8IM9sPyijVO8FjFww3tcg0BtoT\ntqXNsw2M6He9Gkm586WZ257NgSPISLsa/pBRboZrvEfVaJFYxl7NDsuIJ7pw\nMk9qlY+NUTNj0Hq1tfK+F8eKcV8zDXz0vAkglMcxUF2/maPiccVQTQGJVt32\nQAeR\r\n=1KPL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFvot6i5cvAqY6j9/a1h9hSWTIs5QZVKnPn/t1JmRDE2AiEAxX4OMPdFh1JRKpAlOMv38j0CY/ECqHRl9nnbhL1QOt0="}],"size":3482,"noattachment":false,"key":"/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-0.4.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.4.0_1562744976601_0.9883653195837843"},"_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":1562744976724,"_cnpm_publish_time":1562744976724,"dist-tags":{"latest":"3.3.0","next":"1.1.0-rc1"}}