{"name":"eslint-plugin-typescript-sort-keys","version":"2.2.0","description":"Sort interface and string enum keys","keywords":["eslint","eslintplugin","eslint-plugin","typescript"],"author":{"name":"infctr","email":"infctr@gmail.com"},"main":"./lib/index.cjs.js","repository":{"type":"git","url":"git+ssh://git@github.com/infctr/eslint-plugin-typescript-sort-keys.git"},"url":"https://github.com/infctr/eslint-plugin-typescript-sort-keys","exports":{".":{"import":"./lib/index.esm.js","require":"./lib/index.cjs.js","default":"./lib/index.cjs.js"},"./package.json":"./package.json"},"scripts":{"prepublishOnly":"yarn compile","build":"yarn rimraf lib && yarn compile","compile":"yarn rollup -c","docs":"eslint-docs","docs:check":"eslint-docs check","lint":"eslint --ext .js,.ts src/ tests/","format":"prettier --write src/**/*.{js,ts} tests/**/*.{js,ts}","test":"yarn jest --watch","coverage":"yarn test --coverage --watchAll=false","coverage-preview":"http-server -o -p 5000 coverage/lcov-report","typecheck":"tsc --noEmit --skipLibCheck","verify":"yarn typecheck && yarn lint && yarn build && yarn coverage"},"dependencies":{"@typescript-eslint/experimental-utils":"^5.0.0","json-schema":"^0.4.0","natural-compare-lite":"^1.4.0"},"devDependencies":{"@babel/cli":"~7.14.8","@babel/core":"~7.15.0","@babel/preset-env":"~7.15.0","@babel/preset-typescript":"~7.15.0","@infctr/eslint-docs":"~0.4.0","@rollup/plugin-commonjs":"~12.0.0","@rollup/plugin-json":"~4.0.3","@rollup/plugin-node-resolve":"~8.0.0","@rollup/plugin-typescript":"~4.1.2","@types/babel__core":"~7.1.7","@types/babel__preset-env":"~7.9.0","@types/eslint":"~7.28.1","@types/jest":"~27.0.2","@types/natural-compare-lite":"~1.4.0","@types/rimraf":"~3.0.1","@types/tmp":"~0.2.1","@typescript-eslint/eslint-plugin":"~5.0.0","@typescript-eslint/parser":"~5.0.0","babel-jest":"~26.6.3","babel-plugin-module-resolver":"~4.1.0","eslint":"~8.0.1","eslint-config-prettier":"~8.3.0","eslint-plugin-eslint-plugin":"~3.6.1","eslint-plugin-import":"~2.25.2","eslint-plugin-jest":"~25.0.6","eslint-plugin-prettier":"~4.0.0","http-server":"~13.0.0","husky":"~4.2.5","jest":"~27.2.5","lint-staged":"~10.5.4","prettier":"~2.3.2","rimraf":"~3.0.2","rollup":"~2.10.5","tmp":"~0.2.1","tsconfig":"~7.0.0","typescript":"~4.3.5"},"peerDependencies":{"@typescript-eslint/parser":"^1 || ^2 || ^3 || ^4 || ^5","eslint":"^5 || ^6 || ^7 || ^8","typescript":"^3 || ^4 || ^5"},"engines":{"node":"12 || >= 13.9"},"license":"ISC","gitHead":"d25fdf5ff083a7e8df713c63cc6af35fa9ba2729","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@2.2.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-EOeltQP3qdcs2WN64K2ogbm4qDkiFthW4KkQxf4g4cpQT2CCq/ba86M0R4ina95Nug65j0ftUuy3MFOAvyopVw==","shasum":"e04b1f729d7c4e5f45899a916fcfb035d000ffa5","tarball":"http://registry-npm.ywwl.com/eslint-plugin-typescript-sort-keys/download/eslint-plugin-typescript-sort-keys-2.2.0.tgz","fileCount":6,"unpackedSize":42600,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHh05IKJvh/ynaraQaQOMy8Vv/tazt/g1osQszyMJxivAiA7ouLISDLUa6tvhkGyWJUO08LJocvirbGTDQkDxcPKxw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFDMcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9og/+MiKWfnSplbcXsVApj51wWwcglJQLQj5e8zCDxRKxKpGPRVaI\r\n5ttlGtwYPyDz2d1A3pXSVI4oJfcUrQPdsbqWDcvZZLsrkxC9qSuWt9sg2sF3\r\nErVsWlCmWPbcd1OPTc7svUvHAS9QT0J+Nv+/Mi+a+n0wNn1iEbCMEYiZs5LR\r\n8o7X3q0rR4ZhwET2vB3em2LKyJy1RKATAl7/DK3C5BsXAJlLgSYcxCK/gwEQ\r\nZSCmSjNLivXlP1tzWpYWpEGYJYnObPglR/id3N1AwO8zCWrHDEr2XA5yktk2\r\nXUKTWZN8wKt6G397rvoZgTdedeCi7w7YKMdDhPUd263UOU8OlFD6x1x0fR67\r\n/GNq4ShHu09GvhkU1j9Y+APFxNGTAoO5VcZX0MUT9+Msuags1TgeWGjMOhnU\r\n27lYFriTdyxq3iNACzilQZz/3QnIjDJ3oXSs1XKrJz+GxDcpSlMbVGCOx7/o\r\nvm3bJEbeuj6CMACtpAnKT8RrdRm2ZSOB56UKVZ+IcxusNwPh1AojtEbHr4aC\r\n+kIkFkKETmirPxAdgCyoAPdtRSkzr/qobl7mSjtjNWcJ31o6DiJbPu1AsiBJ\r\nJequtEKzUf30nUXn0kVNg5eKERo75rHMdLAsPSnCj1gSe/SCwnc2oGysXiDF\r\nneorsgNnScFnZY4wXLIYm8i0hsfK+kS+o9Q=\r\n=zaa0\r\n-----END PGP SIGNATURE-----\r\n","size":7794,"noattachment":false,"key":"/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-2.2.0.tgz"},"_npmUser":{"name":"infctr","email":"infctr@gmail.com"},"directories":{},"maintainers":[{"name":"infctr","email":"infctr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eslint-plugin-typescript-sort-keys_2.2.0_1679045404268_0.23753345421252714"},"_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":1679045404416,"_cnpm_publish_time":1679045404416,"dist-tags":{"latest":"3.3.0","next":"1.1.0-rc1"}}