@tb-dev/eslint-config 3.8.10 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -873,6 +873,15 @@ async function perfectionist(options) {
873
873
  perfectionist: plugin
874
874
  },
875
875
  rules: {
876
+ "perfectionist/sort-array-includes": [
877
+ "error",
878
+ {
879
+ type: "natural",
880
+ order: "asc",
881
+ ignoreCase: true,
882
+ groupKind: "literals-first"
883
+ }
884
+ ],
876
885
  "perfectionist/sort-enums": [
877
886
  "error",
878
887
  {
@@ -884,7 +893,8 @@ async function perfectionist(options) {
884
893
  "error",
885
894
  {
886
895
  type: "line-length",
887
- order: "asc"
896
+ order: "asc",
897
+ ignoreCase: true
888
898
  }
889
899
  ],
890
900
  "perfectionist/sort-imports": [
@@ -892,8 +902,8 @@ async function perfectionist(options) {
892
902
  {
893
903
  type: "line-length",
894
904
  order: "asc",
895
- "ignore-case": true,
896
- "newlines-between": "never",
905
+ ignoreCase: true,
906
+ newlinesBetween: "never",
897
907
  groups: [["side-effect-style", "side-effect"], "unknown"]
898
908
  }
899
909
  ],
@@ -902,7 +912,7 @@ async function perfectionist(options) {
902
912
  {
903
913
  type: "natural",
904
914
  order: "asc",
905
- "partition-by-new-line": true
915
+ partitionByNewLine: true
906
916
  }
907
917
  ],
908
918
  "perfectionist/sort-intersection-types": [
@@ -940,7 +950,15 @@ async function perfectionist(options) {
940
950
  {
941
951
  type: "natural",
942
952
  order: "asc",
943
- "partition-by-new-line": true
953
+ partitionByNewLine: true
954
+ }
955
+ ],
956
+ "perfectionist/sort-switch-case": [
957
+ "error",
958
+ {
959
+ type: "natural",
960
+ order: "asc",
961
+ ignoreCase: true
944
962
  }
945
963
  ],
946
964
  ...overrides == null ? void 0 : overrides.perfectionist
package/dist/index.js CHANGED
@@ -850,6 +850,15 @@ async function perfectionist(options) {
850
850
  perfectionist: plugin
851
851
  },
852
852
  rules: {
853
+ "perfectionist/sort-array-includes": [
854
+ "error",
855
+ {
856
+ type: "natural",
857
+ order: "asc",
858
+ ignoreCase: true,
859
+ groupKind: "literals-first"
860
+ }
861
+ ],
853
862
  "perfectionist/sort-enums": [
854
863
  "error",
855
864
  {
@@ -861,7 +870,8 @@ async function perfectionist(options) {
861
870
  "error",
862
871
  {
863
872
  type: "line-length",
864
- order: "asc"
873
+ order: "asc",
874
+ ignoreCase: true
865
875
  }
866
876
  ],
867
877
  "perfectionist/sort-imports": [
@@ -869,8 +879,8 @@ async function perfectionist(options) {
869
879
  {
870
880
  type: "line-length",
871
881
  order: "asc",
872
- "ignore-case": true,
873
- "newlines-between": "never",
882
+ ignoreCase: true,
883
+ newlinesBetween: "never",
874
884
  groups: [["side-effect-style", "side-effect"], "unknown"]
875
885
  }
876
886
  ],
@@ -879,7 +889,7 @@ async function perfectionist(options) {
879
889
  {
880
890
  type: "natural",
881
891
  order: "asc",
882
- "partition-by-new-line": true
892
+ partitionByNewLine: true
883
893
  }
884
894
  ],
885
895
  "perfectionist/sort-intersection-types": [
@@ -917,7 +927,15 @@ async function perfectionist(options) {
917
927
  {
918
928
  type: "natural",
919
929
  order: "asc",
920
- "partition-by-new-line": true
930
+ partitionByNewLine: true
931
+ }
932
+ ],
933
+ "perfectionist/sort-switch-case": [
934
+ "error",
935
+ {
936
+ type: "natural",
937
+ order: "asc",
938
+ ignoreCase: true
921
939
  }
922
940
  ],
923
941
  ...overrides == null ? void 0 : overrides.perfectionist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "3.8.10",
3
+ "version": "4.0.0",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "@typescript-eslint/eslint-plugin": "^7.16.1",
21
21
  "@typescript-eslint/parser": "^7.16.1",
22
22
  "eslint-config-prettier": "^9.1.0",
23
- "eslint-plugin-perfectionist": "^2.11.0",
23
+ "eslint-plugin-perfectionist": "^3.0.0",
24
24
  "eslint-plugin-unicorn": "^54.0.0",
25
25
  "eslint-plugin-vitest": "^0.5.4",
26
26
  "eslint-plugin-vue": "^9.27.0",
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/eslint-config-prettier": "^6.11.3",
32
- "@types/node": "^20.14.10",
32
+ "@types/node": "^20.14.11",
33
33
  "eslint": "^8.57.0",
34
- "husky": "^9.0.11",
34
+ "husky": "^9.1.1",
35
35
  "lint-staged": "^15.2.7",
36
36
  "prettier": "^3.3.3",
37
37
  "tslib": "^2.6.3",
38
38
  "typescript": "^5.5.3",
39
- "vite": "^5.3.3",
39
+ "vite": "^5.3.4",
40
40
  "vite-plugin-dts": "^3.9.1"
41
41
  },
42
42
  "peerDependencies": {