@saasmakers/eslint 0.1.64 → 0.1.66
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
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);
|
|
@@ -10759,10 +10761,13 @@ const eslint_config = antfu__default(
|
|
|
10759
10761
|
}
|
|
10760
10762
|
},
|
|
10761
10763
|
...storybook__default.configs["flat/recommended"],
|
|
10762
|
-
// Override rules defined by Antfu ESLint config
|
|
10763
|
-
// Try to keep the disabled rules to a minimum
|
|
10764
10764
|
{
|
|
10765
|
+
plugins: {
|
|
10766
|
+
saasmakers: saasmakers__default
|
|
10767
|
+
},
|
|
10765
10768
|
rules: {
|
|
10769
|
+
// Override rules defined by Antfu ESLint config
|
|
10770
|
+
// Try to keep the disabled rules to a minimum
|
|
10766
10771
|
"antfu/no-top-level-await": "off",
|
|
10767
10772
|
"node/prefer-global/process": "off",
|
|
10768
10773
|
"pnpm/yaml-enforce-settings": "off",
|
|
@@ -10770,8 +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-
|
|
10774
|
-
|
|
10778
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
10779
|
+
// SaaS Makers
|
|
10780
|
+
"saasmakers/ts-sort-tests": "error"
|
|
10775
10781
|
}
|
|
10776
10782
|
}
|
|
10777
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
|
|
|
@@ -43,10 +44,13 @@ var eslint_config = antfu(
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
|
-
// Override rules defined by Antfu ESLint config
|
|
47
|
-
// Try to keep the disabled rules to a minimum
|
|
48
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
49
51
|
rules: {
|
|
52
|
+
// Override rules defined by Antfu ESLint config
|
|
53
|
+
// Try to keep the disabled rules to a minimum
|
|
50
54
|
"antfu/no-top-level-await": "off",
|
|
51
55
|
"node/prefer-global/process": "off",
|
|
52
56
|
"pnpm/yaml-enforce-settings": "off",
|
|
@@ -54,8 +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-
|
|
58
|
-
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
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
|
|
|
@@ -43,10 +44,13 @@ var eslint_config = antfu(
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
|
-
// Override rules defined by Antfu ESLint config
|
|
47
|
-
// Try to keep the disabled rules to a minimum
|
|
48
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
49
51
|
rules: {
|
|
52
|
+
// Override rules defined by Antfu ESLint config
|
|
53
|
+
// Try to keep the disabled rules to a minimum
|
|
50
54
|
"antfu/no-top-level-await": "off",
|
|
51
55
|
"node/prefer-global/process": "off",
|
|
52
56
|
"pnpm/yaml-enforce-settings": "off",
|
|
@@ -54,8 +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-
|
|
58
|
-
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
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
|
|
|
@@ -43,10 +44,13 @@ var eslint_config = antfu(
|
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
...storybook.configs["flat/recommended"],
|
|
46
|
-
// Override rules defined by Antfu ESLint config
|
|
47
|
-
// Try to keep the disabled rules to a minimum
|
|
48
47
|
{
|
|
48
|
+
plugins: {
|
|
49
|
+
saasmakers
|
|
50
|
+
},
|
|
49
51
|
rules: {
|
|
52
|
+
// Override rules defined by Antfu ESLint config
|
|
53
|
+
// Try to keep the disabled rules to a minimum
|
|
50
54
|
"antfu/no-top-level-await": "off",
|
|
51
55
|
"node/prefer-global/process": "off",
|
|
52
56
|
"pnpm/yaml-enforce-settings": "off",
|
|
@@ -54,8 +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-
|
|
58
|
-
|
|
61
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
62
|
+
// SaaS Makers
|
|
63
|
+
"saasmakers/ts-sort-tests": "error"
|
|
59
64
|
}
|
|
60
65
|
}
|
|
61
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';
|
|
@@ -10737,10 +10738,13 @@ const eslint_config = antfu(
|
|
|
10737
10738
|
}
|
|
10738
10739
|
},
|
|
10739
10740
|
...storybook.configs["flat/recommended"],
|
|
10740
|
-
// Override rules defined by Antfu ESLint config
|
|
10741
|
-
// Try to keep the disabled rules to a minimum
|
|
10742
10741
|
{
|
|
10742
|
+
plugins: {
|
|
10743
|
+
saasmakers
|
|
10744
|
+
},
|
|
10743
10745
|
rules: {
|
|
10746
|
+
// Override rules defined by Antfu ESLint config
|
|
10747
|
+
// Try to keep the disabled rules to a minimum
|
|
10744
10748
|
"antfu/no-top-level-await": "off",
|
|
10745
10749
|
"node/prefer-global/process": "off",
|
|
10746
10750
|
"pnpm/yaml-enforce-settings": "off",
|
|
@@ -10748,8 +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-
|
|
10752
|
-
|
|
10755
|
+
"perfectionist/sort-objects": ["error", { partitionByComment: true, partitionByNewLine: true, type: "natural" }],
|
|
10756
|
+
// SaaS Makers
|
|
10757
|
+
"saasmakers/ts-sort-tests": "error"
|
|
10753
10758
|
}
|
|
10754
10759
|
}
|
|
10755
10760
|
);
|