@infernodesign/eslint-config 2.13.1 → 2.14.0

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 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": ["error", "multi-line"] } : {
559
- "curly": ["error", "all"],
560
- "style/array-bracket-spacing": ["error", "always"],
561
- "style/arrow-parens": [
562
- "error",
563
- "as-needed",
564
- { "requireForBlockBody": true }
565
- ],
566
- "style/arrow-spacing": ["error", {
567
- after: true,
568
- before: true
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": ["error", { max: 2 }],
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
  }];
@@ -3306,14 +3242,16 @@ function config(options = {}, ...userConfigs) {
3306
3242
  const stylisticOptions = options.stylistic === false ? false : typeof options.stylistic === "object" ? options.stylistic : {};
3307
3243
  if (stylisticOptions && !("jsx" in stylisticOptions)) stylisticOptions.jsx = typeof enableJsx === "object" ? true : enableJsx;
3308
3244
  const configs = [];
3309
- if (enableGitignore) if (typeof enableGitignore !== "boolean") configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
3310
- name: "config/gitignore",
3311
- ...enableGitignore
3312
- })]));
3313
- else configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
3314
- name: "config/gitignore",
3315
- strict: false
3316
- })]));
3245
+ if (enableGitignore) {
3246
+ if (typeof enableGitignore !== "boolean") configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
3247
+ name: "config/gitignore",
3248
+ ...enableGitignore
3249
+ })]));
3250
+ else configs.push(interopDefault(import("eslint-config-flat-gitignore")).then((r) => [r({
3251
+ name: "config/gitignore",
3252
+ strict: false
3253
+ })]));
3254
+ }
3317
3255
  const typescriptOptions = resolveSubOptions(options, "typescript");
3318
3256
  const tsconfigPath = "tsconfigPath" in typescriptOptions ? typescriptOptions.tsconfigPath : void 0;
