Skip to content

Commit 6fd33ac

Browse files
committed
feat: add typescript-sort-keys
BREAKING CHANGE: new rules
1 parent 4c99c8e commit 6fd33ac

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

configurations/typescript.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
],
1717
"parser": "@typescript-eslint/parser",
1818
"plugins": [
19-
"@typescript-eslint"
19+
"@typescript-eslint",
20+
"typescript-sort-keys"
2021
],
2122
"rules": {
22-
"@typescript-eslint/explicit-member-accessibility": 0,
2323
"@typescript-eslint/adjacent-overload-signatures": 2,
2424
"@typescript-eslint/array-type": [
2525
2,
@@ -58,6 +58,7 @@
5858
}
5959
],
6060
"@typescript-eslint/explicit-function-return-type": 0,
61+
"@typescript-eslint/explicit-member-accessibility": 0,
6162
"@typescript-eslint/explicit-module-boundary-types": 0,
6263
"@typescript-eslint/member-delimiter-style": [
6364
2,
@@ -250,7 +251,9 @@
250251
"no-duplicate-imports": 0,
251252
"no-use-before-define": 0,
252253
"node/global-require": 0,
253-
"node/no-missing-import": 0
254+
"node/no-missing-import": 0,
255+
"typescript-sort-keys/interface": 2,
256+
"typescript-sort-keys/string-enum": 2
254257
},
255258
"settings": {
256259
"node": {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"eslint-plugin-react": "^7.23.2",
4141
"eslint-plugin-react-hooks": "^4.2.0",
4242
"eslint-plugin-sort-keys-fix": "^1.1.1",
43+
"eslint-plugin-typescript-sort-keys": "^1.8.0",
4344
"eslint-plugin-unicorn": "^30.0.0"
4445
},
4546
"description": "Canonical ESLint Shareable Config",

0 commit comments

Comments
 (0)