@will-stone/eslint-config 26.0.0 → 26.0.2
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.js +20 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import c from "globals";
|
|
|
5
5
|
import k from "eslint-config-flat-gitignore";
|
|
6
6
|
import q from "eslint-plugin-jsdoc";
|
|
7
7
|
import P from "eslint-plugin-n";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import D from "eslint-plugin-package-json";
|
|
9
|
+
import O from "eslint-plugin-perfectionist";
|
|
10
|
+
import _ from "@stylistic/eslint-plugin";
|
|
11
11
|
import w from "@typescript-eslint/eslint-plugin";
|
|
12
12
|
import C from "eslint-plugin-unicorn";
|
|
13
13
|
import { globbySync as N } from "globby";
|
|
@@ -349,8 +349,20 @@ function K() {
|
|
|
349
349
|
// Can cause issues when Prettier is enabled
|
|
350
350
|
"prefer-arrow-callback": "off",
|
|
351
351
|
"prefer-const": "warn",
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
"prefer-destructuring": [
|
|
353
|
+
"error",
|
|
354
|
+
{
|
|
355
|
+
AssignmentExpression: {
|
|
356
|
+
array: !1,
|
|
357
|
+
object: !1
|
|
358
|
+
},
|
|
359
|
+
VariableDeclarator: {
|
|
360
|
+
// Make compatible with Unicorn's no-unreadable-array-destructuring.
|
|
361
|
+
array: !1,
|
|
362
|
+
object: !0
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
],
|
|
354
366
|
"prefer-exponentiation-operator": "warn",
|
|
355
367
|
"prefer-named-capture-group": "off",
|
|
356
368
|
"prefer-numeric-literals": "warn",
|
|
@@ -549,7 +561,7 @@ function U() {
|
|
|
549
561
|
function F() {
|
|
550
562
|
return [
|
|
551
563
|
{
|
|
552
|
-
...
|
|
564
|
+
...D.configs.recommended,
|
|
553
565
|
name: "will-stone/package.json",
|
|
554
566
|
rules: {
|
|
555
567
|
"package-json/bin-name-casing": "error",
|
|
@@ -649,7 +661,7 @@ function J() {
|
|
|
649
661
|
{
|
|
650
662
|
name: "will-stone/perfectionist",
|
|
651
663
|
plugins: {
|
|
652
|
-
perfectionist:
|
|
664
|
+
perfectionist: O
|
|
653
665
|
},
|
|
654
666
|
rules: {
|
|
655
667
|
"perfectionist/sort-array-includes": "off",
|
|
@@ -958,7 +970,7 @@ function M() {
|
|
|
958
970
|
{
|
|
959
971
|
name: "will-stone/style",
|
|
960
972
|
plugins: {
|
|
961
|
-
"@stylistic":
|
|
973
|
+
"@stylistic": _
|
|
962
974
|
},
|
|
963
975
|
rules: {
|
|
964
976
|
"@stylistic/array-bracket-newline": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@will-stone/eslint-config",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.2",
|
|
4
4
|
"description": "Will Stone's ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"eslint": ">=9.34.0",
|
|
85
85
|
"eslint-plugin-astro": "^1.3.1",
|
|
86
86
|
"eslint-plugin-react": "^7.37.4",
|
|
87
|
-
"eslint-plugin-react-hooks": "^
|
|
87
|
+
"eslint-plugin-react-hooks": "^7.2.1",
|
|
88
88
|
"eslint-plugin-tailwindcss": "^3.18.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|