@newsteam/eslint-config 1.2.3 → 1.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/plugins/perfectionist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAgBhB,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EA8F9C,CAAC"}
1
+ {"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/plugins/perfectionist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EA6F9C,CAAC"}
@@ -1,21 +1,8 @@
1
1
  import perfectionist from "eslint-plugin-perfectionist";
2
- // perfectionist
3
- // /
4
- // sort-heritage-clauses
5
- // Enforce sorted heritage clauses.
6
- // perfectionist
7
- // /
8
- // sort-decorators
9
- // Enforce sorted decorators.
10
- // perfectionist
11
- // /
12
- // sort-modules
13
- // Enforce sorted modules.
14
2
  export const perfectionistPlugin = [
15
3
  {
16
4
  plugins: {
17
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- don't have a choice
18
- perfectionist: perfectionist,
5
+ perfectionist,
19
6
  },
20
7
  rules: {
21
8
  "perfectionist/sort-array-includes": "error",
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/plugins/typescript.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAmwC3C,CAAC"}
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/plugins/typescript.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAoxC3C,CAAC"}
@@ -584,6 +584,22 @@ export const typescriptPlugin = [
584
584
  },
585
585
  },
586
586
  ],
587
+ /*
588
+ *
589
+ *
590
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-spread.mdx
591
+ */
592
+ "@typescript-eslint/no-misused-spread": [
593
+ "error",
594
+ {
595
+ allow: [
596
+ {
597
+ from: "lib",
598
+ name: ["String", "string"],
599
+ },
600
+ ],
601
+ },
602
+ ],
587
603
  /*
588
604
  * Disallow enums from having both number and string members.
589
605
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -52,13 +52,13 @@
52
52
  "dist"
53
53
  ],
54
54
  "dependencies": {
55
- "@babel/eslint-parser": "^7.25.9",
56
- "@babel/preset-env": "^7.26.0",
57
- "@eslint/compat": "^1.2.4",
58
- "@next/eslint-plugin-next": "^15.1.0",
59
- "@stylistic/eslint-plugin": "^2.12.1",
60
- "@typescript-eslint/eslint-plugin": "^8.18.0",
61
- "@typescript-eslint/parser": "^8.18.0",
55
+ "@babel/eslint-parser": "^7.26.5",
56
+ "@babel/preset-env": "^7.26.7",
57
+ "@eslint/compat": "^1.2.6",
58
+ "@next/eslint-plugin-next": "^15.1.6",
59
+ "@stylistic/eslint-plugin": "^3.0.1",
60
+ "@typescript-eslint/eslint-plugin": "^8.23.0",
61
+ "@typescript-eslint/parser": "^8.23.0",
62
62
  "confusing-browser-globals": "^1.0.11",
63
63
  "eslint-import-resolver-node": "^0.3.9",
64
64
  "eslint-import-resolver-typescript": "^3.7.0",
@@ -68,31 +68,31 @@
68
68
  "eslint-plugin-destructuring": "^2.2.1",
69
69
  "eslint-plugin-eslint-comments": "^3.2.0",
70
70
  "eslint-plugin-import-newlines": "^1.4.0",
71
- "eslint-plugin-import-x": "^4.5.0",
71
+ "eslint-plugin-import-x": "^4.6.1",
72
72
  "eslint-plugin-more": "^1.0.5",
73
73
  "eslint-plugin-newline-destructuring": "^1.2.2",
74
74
  "eslint-plugin-no-unsanitized": "^4.1.2",
75
75
  "eslint-plugin-no-useless-assign": "^1.0.3",
76
76
  "eslint-plugin-node": "^11.1.0",
77
77
  "eslint-plugin-only-warn": "^1.1.0",
78
- "eslint-plugin-perfectionist": "^4.2.0",
78
+ "eslint-plugin-perfectionist": "^4.8.0",
79
79
  "eslint-plugin-promise": "^7.2.1",
80
- "eslint-plugin-react": "^7.37.2",
80
+ "eslint-plugin-react": "^7.37.4",
81
81
  "eslint-plugin-react-19-upgrade": "^1.6.0",
82
- "eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
82
+ "eslint-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
83
83
  "eslint-plugin-react-hooks": "^5.1.0",
84
84
  "eslint-plugin-react-perf": "^3.3.3",
85
- "eslint-plugin-react-refresh": "^0.4.16",
85
+ "eslint-plugin-react-refresh": "^0.4.18",
86
86
  "eslint-plugin-security": "^3.0.1",
87
87
  "eslint-plugin-unicorn": "^56.0.1",
88
- "globals": "^15.13.0",
89
- "typescript-eslint": "^8.18.0"
88
+ "globals": "^15.14.0",
89
+ "typescript-eslint": "^8.23.0"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "eslint": ">= 9"
93
93
  },
94
94
  "devDependencies": {
95
95
  "@types/eslint-plugin-security": "^3.0.0",
96
- "@types/node": "^22.10.1"
96
+ "@types/node": "^22.13.1"
97
97
  }
98
98
  }