@infernodesign/eslint-config 2.13.2 → 2.14.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.
- package/README.md +69 -69
- package/dist/cli.js +5 -5
- package/dist/index.d.ts +565 -403
- package/dist/index.js +16 -77
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -555,82 +555,18 @@ async function stylistic(options = {}) {
|
|
|
555
555
|
...config.rules,
|
|
556
556
|
...experimental ? {} : { "antfu/consistent-list-newline": "error" },
|
|
557
557
|
"antfu/consistent-chaining": "error",
|
|
558
|
-
...lessOpinionated ? { "curly":
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
"style/block-spacing": ["error", "always"],
|
|
571
|
-
"style/comma-spacing": ["error", {
|
|
572
|
-
after: true,
|
|
573
|
-
before: false
|
|
574
|
-
}],
|
|
575
|
-
"style/computed-property-spacing": ["error", "never"],
|
|
576
|
-
"style/function-call-spacing": ["error", "never"],
|
|
577
|
-
"style/generator-star-spacing": ["error", {
|
|
578
|
-
after: true,
|
|
579
|
-
before: false
|
|
580
|
-
}],
|
|
581
|
-
"style/jsx-closing-bracket-location": ["error", "tag-aligned"],
|
|
582
|
-
"style/jsx-curly-spacing": ["error", {
|
|
583
|
-
children: true,
|
|
584
|
-
when: "never"
|
|
585
|
-
}],
|
|
586
|
-
"style/jsx-equals-spacing": ["error", "never"],
|
|
587
|
-
"style/jsx-one-expression-per-line": "off",
|
|
588
|
-
"style/jsx-quotes": ["error", "prefer-double"],
|
|
589
|
-
"style/jsx-tag-spacing": ["error", {
|
|
590
|
-
beforeSelfClosing: "always",
|
|
591
|
-
closingSlash: "never"
|
|
592
|
-
}],
|
|
593
|
-
"style/max-len": "off",
|
|
594
|
-
"style/max-statements-per-line": "off",
|
|
595
|
-
"style/multiline-ternary": "off",
|
|
596
|
-
"style/no-mixed-spaces-and-tabs": "error",
|
|
597
|
-
"style/no-multi-spaces": ["error", { ignoreEOLComments: true }],
|
|
598
|
-
"style/no-trailing-spaces": ["error", { skipBlankLines: true }],
|
|
599
|
-
"style/object-curly-spacing": ["error", "always"],
|
|
600
|
-
"style/quotes": [
|
|
601
|
-
"error",
|
|
602
|
-
quotes,
|
|
603
|
-
{ avoidEscape: true }
|
|
604
|
-
],
|
|
605
|
-
"style/rest-spread-spacing": ["error", "never"],
|
|
606
|
-
"style/space-before-blocks": ["error", "always"],
|
|
607
|
-
"style/space-before-function-paren": ["error", {
|
|
608
|
-
"anonymous": "never",
|
|
609
|
-
"asyncArrow": "always",
|
|
610
|
-
"catch": "never",
|
|
611
|
-
"named": "never"
|
|
612
|
-
}],
|
|
613
|
-
"style/space-in-parens": ["error", "always"],
|
|
614
|
-
"style/space-infix-ops": ["error", { int32Hint: false }],
|
|
615
|
-
"style/space-unary-ops": ["error", {
|
|
616
|
-
nonwords: false,
|
|
617
|
-
words: true
|
|
618
|
-
}],
|
|
619
|
-
"style/spaced-comment": ["error", "always"],
|
|
620
|
-
"style/switch-colon-spacing": ["error", {
|
|
621
|
-
after: true,
|
|
622
|
-
before: false
|
|
623
|
-
}],
|
|
624
|
-
"style/template-tag-spacing": ["error", "never"],
|
|
625
|
-
"style/type-annotation-spacing": "off",
|
|
626
|
-
"style/type-generic-spacing": "off",
|
|
627
|
-
"style/type-named-tuple-spacing": ["error"],
|
|
628
|
-
"style/wrap-iife": ["error", "outside"],
|
|
629
|
-
"style/yield-star-spacing": ["error", {
|
|
630
|
-
after: true,
|
|
631
|
-
before: false
|
|
632
|
-
}]
|
|
633
|
-
},
|
|
558
|
+
...lessOpinionated ? { "curly": "off" } : { "antfu/curly": "error" },
|
|
559
|
+
"style/max-len": "off",
|
|
560
|
+
"style/max-statements-per-line": "off",
|
|
561
|
+
"style/multiline-ternary": "off",
|
|
562
|
+
"style/generator-star-spacing": ["error", {
|
|
563
|
+
after: true,
|
|
564
|
+
before: false
|
|
565
|
+
}],
|
|
566
|
+
"style/yield-star-spacing": ["error", {
|
|
567
|
+
after: true,
|
|
568
|
+
before: false
|
|
569
|
+
}],
|
|
634
570
|
...overrides
|
|
635
571
|
}
|
|
636
572
|
}];
|
|
@@ -2722,7 +2658,10 @@ async function toml(options = {}) {
|
|
|
2722
2658
|
...stylistic ? {
|
|
2723
2659
|
"toml/array-bracket-newline": "error",
|
|
2724
2660
|
"toml/array-bracket-spacing": "error",
|
|
2725
|
-
"toml/array-element-newline": "error",
|
|
2661
|
+
"toml/array-element-newline": ["error", {
|
|
2662
|
+
multiline: true,
|
|
2663
|
+
minItems: 5
|
|
2664
|
+
}],
|
|
2726
2665
|
"toml/indent": ["error", typeof indent === "number" ? indent : indent === "tab" ? "tab" : 2],
|
|
2727
2666
|
"toml/inline-table-curly-spacing": "error",
|
|
2728
2667
|
"toml/key-spacing": "error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infernodesign/eslint-config",
|
|
3
3
|
"description": "ESLint config for Inferno Design.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Inferno Design <support@infernodesign.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"eslint-plugin-antfu": "3.2.3",
|
|
68
68
|
"eslint-plugin-command": "4.0.0",
|
|
69
69
|
"eslint-plugin-import-lite": "0.6.0",
|
|
70
|
-
"eslint-plugin-jsdoc": "65.0
|
|
70
|
+
"eslint-plugin-jsdoc": "65.1.0",
|
|
71
71
|
"eslint-plugin-jsonc": "3.4.2",
|
|
72
|
-
"eslint-plugin-n": "18.4.
|
|
72
|
+
"eslint-plugin-n": "18.4.1",
|
|
73
73
|
"eslint-plugin-no-only-tests": "3.4.0",
|
|
74
74
|
"eslint-plugin-perfectionist": "5.12.1",
|
|
75
75
|
"eslint-plugin-pnpm": "1.9.1",
|
|
76
76
|
"eslint-plugin-regexp": "3.3.1",
|
|
77
77
|
"eslint-plugin-toml": "1.5.0",
|
|
78
|
-
"eslint-plugin-unicorn": "
|
|
78
|
+
"eslint-plugin-unicorn": "77.0.0",
|
|
79
79
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
80
80
|
"eslint-plugin-vue": "10.11.1",
|
|
81
81
|
"eslint-plugin-yml": "3.8.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"yaml-eslint-parser": "2.1.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@eslint-react/eslint-plugin": "5.
|
|
92
|
+
"@eslint-react/eslint-plugin": "5.24.4",
|
|
93
93
|
"@eslint/config-inspector": "3.5.0",
|
|
94
94
|
"@infernodesign/typescript-config": "workspace:*",
|
|
95
95
|
"@medusajs/eslint-plugin": "2.21.2",
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"@types/node": "26.6.4",
|
|
102
102
|
"@unocss/eslint-plugin": "66.10.5",
|
|
103
103
|
"astro-eslint-parser": "3.2.0",
|
|
104
|
-
"eslint": "10.
|
|
104
|
+
"eslint": "10.12.0",
|
|
105
105
|
"eslint-plugin-astro": "3.2.1",
|
|
106
|
-
"eslint-plugin-better-tailwindcss": "4.
|
|
106
|
+
"eslint-plugin-better-tailwindcss": "4.8.0",
|
|
107
107
|
"eslint-plugin-erasable-syntax-only": "0.7.2",
|
|
108
108
|
"eslint-plugin-format": "2.0.1",
|
|
109
109
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
110
110
|
"eslint-plugin-react-refresh": "0.5.7",
|
|
111
|
-
"eslint-plugin-solid": "0.18.
|
|
111
|
+
"eslint-plugin-solid": "0.18.1",
|
|
112
112
|
"eslint-plugin-storybook": "10.6.1",
|
|
113
113
|
"eslint-plugin-svelte": "3.23.0",
|
|
114
114
|
"eslint-plugin-vuejs-accessibility": "2.6.0",
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
"vue": "3.5.43"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
131
|
+
"@eslint-react/eslint-plugin": "^5.24.4",
|
|
132
132
|
"@medusajs/eslint-plugin": "^2.21.2",
|
|
133
133
|
"@next/eslint-plugin-next": "^16.3.8",
|
|
134
134
|
"@prettier/plugin-xml": "^3.4.2",
|
|
135
135
|
"@sanity-labs/eslint-plugin": "^1.0.1",
|
|
136
136
|
"@unocss/eslint-plugin": "^66.10.5",
|
|
137
137
|
"astro-eslint-parser": "^3.2.0",
|
|
138
|
-
"eslint": "^10.
|
|
138
|
+
"eslint": "^10.12.0",
|
|
139
139
|
"eslint-plugin-astro": "^3.2.1",
|
|
140
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
140
|
+
"eslint-plugin-better-tailwindcss": "^4.8.0",
|
|
141
141
|
"eslint-plugin-erasable-syntax-only": "^0.7.2",
|
|
142
142
|
"eslint-plugin-format": "^2.0.1",
|
|
143
143
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
144
144
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
145
|
-
"eslint-plugin-solid": "^0.18.
|
|
145
|
+
"eslint-plugin-solid": "^0.18.1",
|
|
146
146
|
"eslint-plugin-storybook": "^10.6.1",
|
|
147
147
|
"eslint-plugin-svelte": "^3.23.0",
|
|
148
148
|
"eslint-plugin-vuejs-accessibility": "^2.6.0",
|