Skip to content

Commit b1ae78a

Browse files
chore: add eslint-plugin-typescript-sort-keys (#50)
* chore: add eslint-plugin-typescript-sort-keys * Intentional failure * Fix intentional failure
1 parent ea624ae commit b1ae78a

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

.eslintrc.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
"plugin:@typescript-eslint/recommended",
55
"plugin:@typescript-eslint/recommended-requiring-type-checking",
66
"plugin:@typescript-eslint/strict",
7+
"plugin:typescript-sort-keys/recommended",
78
"prettier",
89
],
910
overrides: [
@@ -20,7 +21,7 @@ module.exports = {
2021
tsconfigRootDir: __dirname,
2122
project: ["./tsconfig.json"],
2223
},
23-
plugins: ["@typescript-eslint", "simple-import-sort"],
24+
plugins: ["@typescript-eslint", "simple-import-sort", "typescript-sort-keys"],
2425
root: true,
2526
rules: {
2627
"simple-import-sort/exports": "error",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"eslint": "^8.24.0",
1515
"eslint-config-prettier": "^8.5.0",
1616
"eslint-plugin-simple-import-sort": "^8.0.0",
17+
"eslint-plugin-typescript-sort-keys": "^2.1.0",
1718
"husky": ">=6",
1819
"lint-staged": ">=10",
1920
"markdownlint-cli": "^0.32.2",

yarn.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,13 @@
823823
semver "^7.3.7"
824824
tsutils "^3.21.0"
825825

826+
"@typescript-eslint/experimental-utils@^5.0.0":
827+
version "5.39.0"
828+
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.39.0.tgz#9263bb72b57449cc2f07ffb7fd4e12d0160b7f5e"
829+
integrity sha512-n5N9kG/oGu2xXhHzsWzn94s6CWoiUj59FPU2dF2IQZxPftw+q6Jm5sV2vj5qTgAElRooHhrgtl2gxBQDCPt6WA==
830+
dependencies:
831+
"@typescript-eslint/utils" "5.39.0"
832+
826833
"@typescript-eslint/parser@^5.38.1":
827834
version "5.38.1"
828835
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.38.1.tgz#c577f429f2c32071b92dff4af4f5fbbbd2414bd0"
@@ -841,6 +848,14 @@
841848
"@typescript-eslint/types" "5.38.1"
842849
"@typescript-eslint/visitor-keys" "5.38.1"
843850

851+
"@typescript-eslint/[email protected]":
852+
version "5.39.0"
853+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz#873e1465afa3d6c78d8ed2da68aed266a08008d0"
854+
integrity sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==
855+
dependencies:
856+
"@typescript-eslint/types" "5.39.0"
857+
"@typescript-eslint/visitor-keys" "5.39.0"
858+
844859
"@typescript-eslint/[email protected]":
845860
version "5.38.1"
846861
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.38.1.tgz#7f038fcfcc4ade4ea76c7c69b2aa25e6b261f4c1"
@@ -856,6 +871,11 @@
856871
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.38.1.tgz#74f9d6dcb8dc7c58c51e9fbc6653ded39e2e225c"
857872
integrity sha512-QTW1iHq1Tffp9lNfbfPm4WJabbvpyaehQ0SrvVK2yfV79SytD9XDVxqiPvdrv2LK7DGSFo91TB2FgWanbJAZXg==
858873

874+
"@typescript-eslint/[email protected]":
875+
version "5.39.0"
876+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d"
877+
integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==
878+
859879
"@typescript-eslint/[email protected]":
860880
version "5.38.1"
861881
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.1.tgz#657d858d5d6087f96b638ee383ee1cff52605a1e"
@@ -869,6 +889,19 @@
869889
semver "^7.3.7"
870890
tsutils "^3.21.0"
871891

892+
"@typescript-eslint/[email protected]":
893+
version "5.39.0"
894+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz#c0316aa04a1a1f4f7f9498e3c13ef1d3dc4cf88b"
895+
integrity sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==
896+
dependencies:
897+
"@typescript-eslint/types" "5.39.0"
898+
"@typescript-eslint/visitor-keys" "5.39.0"
899+
debug "^4.3.4"
900+
globby "^11.1.0"
901+
is-glob "^4.0.3"
902+
semver "^7.3.7"
903+
tsutils "^3.21.0"
904+
872905
"@typescript-eslint/[email protected]":
873906
version "5.38.1"
874907
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.38.1.tgz#e3ac37d7b33d1362bb5adf4acdbe00372fb813ef"
@@ -881,6 +914,18 @@
881914
eslint-scope "^5.1.1"
882915
eslint-utils "^3.0.0"
883916

917+
"@typescript-eslint/[email protected]":
918+
version "5.39.0"
919+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.39.0.tgz#b7063cca1dcf08d1d21b0d91db491161ad0be110"
920+
integrity sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==
921+
dependencies:
922+
"@types/json-schema" "^7.0.9"
923+
"@typescript-eslint/scope-manager" "5.39.0"
924+
"@typescript-eslint/types" "5.39.0"
925+
"@typescript-eslint/typescript-estree" "5.39.0"
926+
eslint-scope "^5.1.1"
927+
eslint-utils "^3.0.0"
928+
884929
"@typescript-eslint/[email protected]":
885930
version "5.38.1"
886931
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.1.tgz#508071bfc6b96d194c0afe6a65ad47029059edbc"
@@ -889,6 +934,14 @@
889934
"@typescript-eslint/types" "5.38.1"
890935
eslint-visitor-keys "^3.3.0"
891936

937+
"@typescript-eslint/[email protected]":
938+
version "5.39.0"
939+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz#8f41f7d241b47257b081ddba5d3ce80deaae61e2"
940+
integrity sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==
941+
dependencies:
942+
"@typescript-eslint/types" "5.39.0"
943+
eslint-visitor-keys "^3.3.0"
944+
892945
JSONStream@^1.0.4:
893946
version "1.3.5"
894947
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
@@ -1911,6 +1964,15 @@ eslint-plugin-simple-import-sort@^8.0.0:
19111964
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-8.0.0.tgz#9d9a2372b0606e999ea841b10458a370a6ccc160"
19121965
integrity sha512-bXgJQ+lqhtQBCuWY/FUWdB27j4+lqcvXv5rUARkzbeWLwea+S5eBZEQrhnO+WgX3ZoJHVj0cn943iyXwByHHQw==
19131966

1967+
eslint-plugin-typescript-sort-keys@^2.1.0:
1968+
version "2.1.0"
1969+
resolved "https://registry.yarnpkg.com/eslint-plugin-typescript-sort-keys/-/eslint-plugin-typescript-sort-keys-2.1.0.tgz#f51764518aa512d83df9ba68ab2520b7b85ece2d"
1970+
integrity sha512-ET7ABypdz19m47QnKynzNfWPi4CTNQ5jQQC1X5d0gojIwblkbGiCa5IilsqzBTmqxZ0yXDqKBO/GBkBFQCOFsg==
1971+
dependencies:
1972+
"@typescript-eslint/experimental-utils" "^5.0.0"
1973+
json-schema "^0.4.0"
1974+
natural-compare-lite "^1.4.0"
1975+
19141976
eslint-scope@^5.1.1:
19151977
version "5.1.1"
19161978
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
@@ -2728,6 +2790,11 @@ json-schema-traverse@^0.4.1:
27282790
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
27292791
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
27302792

2793+
json-schema@^0.4.0:
2794+
version "0.4.0"
2795+
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5"
2796+
integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==
2797+
27312798
json-stable-stringify-without-jsonify@^1.0.1:
27322799
version "1.0.1"
27332800
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
@@ -3343,6 +3410,11 @@ nanoid@^3.3.4:
33433410
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab"
33443411
integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==
33453412

3413+
natural-compare-lite@^1.4.0:
3414+
version "1.4.0"
3415+
resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4"
3416+
integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==
3417+
33463418
natural-compare@^1.4.0:
33473419
version "1.4.0"
33483420
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"

0 commit comments

Comments
 (0)