@newsteam/eslint-config 1.2.6 → 1.2.7

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.
@@ -8,7 +8,6 @@ import { INDENT_SPACES, MAXIMUM_LINE_LENGTH, } from "../settings.js";
8
8
  export const stylisticPlugin = [
9
9
  {
10
10
  plugins: {
11
- // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- don't have a choice
12
11
  "@stylistic": stylistic,
13
12
  },
14
13
  rules: {
@@ -1 +1 @@
1
- {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/plugins/unicorn.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EA69BxC,CAAC"}
1
+ {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/plugins/unicorn.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EA+/BxC,CAAC"}
@@ -38,6 +38,18 @@ export const unicornPlugin = [
38
38
  name: "error",
39
39
  },
40
40
  ],
41
+ /*
42
+ * Enforce consistent assertion style with node:assert
43
+ *
44
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-assert.md
45
+ */
46
+ "unicorn/consistent-assert": "error",
47
+ /*
48
+ * Prefer passing Date directly to the constructor when cloning
49
+ *
50
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-date-clone.md
51
+ */
52
+ "unicorn/consistent-date-clone": "error",
41
53
  /*
42
54
  * Use destructured variables over properties
43
55
  *
@@ -129,6 +141,12 @@ export const unicornPlugin = [
129
141
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-abusive-eslint-disable.md
130
142
  */
131
143
  "unicorn/no-abusive-eslint-disable": "error",
144
+ /*
145
+ * Disallow recursive access to this within getters and setters
146
+ *
147
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-accessor-recursion.md
148
+ */
149
+ "unicorn/no-accessor-recursion": "error",
132
150
  /*
133
151
  * Disallow anonymous functions and classes as the default export
134
152
  *
@@ -215,7 +233,12 @@ export const unicornPlugin = [
215
233
  *
216
234
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
217
235
  */
218
- "unicorn/no-instanceof-array": "error",
236
+ "unicorn/no-instanceof-builtins": [
237
+ "error",
238
+ {
239
+ strategy: "loose",
240
+ },
241
+ ],
219
242
  /*
220
243
  * Disallow invalid options in fetch() and new Request()
221
244
  *
@@ -252,6 +275,12 @@ export const unicornPlugin = [
252
275
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md
253
276
  */
254
277
  "unicorn/no-magic-array-flat-depth": "error",
278
+ /*
279
+ * Disallow named usage of default import and export
280
+ *
281
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-named-default.md
282
+ */
283
+ "unicorn/no-named-default": "error",
255
284
  /*
256
285
  * Disallow negated conditions
257
286
  *
@@ -768,6 +797,7 @@ export const unicornPlugin = [
768
797
  checkProperties: false,
769
798
  ignore: [
770
799
  /^arg*/ui,
800
+ /^utils*/ui,
771
801
  ],
772
802
  replacements: {
773
803
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newsteam/eslint-config",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Shared config for eslint",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -53,15 +53,15 @@
53
53
  ],
54
54
  "dependencies": {
55
55
  "@babel/eslint-parser": "^7.26.8",
56
- "@babel/preset-env": "^7.26.8",
56
+ "@babel/preset-env": "^7.26.9",
57
57
  "@eslint/compat": "^1.2.6",
58
58
  "@next/eslint-plugin-next": "^15.1.7",
59
- "@stylistic/eslint-plugin": "^3.1.0",
60
- "@typescript-eslint/eslint-plugin": "^8.24.0",
61
- "@typescript-eslint/parser": "^8.24.0",
59
+ "@stylistic/eslint-plugin": "^4.0.0",
60
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
61
+ "@typescript-eslint/parser": "^8.24.1",
62
62
  "confusing-browser-globals": "^1.0.11",
63
63
  "eslint-import-resolver-node": "^0.3.9",
64
- "eslint-import-resolver-typescript": "^3.8.0",
64
+ "eslint-import-resolver-typescript": "^3.8.1",
65
65
  "eslint-plugin-array-func": "^5.0.2",
66
66
  "eslint-plugin-const-case": "^1.2.2",
67
67
  "eslint-plugin-css-modules": "^2.12.0",
@@ -84,9 +84,9 @@
84
84
  "eslint-plugin-react-perf": "^3.3.3",
85
85
  "eslint-plugin-react-refresh": "^0.4.19",
86
86
  "eslint-plugin-security": "^3.0.1",
87
- "eslint-plugin-unicorn": "^56.0.1",
87
+ "eslint-plugin-unicorn": "^57.0.0",
88
88
  "globals": "^15.15.0",
89
- "typescript-eslint": "^8.24.0"
89
+ "typescript-eslint": "^8.24.1"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "eslint": ">= 9"