@saasmakers/eslint 0.1.66 → 0.1.68

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.
@@ -10775,6 +10775,7 @@ const eslint_config = antfu__default(
10775
10775
  // Perfectionist
10776
10776
  ...index.configs["recommended-natural"].rules,
10777
10777
  "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
10778
+ "perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
10778
10779
  "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
10779
10780
  // SaaS Makers
10780
10781
  "saasmakers/ts-sort-tests": "error"
@@ -58,6 +58,7 @@ var eslint_config = antfu(
58
58
  // Perfectionist
59
59
  ..._default.configs["recommended-natural"].rules,
60
60
  "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
+ "perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
61
62
  "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
62
63
  // SaaS Makers
63
64
  "saasmakers/ts-sort-tests": "error"
@@ -58,6 +58,7 @@ var eslint_config = antfu(
58
58
  // Perfectionist
59
59
  ..._default.configs["recommended-natural"].rules,
60
60
  "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
+ "perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
61
62
  "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
62
63
  // SaaS Makers
63
64
  "saasmakers/ts-sort-tests": "error"
@@ -58,6 +58,7 @@ var eslint_config = antfu(
58
58
  // Perfectionist
59
59
  ..._default.configs["recommended-natural"].rules,
60
60
  "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
61
+ "perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
61
62
  "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
62
63
  // SaaS Makers
63
64
  "saasmakers/ts-sort-tests": "error"
@@ -10752,6 +10752,7 @@ const eslint_config = antfu(
10752
10752
  // Perfectionist
10753
10753
  ...index.configs["recommended-natural"].rules,
10754
10754
  "perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
10755
+ "perfectionist/sort-modules": ["error", { partitionByComment: true, type: "natural" }],
10755
10756
  "perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
10756
10757
  // SaaS Makers
10757
10758
  "saasmakers/ts-sort-tests": "error"
package/dist/index.cjs CHANGED
@@ -194,7 +194,7 @@ const rule$9 = {
194
194
  type: "suggestion"
195
195
  },
196
196
  create(context) {
197
- if (!context.filename.endsWith(".spec.ts")) {
197
+ if (!context.filename.endsWith(".spec.ts") && !context.filename.endsWith(".test.ts")) {
198
198
  return {};
199
199
  }
200
200
  function handleTestGroup(node) {
package/dist/index.mjs CHANGED
@@ -192,7 +192,7 @@ const rule$9 = {
192
192
  type: "suggestion"
193
193
  },
194
194
  create(context) {
195
- if (!context.filename.endsWith(".spec.ts")) {
195
+ if (!context.filename.endsWith(".spec.ts") && !context.filename.endsWith(".test.ts")) {
196
196
  return {};
197
197
  }
198
198
  function handleTestGroup(node) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@saasmakers/eslint",
3
3
  "type": "module",
4
- "version": "0.1.66",
4
+ "version": "0.1.68",
5
5
  "private": false,
6
6
  "description": "Shared ESLint config and rules for SaaS Makers projects",
7
7
  "author": "SaaS Makers",