{"name":"eslint-plugin-typescript-sort-keys","version":"0.1.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","precommit":"npm test && lint-staged"},"dependencies":{"natural-compare-lite":"~1.4.0","requireindex":"~1.2.0"},"devDependencies":{"@typescript-eslint/parser":"~1.0.0","eslint":"~5.12.1","eslint-config-airbnb-base":"~13.1.0","eslint-config-prettier":"~3.5.0","eslint-docs":"~0.3.0","eslint-plugin-import":"~2.14.0","eslint-plugin-node":"~8.0.1","eslint-plugin-prettier":"~3.0.1","husky":"~1.3.1","lint-staged":"~8.1.0","mocha":"~5.2.0","prettier":"~1.15.3","typescript":"~3.2.4"},"peerDependencies":{"@typescript-eslint/parser":"~1.0.0","eslint":"~5.12.1","typescript":"~3.2.4"},"engines":{"node":">=8.0.0"},"lint-staged":{"*.js":["prettier --write","git add"]},"license":"ISC","gitHead":"3ffa64aeb95f0b7518c163eceea0fd7c208a2476","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.1.0","_nodeVersion":"10.6.0","_npmVersion":"6.6.0","dist":{"integrity":"sha512-20IPtuVodQv979cjmi6UOXAgs2fT0kYqDJ3+Od6U+77+cLks8ne5WO5rOuYtBdKPh9tthbeo9T6vC89Dw0kt2A==","shasum":"beab81614fe251efcb1232aed72e2ad1f64223a8","tarball":"http://registry-npm.ywwl.com/eslint-plugin-typescript-sort-keys/download/eslint-plugin-typescript-sort-keys-0.1.0.tgz","fileCount":6,"unpackedSize":9299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRjhGCRA9TVsSAnZWagAA2o4P/3cbp1i+x+PhWmnBeYQ7\nZdfEMrKh6nzSLlSADE+NGcO1o74RfAHIqfqUQhIYaKCdr2Zj5vR7APgPxDSa\nY59J4fH99PAKT4R4QEUaMPZ2OrgbgDBJGWXz6Cffj4/K0h0zPnXuQNTtMyHA\nxCFKqsykTYKVM59y48/85NL+1MxBT5QpxKBU+bc3i4kSL/t4fdeNoTgtHp/d\nL7M0iIsW4nTo/rrpQf2y7xOTF/AcLWVYSuLxQsdB9x3A9nnW9IXP73vv9hgW\nXo7DM5BT9qkZcvSZR9LfQ9VZ64ABqQJH5nMpc3F5nOyI6R8iOqLIl95QHNQ4\nfP9BXq3xpmeOC99mn8Oal+HUeuDxFPl86NgKF3oXVgK2EcYM4tJZ4XcuuRvW\n6F4FT85Hp9Abb6qerr4VfL/uwSwNEEvvl1lEbtLICgPUZ/1zzKY1q48YiPHp\n03zOhYq7h5HKoRpLkNR1QSm85r/4aryAq1h6f4pqZvmDhIQDwLRwTwg5xAy7\nGQpdCMEHZSz1pbT+XY/umjkk4Lx9YCqdXaR4wpmLI4cPAFOE1Smtz5oAk2g4\nVa560H0jQTZgPhz/aevvPmT9Yc+5YzBWbFaB1c1x21UAqLacieH+mdPRA8ZO\nL8lf+zdJeGDyqEANN+tu4tbZ9VStZ+ertB3Sluzd4jFETKCvDFJNBl9lZHih\nfAx+\r\n=Bh67\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtzRlAodHwnxBL6hSl9+8fcaOGoPOvpModpDRjT7V8gwIgHMxKtgFUeLuKH67qwZMq96llUs1W2i4515RMZvjlAo4="}],"size":3205,"noattachment":false,"key":"/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-0.1.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.1.0_1548105797790_0.8888329960759067"},"_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":1548105797891,"_cnpm_publish_time":1548105797891,"dist-tags":{"latest":"3.3.0","next":"1.1.0-rc1"}}