@saasmakers/eslint 0.1.65 → 0.1.67
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/eslint.config.cjs +8 -1
- package/dist/eslint.config.d.cts +7 -1
- package/dist/eslint.config.d.mts +7 -1
- package/dist/eslint.config.d.ts +7 -1
- package/dist/eslint.config.mjs +7 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/eslint.config.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const antfu = require('@antfu/eslint-config');
|
|
4
|
+
const saasmakers = require('@saasmakers/eslint');
|
|
4
5
|
const index$1 = require('./shared/eslint.DhFjwkxh.cjs');
|
|
5
6
|
const path = require('node:path');
|
|
6
7
|
const fs = require('node:fs');
|
|
@@ -25,6 +26,7 @@ function _interopNamespaceCompat(e) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
const antfu__default = /*#__PURE__*/_interopDefaultCompat(antfu);
|
|
29
|
+
const saasmakers__default = /*#__PURE__*/_interopDefaultCompat(saasmakers);
|
|
28
30
|
const path__namespace = /*#__PURE__*/_interopNamespaceCompat(path);
|
|
29
31
|
const fs__namespace = /*#__PURE__*/_interopNamespaceCompat(fs);
|
|
30
32
|
const storybook__default = /*#__PURE__*/_interopDefaultCompat(storybook);
|
|
@@ -10760,6 +10762,9 @@ const eslint_config = antfu__default(
|
|
|
10760
10762
|
},
|
|
10761
10763
|
...storybook__default.configs["flat/recommended"],
|
|
10762
10764
|
{
|
|
10765
|
+
plugins: {
|
|
10766
|
+
saasmakers: saasmakers__default
|
|
10767
|
+
},
|
|
10763
10768
|
rules: {
|
|
10764
10769
|
// Override rules defined by Antfu ESLint config
|
|
10765
10770
|
// Try to keep the disabled rules to a minimum
|
|
@@ -10770,7 +10775,9 @@ const eslint_config = antfu__default(
|
|
|
10770
10775
|
// Perfectionist
|
|
10771
10776
|
...index.configs["recommended-natural"].rules,
|
|
10772
10777
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
10773
|
-
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }]
|
|
10778
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
10779
|
+
// SaaS Makers
|
|
10780
|
+
"saasmakers/ts-sort-tests": "error"
|
|
10774
10781
|
}
|
|
10775
10782
|
}
|
|
10776
10783
|
);
|
package/dist/eslint.config.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
|
+
import saasmakers from '@saasmakers/eslint';
|
|
2
3
|
import { Linter, ESLint } from 'eslint';
|
|
3
4
|
import storybook from 'eslint-plugin-storybook';
|
|
4
5
|
|
|
@@ -44,6 +45,9 @@ var eslint_config = antfu(
|
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
47
51
|
rules: {
|
|
48
52
|
// Override rules defined by Antfu ESLint config
|
|
49
53
|
// Try to keep the disabled rules to a minimum
|
|
@@ -54,7 +58,9 @@ var eslint_config = antfu(
|
|
|
54
58
|
// Perfectionist
|
|
55
59
|
..._default.configs["recommended-natural"].rules,
|
|
56
60
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
57
|
-
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }]
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
);
|
package/dist/eslint.config.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
|
+
import saasmakers from '@saasmakers/eslint';
|
|
2
3
|
import { Linter, ESLint } from 'eslint';
|
|
3
4
|
import storybook from 'eslint-plugin-storybook';
|
|
4
5
|
|
|
@@ -44,6 +45,9 @@ var eslint_config = antfu(
|
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
47
51
|
rules: {
|
|
48
52
|
// Override rules defined by Antfu ESLint config
|
|
49
53
|
// Try to keep the disabled rules to a minimum
|
|
@@ -54,7 +58,9 @@ var eslint_config = antfu(
|
|
|
54
58
|
// Perfectionist
|
|
55
59
|
..._default.configs["recommended-natural"].rules,
|
|
56
60
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
57
|
-
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }]
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
);
|
package/dist/eslint.config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
|
+
import saasmakers from '@saasmakers/eslint';
|
|
2
3
|
import { Linter, ESLint } from 'eslint';
|
|
3
4
|
import storybook from 'eslint-plugin-storybook';
|
|
4
5
|
|
|
@@ -44,6 +45,9 @@ var eslint_config = antfu(
|
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
47
51
|
rules: {
|
|
48
52
|
// Override rules defined by Antfu ESLint config
|
|
49
53
|
// Try to keep the disabled rules to a minimum
|
|
@@ -54,7 +58,9 @@ var eslint_config = antfu(
|
|
|
54
58
|
// Perfectionist
|
|
55
59
|
..._default.configs["recommended-natural"].rules,
|
|
56
60
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
57
|
-
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }]
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
58
64
|
}
|
|
59
65
|
}
|
|
60
66
|
);
|
package/dist/eslint.config.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
|
+
import saasmakers from '@saasmakers/eslint';
|
|
2
3
|
import { d as distExports } from './shared/eslint.CohBuu1-.mjs';
|
|
3
4
|
import * as path from 'node:path';
|
|
4
5
|
import * as fs from 'node:fs';
|
|
@@ -10738,6 +10739,9 @@ const eslint_config = antfu(
|
|
|
10738
10739
|
},
|
|
10739
10740
|
...storybook.configs["flat/recommended"],
|
|
10740
10741
|
{
|
|
10742
|
+
plugins: {
|
|
10743
|
+
saasmakers
|
|
10744
|
+
},
|
|
10741
10745
|
rules: {
|
|
10742
10746
|
// Override rules defined by Antfu ESLint config
|
|
10743
10747
|
// Try to keep the disabled rules to a minimum
|
|
@@ -10748,7 +10752,9 @@ const eslint_config = antfu(
|
|
|
10748
10752
|
// Perfectionist
|
|
10749
10753
|
...index.configs["recommended-natural"].rules,
|
|
10750
10754
|
"perfectionist/sort-imports": ["error", { newlinesBetween: 0, type: "natural" }],
|
|
10751
|
-
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }]
|
|
10755
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
10756
|
+
// SaaS Makers
|
|
10757
|
+
"saasmakers/ts-sort-tests": "error"
|
|
10752
10758
|
}
|
|
10753
10759
|
}
|
|
10754
10760
|
);
|
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) {
|