3319
3257
  configs.push(ignores(userIgnores, !enableTypeScript), javascript({
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.13.1",
4
+ "version": "2.14.0",
5
5
  "type": "module",
6
6
  "author": "Inferno Design <support@infernodesign.com>",
7
7
  "license": "MIT",
@@ -46,41 +46,41 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@antfu/install-pkg": "2.0.1",
50
- "@clack/prompts": "1.7.0",
51
- "@e18e/eslint-plugin": "0.8.0",
52
- "@eslint-community/eslint-plugin-eslint-comments": "4.7.2",
53
- "@eslint/compat": "2.1.0",
49
+ "@antfu/install-pkg": "2.1.0",
50
+ "@clack/prompts": "1.8.1",
51
+ "@e18e/eslint-plugin": "0.8.1",
52
+ "@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
53
+ "@eslint/compat": "2.1.1",
54
54
  "@eslint/config-array": "0.23.5",
55
55
  "@eslint/config-helpers": "0.7.0",
56
56
  "@eslint/markdown": "8.0.3",
57
57
  "@stylistic/eslint-plugin": "5.10.0",
58
- "@typescript-eslint/eslint-plugin": "8.67.0",
59
- "@typescript-eslint/parser": "8.67.0",
60
- "@typescript-eslint/utils": "8.67.0",
58
+ "@typescript-eslint/eslint-plugin": "8.71.0",
59
+ "@typescript-eslint/parser": "8.71.0",
60
+ "@typescript-eslint/utils": "8.71.0",
61
61
  "@vitest/eslint-plugin": "1.6.27",
62
- "ansis": "4.3.1",
62
+ "ansis": "4.4.0",
63
63
  "cac": "7.0.0",
64
- "eslint-config-flat-gitignore": "2.3.0",
64
+ "eslint-config-flat-gitignore": "2.4.0",
65
65
  "eslint-flat-config-utils": "3.2.0",
66
66
  "eslint-merge-processors": "2.0.0",
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": "64.2.1",
71
- "eslint-plugin-jsonc": "3.4.1",
72
- "eslint-plugin-n": "18.3.0",
70
+ "eslint-plugin-jsdoc": "65.1.0",
71
+ "eslint-plugin-jsonc": "3.4.2",
72
+ "eslint-plugin-n": "18.4.1",
73
73
  "eslint-plugin-no-only-tests": "3.4.0",
74
- "eslint-plugin-perfectionist": "5.10.1",
75
- "eslint-plugin-pnpm": "1.8.0",
76
- "eslint-plugin-regexp": "3.2.0",
74
+ "eslint-plugin-perfectionist": "5.12.1",
75
+ "eslint-plugin-pnpm": "1.9.1",
76
+ "eslint-plugin-regexp": "3.3.1",
77
77
  "eslint-plugin-toml": "1.5.0",
78
- "eslint-plugin-unicorn": "73.0.0",
78
+ "eslint-plugin-unicorn": "77.0.0",
79
79
  "eslint-plugin-unused-imports": "4.4.1",
80
- "eslint-plugin-vue": "10.10.0",
80
+ "eslint-plugin-vue": "10.11.1",
81
81
  "eslint-plugin-yml": "3.8.1",
82
82
  "eslint-processor-vue-blocks": "2.0.0",
83
- "globals": "17.11.0",
83
+ "globals": "17.13.0",
84
84
  "jsonc-eslint-parser": "3.3.0",
85
85
  "local-pkg": "1.2.1",
86
86
  "parse-gitignore": "2.0.0",
@@ -89,64 +89,64 @@
89
89
  "yaml-eslint-parser": "2.1.0"
90
90
  },
91
91
  "devDependencies": {
92
- "@eslint-react/eslint-plugin": "5.18.6",
93
- "@eslint/config-inspector": "3.2.0",
92
+ "@eslint-react/eslint-plugin": "5.24.4",
93
+ "@eslint/config-inspector": "3.5.0",
94
94
  "@infernodesign/typescript-config": "workspace:*",
95
- "@medusajs/eslint-plugin": "2.19.0",
96
- "@next/eslint-plugin-next": "16.3.1",
95
+ "@medusajs/eslint-plugin": "2.21.2",
96
+ "@next/eslint-plugin-next": "16.3.8",
97
97
  "@prettier/plugin-xml": "3.4.2",
98
- "@sanity-labs/eslint-plugin": "1.0.0",
99
- "@types/bun": "1.3.14",
98
+ "@sanity-labs/eslint-plugin": "1.0.1",
99
+ "@types/bun": "1.4.2",
100
100
  "@types/eslint-plugin-jsx-a11y": "6.10.1",
101
- "@types/node": "26.2.0",
102
- "@unocss/eslint-plugin": "66.7.5",
103
- "astro-eslint-parser": "3.1.0",
104
- "eslint": "10.8.1",
105
- "eslint-plugin-astro": "3.1.0",
106
- "eslint-plugin-better-tailwindcss": "4.7.0",
107
- "eslint-plugin-erasable-syntax-only": "0.4.2",
101
+ "@types/node": "26.6.4",
102
+ "@unocss/eslint-plugin": "66.10.5",
103
+ "astro-eslint-parser": "3.2.0",
104
+ "eslint": "10.12.0",
105
+ "eslint-plugin-astro": "3.2.1",
106
+ "eslint-plugin-better-tailwindcss": "4.8.0",
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
- "eslint-plugin-react-refresh": "0.5.4",
111
- "eslint-plugin-solid": "0.15.0",
112
- "eslint-plugin-storybook": "10.5.9",
110
+ "eslint-plugin-react-refresh": "0.5.7",
111
+ "eslint-plugin-solid": "0.18.1",
112
+ "eslint-plugin-storybook": "10.6.1",
113
113
  "eslint-plugin-svelte": "3.23.0",
114
114
  "eslint-plugin-vuejs-accessibility": "2.6.0",
115
115
  "eslint-typegen": "2.3.1",
116
116
  "execa": "10.0.1",
117
117
  "find-up-simple": "1.0.1",
118
118
  "jiti": "2.7.0",
119
- "pnpm-workspace-yaml": "1.8.0",
120
- "prettier-plugin-astro": "0.14.1",
119
+ "pnpm-workspace-yaml": "1.9.1",
120
+ "prettier-plugin-astro": "1.1.0",
121
121
  "prettier-plugin-slidev": "1.0.5",
122
- "svelte": "5.56.9",
122
+ "svelte": "5.57.1",
123
123
  "svelte-eslint-parser": "1.8.1",
124
124
  "tinyglobby": "0.2.17",
125
- "tsdown": "0.22.14",
125
+ "tsdown": "0.23.0",
126
126
  "typescript": "6.0.3",
127
- "vitest": "4.1.10",
128
- "vue": "3.5.41"
127
+ "vitest": "5.0.3",
128
+ "vue": "3.5.43"
129
129
  },
130
130
  "peerDependencies": {
131
- "@eslint-react/eslint-plugin": "^5.18.6",
132
- "@medusajs/eslint-plugin": "^2.19.0",
133
- "@next/eslint-plugin-next": "^16.3.1",
131
+ "@eslint-react/eslint-plugin": "^5.24.4",
132
+ "@medusajs/eslint-plugin": "^2.21.2",
133
+ "@next/eslint-plugin-next": "^16.3.8",
134
134
  "@prettier/plugin-xml": "^3.4.2",
135
- "@sanity-labs/eslint-plugin": "^1.0.0",
136
- "@unocss/eslint-plugin": "^66.7.5",
137
- "astro-eslint-parser": "^3.1.0",
138
- "eslint": "^10.8.1",
139
- "eslint-plugin-astro": "^3.1.0",
140
- "eslint-plugin-better-tailwindcss": "^4.7.0",
141
- "eslint-plugin-erasable-syntax-only": "^0.4.2",
135
+ "@sanity-labs/eslint-plugin": "^1.0.1",
136
+ "@unocss/eslint-plugin": "^66.10.5",
137
+ "astro-eslint-parser": "^3.2.0",
138
+ "eslint": "^10.12.0",
139
+ "eslint-plugin-astro": "^3.2.1",
140
+ "eslint-plugin-better-tailwindcss": "^4.8.0",
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
- "eslint-plugin-react-refresh": "^0.5.4",
145
- "eslint-plugin-solid": "^0.15.0",
146
- "eslint-plugin-storybook": "^10.5.9",
144
+ "eslint-plugin-react-refresh": "^0.5.7",
145
+ "eslint-plugin-solid": "^0.18.1",
146
+ "eslint-plugin-storybook": "^10.6.1",
147
147
  "eslint-plugin-svelte": "^3.23.0",
148
148
  "eslint-plugin-vuejs-accessibility": "^2.6.0",
149
- "prettier-plugin-astro": "^0.14.1",
149
+ "prettier-plugin-astro": "^1.1.0",
150
150
  "prettier-plugin-slidev": "^1.0.5",
151
151
  "svelte-eslint-parser": "^1.8.1"
152
152
  },