@haltcase/style 7.3.1-canary.1 → 8.0.0-canary.1

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.
@@ -23,6 +23,14 @@ export const eslintUnicornConfig = config({
23
23
  * 🚫 Not fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md
24
24
  */
25
25
  "unicorn/consistent-destructuring": "error",
26
+ /**
27
+ * Enforce consistent style for element existence checks with `indexOf()`,
28
+ * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
29
+ *
30
+ * 🔧 Fixable -
31
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-existence-index-check.md
32
+ */
33
+ "unicorn/consistent-existence-index-check": "error",
26
34
  /**
27
35
  * Move function definitions to the highest possible scope.
28
36
  *
@@ -103,12 +111,6 @@ export const eslintUnicornConfig = config({
103
111
  * 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
104
112
  */
105
113
  "unicorn/no-array-method-this-argument": "error",
106
- /**
107
- * Enforce combining multiple `Array#push()` into one call.
108
- *
109
- * 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md
110
- */
111
- "unicorn/no-array-push-push": "error",
112
114
  /**
113
115
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
114
116
  *
@@ -253,6 +255,22 @@ export const eslintUnicornConfig = config({
253
255
  * 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
254
256
  */
255
257
  "unicorn/no-unnecessary-await": "error",
258
+ /**
259
+ * Disallow using `.length` or `Infinity` as the `end` argument of
260
+ * `{Array,String,TypedArray}#slice()`.
261
+ *
262
+ * 🔧 Fixable -
263
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-slice-end.md
264
+ */
265
+ "unicorn/no-unnecessary-slice-end": "error",
266
+ /**
267
+ * Disallow using `.length` or `Infinity` as the `deleteCount` or
268
+ * `skipCount` argument of `Array#{splice,toSpliced}()`.
269
+ *
270
+ * 🔧 Fixable -
271
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-array-splice-count.md
272
+ */
273
+ "unicorn/no-unnecessary-array-splice-count": "error",
256
274
  /**
257
275
  * Disallow unreadable array destructuring.
258
276
  *
@@ -451,6 +469,12 @@ export const eslintUnicornConfig = config({
451
469
  * 🚫 Not fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
452
470
  */
453
471
  "unicorn/prefer-logical-operator-over-ternary": "error",
472
+ /**
473
+ * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
474
+ *
475
+ * 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-min-max.md
476
+ */
477
+ "unicorn/prefer-math-min-max": "error",
454
478
  /**
455
479
  * Enforce the use of `Math.trunc` instead of bitwise operators.
456
480
  *
@@ -549,6 +573,14 @@ export const eslintUnicornConfig = config({
549
573
  * 🔧 Fixable - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
550
574
  */
551
575
  "unicorn/prefer-set-size": "error",
576
+ /**
577
+ * Enforce combining multiple `Array#push()`,
578
+ * `Element#classList.{add,remove}()`, and `importScripts()` into one call.
579
+ *
580
+ * 🔧 Fixable -
581
+ * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-call.md
582
+ */
583
+ "unicorn/prefer-single-call": "error",
552
584
  /**
553
585
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
554
586
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haltcase/style",
3
- "version": "7.3.1-canary.1",
3
+ "version": "8.0.0-canary.1",
4
4
  "description": "haltcase's web ecosystem style guide & configurations",
5
5
  "keywords": [
6
6
  "eslint",
@@ -103,7 +103,7 @@
103
103
  "eslint-plugin-simple-import-sort": "^12.1.1",
104
104
  "eslint-plugin-testing-library": "^7.1.1",
105
105
  "eslint-plugin-tsdoc": "^0.4.0",
106
- "eslint-plugin-unicorn": "^56.0.1",
106
+ "eslint-plugin-unicorn": "^59.0.0",
107
107
  "postcss-html": "^1.8.0",
108
108
  "prettier-plugin-packagejson": "^2.5.8",
109
109
  "prettier-plugin-tailwindcss": "^0.6.11",
@@ -164,5 +164,10 @@
164
164
  },
165
165
  "publishConfig": {
166
166
  "access": "public"
167
+ },
168
+ "pnpm": {
169
+ "onlyBuiltDependencies": [
170
+ "unrs-resolver"
171
+ ]
167
172
  }
168
173
  }