@storm-software/eslint 0.108.1 → 0.108.3
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 +1 -1
- package/dist/{chunk-E7T4SNH3.js → chunk-DAQCZ7FK.js} +14 -11
- package/dist/{chunk-OGGLIE6C.cjs → chunk-GMT3V67N.cjs} +2 -2
- package/dist/{chunk-KND2ZTLT.cjs → chunk-HMBBDY5L.cjs} +2 -2
- package/dist/{chunk-TXTXUVRZ.cjs → chunk-LFHG33FO.cjs} +14 -14
- package/dist/{chunk-NFPQICLG.cjs → chunk-UFREWDQR.cjs} +16 -13
- package/dist/chunk-USNT2KNT.cjs +6 -0
- package/dist/preset.cjs +125 -34
- package/dist/preset.js +99 -7
- package/dist/rules/import.cjs +1 -1
- package/dist/rules/jsx-a11y.cjs +1 -1
- package/dist/rules/react-hooks.cjs +1 -1
- package/dist/rules/react.cjs +1 -1
- package/dist/rules/storm.cjs +3 -3
- package/dist/rules/storm.js +1 -1
- package/dist/rules/ts-docs.cjs +1 -1
- package/dist/utils/banner-plugin.cjs +4 -4
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/create-flat-import-plugin.cjs +1 -1
- package/dist/utils/format-config.cjs +3 -3
- package/dist/utils/get-file-banner.cjs +3 -3
- package/dist/utils/ignores.cjs +1 -1
- package/dist/utils/index.cjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-QDLKHXPX.cjs +0 -11
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -799,14 +799,20 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
799
799
|
// https://eslint.org/docs/rules/new-parens
|
|
800
800
|
"new-parens": "error",
|
|
801
801
|
// allow/disallow an empty newline after var statement
|
|
802
|
-
"newline-after-var":
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
// https://eslint.org/docs/rules/newline-before-return
|
|
807
|
-
"newline-before-return": [
|
|
802
|
+
"newline-after-var": "off",
|
|
803
|
+
// Require or disallow padding lines between statements
|
|
804
|
+
// https://eslint.org/docs/rules/padding-line-between-statements
|
|
805
|
+
"padding-line-between-statements": [
|
|
808
806
|
"error",
|
|
809
|
-
|
|
807
|
+
{
|
|
808
|
+
blankLine: "always",
|
|
809
|
+
prev: [
|
|
810
|
+
"const",
|
|
811
|
+
"let",
|
|
812
|
+
"var"
|
|
813
|
+
],
|
|
814
|
+
next: "return"
|
|
815
|
+
}
|
|
810
816
|
],
|
|
811
817
|
// enforces new line after each method call in the chain to make it
|
|
812
818
|
// more readable and easy to maintain
|
|
@@ -1017,7 +1023,7 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
1017
1023
|
"object-property-newline": [
|
|
1018
1024
|
"error",
|
|
1019
1025
|
{
|
|
1020
|
-
allowAllPropertiesOnSameLine:
|
|
1026
|
+
allowAllPropertiesOnSameLine: false
|
|
1021
1027
|
}
|
|
1022
1028
|
],
|
|
1023
1029
|
// allow just one var statement per function
|
|
@@ -1060,9 +1066,6 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
1060
1066
|
allowSingleLineBlocks: true
|
|
1061
1067
|
}
|
|
1062
1068
|
],
|
|
1063
|
-
// Require or disallow padding lines between statements
|
|
1064
|
-
// https://eslint.org/docs/rules/padding-line-between-statements
|
|
1065
|
-
"padding-line-between-statements": "off",
|
|
1066
1069
|
// Disallow the use of Math.pow in favor of the ** operator
|
|
1067
1070
|
// https://eslint.org/docs/rules/prefer-exponentiation-operator
|
|
1068
1071
|
"prefer-exponentiation-operator": "error",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
4
4
|
|
|
5
5
|
// src/utils/format-config.ts
|
|
6
|
-
var formatConfig = /* @__PURE__ */
|
|
6
|
+
var formatConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name, config = []) => {
|
|
7
7
|
return config.map((config2, index) => {
|
|
8
8
|
if (!config2 || config2.name) {
|
|
9
9
|
return _nullishCoalesce(config2, () => ( {}));
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
// src/utils/get-file-banner.ts
|
|
9
|
-
var getFileBanner = /* @__PURE__ */
|
|
9
|
+
var getFileBanner = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name = "") => {
|
|
10
10
|
if (!name) {
|
|
11
11
|
name = process.env.STORM_NAMESPACE || "";
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHMBBDY5Lcjs = require('./chunk-HMBBDY5L.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
10
10
|
|
|
11
11
|
// src/utils/banner-plugin.ts
|
|
12
12
|
var _utils = require('@typescript-eslint/utils');
|
|
@@ -18,13 +18,13 @@ function match(actual, expected) {
|
|
|
18
18
|
return expected === actual;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, match, "match");
|
|
22
22
|
function excludeShebangs(comments) {
|
|
23
23
|
return comments.filter(function(comment) {
|
|
24
24
|
return comment.type !== "Shebang";
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, excludeShebangs, "excludeShebangs");
|
|
28
28
|
function getLeadingComments(context, node) {
|
|
29
29
|
const all = excludeShebangs(context.getSourceCode().getAllComments(node.body.length ? node.body[0] : node));
|
|
30
30
|
if (all[0].type.toLowerCase() === "block") {
|
|
@@ -41,7 +41,7 @@ function getLeadingComments(context, node) {
|
|
|
41
41
|
}
|
|
42
42
|
return all.slice(0, i);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, getLeadingComments, "getLeadingComments");
|
|
45
45
|
function genCommentBody(commentType, textArray, eol, numNewlines) {
|
|
46
46
|
const eols = eol.repeat(numNewlines);
|
|
47
47
|
if (commentType === "block") {
|
|
@@ -50,7 +50,7 @@ function genCommentBody(commentType, textArray, eol, numNewlines) {
|
|
|
50
50
|
return "//" + textArray.join(eol + "//") + eols;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, genCommentBody, "genCommentBody");
|
|
54
54
|
function genCommentsRange(context, comments, eol) {
|
|
55
55
|
const start = comments[0].range[0];
|
|
56
56
|
let end = comments.slice(-1)[0].range[1];
|
|
@@ -62,19 +62,19 @@ function genCommentsRange(context, comments, eol) {
|
|
|
62
62
|
end
|
|
63
63
|
];
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, genCommentsRange, "genCommentsRange");
|
|
66
66
|
function genPrependFixer(commentType, node, bannerLines, eol, numNewlines) {
|
|
67
67
|
return function(fixer) {
|
|
68
68
|
return fixer.insertTextBefore(node, genCommentBody(commentType, bannerLines, eol, numNewlines));
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, genPrependFixer, "genPrependFixer");
|
|
72
72
|
function genReplaceFixer(commentType, context, leadingComments, bannerLines, eol, numNewlines) {
|
|
73
73
|
return function(fixer) {
|
|
74
74
|
return fixer.replaceTextRange(genCommentsRange(context, leadingComments, eol), genCommentBody(commentType, bannerLines, eol, numNewlines));
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, genReplaceFixer, "genReplaceFixer");
|
|
78
78
|
function getEOL(options) {
|
|
79
79
|
if (options.lineEndings === "unix") {
|
|
80
80
|
return "\n";
|
|
@@ -84,7 +84,7 @@ function getEOL(options) {
|
|
|
84
84
|
}
|
|
85
85
|
return _os2.default.EOL;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, getEOL, "getEOL");
|
|
88
88
|
function hasBanner(commentType, src) {
|
|
89
89
|
if (src.startsWith("#!")) {
|
|
90
90
|
const bannerLines = src.split(/\r?\n/);
|
|
@@ -102,7 +102,7 @@ function hasBanner(commentType, src) {
|
|
|
102
102
|
}
|
|
103
103
|
return commentType === "block" && src.startsWith("/*") || commentType === "lint" && src.startsWith("//") || commentType !== "block" && commentType !== "lint" && commentType && src.startsWith(commentType);
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, hasBanner, "hasBanner");
|
|
106
106
|
function matchesLineEndings(src, num) {
|
|
107
107
|
for (let j = 0; j < num; ++j) {
|
|
108
108
|
const m = src.match(/^(\r\n|\r|\n)/);
|
|
@@ -114,7 +114,7 @@ function matchesLineEndings(src, num) {
|
|
|
114
114
|
}
|
|
115
115
|
return true;
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, matchesLineEndings, "matchesLineEndings");
|
|
118
118
|
var bannerRule = _utils.ESLintUtils.RuleCreator(() => `https://docs.stormsoftware.com/eslint/rules/banner`)({
|
|
119
119
|
name: "banner",
|
|
120
120
|
meta: {
|
|
@@ -163,7 +163,7 @@ var bannerRule = _utils.ESLintUtils.RuleCreator(() => `https://docs.stormsoftwar
|
|
|
163
163
|
],
|
|
164
164
|
create(context, [{ banner, repositoryName = "", commentType = "block", numNewlines = 2 }]) {
|
|
165
165
|
if (!banner) {
|
|
166
|
-
banner =
|
|
166
|
+
banner = _chunkHMBBDY5Lcjs.getFileBanner.call(void 0, repositoryName);
|
|
167
167
|
}
|
|
168
168
|
const options = context.options;
|
|
169
169
|
const eol = getEOL(options);
|
|
@@ -171,7 +171,7 @@ var bannerRule = _utils.ESLintUtils.RuleCreator(() => `https://docs.stormsoftwar
|
|
|
171
171
|
const bannerLines = banner.split(/\r?\n/);
|
|
172
172
|
let fixLines = bannerLines;
|
|
173
173
|
return {
|
|
174
|
-
Program: /* @__PURE__ */
|
|
174
|
+
Program: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, function(node) {
|
|
175
175
|
if (!hasBanner(commentType, context.sourceCode.getText())) {
|
|
176
176
|
context.report({
|
|
177
177
|
loc: node.loc,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
4
4
|
|
|
5
5
|
// src/rules/storm.ts
|
|
6
|
-
var getStormRulesConfig = /* @__PURE__ */
|
|
6
|
+
var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (options) => {
|
|
7
7
|
let rules = {
|
|
8
8
|
/*************************************************************
|
|
9
9
|
*
|
|
@@ -799,14 +799,20 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0,
|
|
|
799
799
|
// https://eslint.org/docs/rules/new-parens
|
|
800
800
|
"new-parens": "error",
|
|
801
801
|
// allow/disallow an empty newline after var statement
|
|
802
|
-
"newline-after-var":
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
// https://eslint.org/docs/rules/newline-before-return
|
|
807
|
-
"newline-before-return": [
|
|
802
|
+
"newline-after-var": "off",
|
|
803
|
+
// Require or disallow padding lines between statements
|
|
804
|
+
// https://eslint.org/docs/rules/padding-line-between-statements
|
|
805
|
+
"padding-line-between-statements": [
|
|
808
806
|
"error",
|
|
809
|
-
|
|
807
|
+
{
|
|
808
|
+
blankLine: "always",
|
|
809
|
+
prev: [
|
|
810
|
+
"const",
|
|
811
|
+
"let",
|
|
812
|
+
"var"
|
|
813
|
+
],
|
|
814
|
+
next: "return"
|
|
815
|
+
}
|
|
810
816
|
],
|
|
811
817
|
// enforces new line after each method call in the chain to make it
|
|
812
818
|
// more readable and easy to maintain
|
|
@@ -1017,7 +1023,7 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0,
|
|
|
1017
1023
|
"object-property-newline": [
|
|
1018
1024
|
"error",
|
|
1019
1025
|
{
|
|
1020
|
-
allowAllPropertiesOnSameLine:
|
|
1026
|
+
allowAllPropertiesOnSameLine: false
|
|
1021
1027
|
}
|
|
1022
1028
|
],
|
|
1023
1029
|
// allow just one var statement per function
|
|
@@ -1060,9 +1066,6 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0,
|
|
|
1060
1066
|
allowSingleLineBlocks: true
|
|
1061
1067
|
}
|
|
1062
1068
|
],
|
|
1063
|
-
// Require or disallow padding lines between statements
|
|
1064
|
-
// https://eslint.org/docs/rules/padding-line-between-statements
|
|
1065
|
-
"padding-line-between-statements": "off",
|
|
1066
1069
|
// Disallow the use of Math.pow in favor of the ** operator
|
|
1067
1070
|
// https://eslint.org/docs/rules/prefer-exponentiation-operator
|
|
1068
1071
|
"prefer-exponentiation-operator": "error",
|
package/dist/preset.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUFREWDQRcjs = require('./chunk-UFREWDQR.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkJS7W7LMDcjs = require('./chunk-JS7W7LMD.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkLFHG33FOcjs = require('./chunk-LFHG33FO.cjs');
|
|
16
|
+
require('./chunk-HMBBDY5L.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,8 +21,7 @@ require('./chunk-KND2ZTLT.cjs');
|
|
|
21
21
|
var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
var _chunkQDLKHXPXcjs = require('./chunk-QDLKHXPX.cjs');
|
|
24
|
+
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
26
25
|
|
|
27
26
|
// src/preset.ts
|
|
28
27
|
var _recommended = require('@cspell/eslint-plugin/recommended'); var _recommended2 = _interopRequireDefault(_recommended);
|
|
@@ -204,6 +203,98 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
204
203
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
205
204
|
var _fs = require('fs');
|
|
206
205
|
var _path = require('path');
|
|
206
|
+
|
|
207
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
208
|
+
var _devkit = require('@nx/devkit');
|
|
209
|
+
var correctPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (path) => {
|
|
210
|
+
if (!path) {
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
|
|
214
|
+
path = `C:${path}`;
|
|
215
|
+
}
|
|
216
|
+
return path.replaceAll("\\", "/");
|
|
217
|
+
}, "correctPaths");
|
|
218
|
+
var joinPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (...paths) => {
|
|
219
|
+
if (!paths || paths.length === 0) {
|
|
220
|
+
return "";
|
|
221
|
+
}
|
|
222
|
+
return correctPaths(_devkit.joinPathFragments.call(void 0, ...paths.map((path) => correctPaths(path))));
|
|
223
|
+
}, "joinPaths");
|
|
224
|
+
|
|
225
|
+
// ../config-tools/src/utilities/find-up.ts
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
229
|
+
var depth = 0;
|
|
230
|
+
function findFolderUp(startPath, endFileNames) {
|
|
231
|
+
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
232
|
+
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
233
|
+
return _startPath;
|
|
234
|
+
}
|
|
235
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
236
|
+
const parent = _path.join.call(void 0, _startPath, "..");
|
|
237
|
+
return findFolderUp(parent, endFileNames);
|
|
238
|
+
}
|
|
239
|
+
return void 0;
|
|
240
|
+
}
|
|
241
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
242
|
+
|
|
243
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
244
|
+
var rootFiles = [
|
|
245
|
+
"storm.json",
|
|
246
|
+
"storm.json",
|
|
247
|
+
"storm.yaml",
|
|
248
|
+
"storm.yml",
|
|
249
|
+
"storm.js",
|
|
250
|
+
"storm.ts",
|
|
251
|
+
".storm.json",
|
|
252
|
+
".storm.yaml",
|
|
253
|
+
".storm.yml",
|
|
254
|
+
".storm.js",
|
|
255
|
+
".storm.ts",
|
|
256
|
+
"lerna.json",
|
|
257
|
+
"nx.json",
|
|
258
|
+
"turbo.json",
|
|
259
|
+
"npm-workspace.json",
|
|
260
|
+
"yarn-workspace.json",
|
|
261
|
+
"pnpm-workspace.json",
|
|
262
|
+
"npm-workspace.yaml",
|
|
263
|
+
"yarn-workspace.yaml",
|
|
264
|
+
"pnpm-workspace.yaml",
|
|
265
|
+
"npm-workspace.yml",
|
|
266
|
+
"yarn-workspace.yml",
|
|
267
|
+
"pnpm-workspace.yml",
|
|
268
|
+
"npm-lock.json",
|
|
269
|
+
"yarn-lock.json",
|
|
270
|
+
"pnpm-lock.json",
|
|
271
|
+
"npm-lock.yaml",
|
|
272
|
+
"yarn-lock.yaml",
|
|
273
|
+
"pnpm-lock.yaml",
|
|
274
|
+
"npm-lock.yml",
|
|
275
|
+
"yarn-lock.yml",
|
|
276
|
+
"pnpm-lock.yml",
|
|
277
|
+
"bun.lockb"
|
|
278
|
+
];
|
|
279
|
+
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
280
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
281
|
+
return correctPaths(_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
282
|
+
}
|
|
283
|
+
return correctPaths(findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
284
|
+
}
|
|
285
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
286
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
287
|
+
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
288
|
+
if (!result) {
|
|
289
|
+
throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
290
|
+
${rootFiles.join("\n")}
|
|
291
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
292
|
+
}
|
|
293
|
+
return result;
|
|
294
|
+
}
|
|
295
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
296
|
+
|
|
297
|
+
// ../config-tools/src/utilities/get-default-config.ts
|
|
207
298
|
var DEFAULT_COLOR_CONFIG = {
|
|
208
299
|
"light": {
|
|
209
300
|
"background": "#fafafa",
|
|
@@ -236,20 +327,20 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
236
327
|
// ../config-tools/src/logger/chalk.ts
|
|
237
328
|
var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
238
329
|
var chalkDefault = {
|
|
239
|
-
hex: /* @__PURE__ */
|
|
240
|
-
bgHex: /* @__PURE__ */
|
|
241
|
-
whiteBright: /* @__PURE__ */
|
|
330
|
+
hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
331
|
+
bgHex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => ({
|
|
332
|
+
whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
242
333
|
}), "bgHex"),
|
|
243
|
-
whiteBright: /* @__PURE__ */
|
|
334
|
+
whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright"),
|
|
244
335
|
bold: {
|
|
245
|
-
hex: /* @__PURE__ */
|
|
246
|
-
bgHex: /* @__PURE__ */
|
|
247
|
-
whiteBright: /* @__PURE__ */
|
|
336
|
+
hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
|
|
337
|
+
bgHex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => ({
|
|
338
|
+
whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
248
339
|
}), "bgHex"),
|
|
249
|
-
whiteBright: /* @__PURE__ */
|
|
340
|
+
whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
|
|
250
341
|
}
|
|
251
342
|
};
|
|
252
|
-
var getChalk = /* @__PURE__ */
|
|
343
|
+
var getChalk = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
253
344
|
let _chalk = _chalk3.default;
|
|
254
345
|
if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright])) {
|
|
255
346
|
_chalk = chalkDefault;
|
|
@@ -258,7 +349,7 @@ var getChalk = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0, () => {
|
|
|
258
349
|
}, "getChalk");
|
|
259
350
|
|
|
260
351
|
// ../config-tools/src/logger/get-log-level.ts
|
|
261
|
-
var getLogLevel = /* @__PURE__ */
|
|
352
|
+
var getLogLevel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label) => {
|
|
262
353
|
switch (label) {
|
|
263
354
|
case "all":
|
|
264
355
|
return LogLevel.ALL;
|
|
@@ -282,7 +373,7 @@ var getLogLevel = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0, (label)
|
|
|
282
373
|
}, "getLogLevel");
|
|
283
374
|
|
|
284
375
|
// ../config-tools/src/logger/console.ts
|
|
285
|
-
var getLogFn = /* @__PURE__ */
|
|
376
|
+
var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
|
|
286
377
|
const _chalk = getChalk();
|
|
287
378
|
const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
288
379
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
@@ -331,14 +422,14 @@ var getLogFn = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0, (logLevel =
|
|
|
331
422
|
`);
|
|
332
423
|
};
|
|
333
424
|
}, "getLogFn");
|
|
334
|
-
var writeFatal = /* @__PURE__ */
|
|
335
|
-
var writeError = /* @__PURE__ */
|
|
336
|
-
var writeInfo = /* @__PURE__ */
|
|
337
|
-
var writeDebug = /* @__PURE__ */
|
|
338
|
-
var writeTrace = /* @__PURE__ */
|
|
425
|
+
var writeFatal = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.FATAL, config)(message), "writeFatal");
|
|
426
|
+
var writeError = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.ERROR, config)(message), "writeError");
|
|
427
|
+
var writeInfo = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.INFO, config)(message), "writeInfo");
|
|
428
|
+
var writeDebug = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
429
|
+
var writeTrace = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
339
430
|
var MAX_DEPTH = 4;
|
|
340
|
-
var formatLogMessage = /* @__PURE__ */
|
|
341
|
-
if (
|
|
431
|
+
var formatLogMessage = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message, options = {}, depth2 = 0) => {
|
|
432
|
+
if (depth2 > MAX_DEPTH) {
|
|
342
433
|
return "<max depth>";
|
|
343
434
|
}
|
|
344
435
|
const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
|
|
@@ -347,13 +438,13 @@ var formatLogMessage = /* @__PURE__ */ _chunkQDLKHXPXcjs.__name.call(void 0, (me
|
|
|
347
438
|
${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
|
|
348
439
|
prefix: `${prefix}-`,
|
|
349
440
|
skip
|
|
350
|
-
},
|
|
441
|
+
}, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
351
442
|
${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
|
|
352
443
|
prefix: `${prefix}-`,
|
|
353
444
|
skip
|
|
354
|
-
},
|
|
445
|
+
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
355
446
|
}, "formatLogMessage");
|
|
356
|
-
var _isFunction = /* @__PURE__ */
|
|
447
|
+
var _isFunction = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (value) => {
|
|
357
448
|
try {
|
|
358
449
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _23 => _23.constructor]) && _optionalChain([value, 'optionalAccess', _24 => _24.call]) && _optionalChain([value, 'optionalAccess', _25 => _25.apply]));
|
|
359
450
|
} catch (e) {
|
|
@@ -469,7 +560,7 @@ function getStormConfig(options = {
|
|
|
469
560
|
"@cspell/spellchecker": [
|
|
470
561
|
"warn",
|
|
471
562
|
{
|
|
472
|
-
configFile:
|
|
563
|
+
configFile: joinPaths(findWorkspaceRoot(), cspellConfigFile),
|
|
473
564
|
autoFix: true
|
|
474
565
|
}
|
|
475
566
|
]
|
|
@@ -518,10 +609,10 @@ function getStormConfig(options = {
|
|
|
518
609
|
rules: _chunkJS7W7LMDcjs.ts_docs_default
|
|
519
610
|
});
|
|
520
611
|
configs.push({
|
|
521
|
-
...
|
|
612
|
+
..._chunkLFHG33FOcjs.banner_plugin_default.configs["recommended"],
|
|
522
613
|
name: "banner",
|
|
523
614
|
plugins: {
|
|
524
|
-
banner:
|
|
615
|
+
banner: _chunkLFHG33FOcjs.banner_plugin_default
|
|
525
616
|
},
|
|
526
617
|
files: [
|
|
527
618
|
_chunkESFBJFNUcjs.CODE_FILE
|
|
@@ -618,7 +709,7 @@ function getStormConfig(options = {
|
|
|
618
709
|
}
|
|
619
710
|
},
|
|
620
711
|
rules: {
|
|
621
|
-
...
|
|
712
|
+
..._chunkUFREWDQRcjs.getStormRulesConfig.call(void 0, {
|
|
622
713
|
...options,
|
|
623
714
|
typescriptEslintConfigType,
|
|
624
715
|
useUnicorn,
|
|
@@ -686,7 +777,7 @@ function getStormConfig(options = {
|
|
|
686
777
|
}), {
|
|
687
778
|
logLevel
|
|
688
779
|
});
|
|
689
|
-
const result =
|
|
780
|
+
const result = _chunkGMT3V67Ncjs.formatConfig.call(void 0, "Preset", configs.reduce((ret, config) => {
|
|
690
781
|
delete config.parserOptions;
|
|
691
782
|
const existingIndex = ret.findIndex((existing) => areFilesEqual(existing.files, config.files));
|
|
692
783
|
if (existingIndex >= 0) {
|
|
@@ -717,8 +808,8 @@ function getStormConfig(options = {
|
|
|
717
808
|
throw error;
|
|
718
809
|
}
|
|
719
810
|
}
|
|
720
|
-
|
|
721
|
-
var areFilesEqual = /* @__PURE__ */
|
|
811
|
+
_chunkUSNT2KNTcjs.__name.call(void 0, getStormConfig, "getStormConfig");
|
|
812
|
+
var areFilesEqual = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (files1, files2) => {
|
|
722
813
|
if (files1 === files2) {
|
|
723
814
|
return true;
|
|
724
815
|
} else if (!files1 || !files2) {
|
package/dist/preset.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-VJ6CKC4P.js";
|
|
7
7
|
import {
|
|
8
8
|
getStormRulesConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DAQCZ7FK.js";
|
|
10
10
|
import {
|
|
11
11
|
ts_docs_default
|
|
12
12
|
} from "./chunk-723HQUNP.js";
|
|
@@ -201,8 +201,100 @@ var StormConfigSchema = z.object({
|
|
|
201
201
|
}).describe("Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo.");
|
|
202
202
|
|
|
203
203
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
204
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
204
|
+
import { existsSync as existsSync2, readFileSync } from "node:fs";
|
|
205
|
+
import { join as join2 } from "node:path";
|
|
206
|
+
|
|
207
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
208
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
209
|
+
var correctPaths = /* @__PURE__ */ __name((path) => {
|
|
210
|
+
if (!path) {
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
|
|
214
|
+
path = `C:${path}`;
|
|
215
|
+
}
|
|
216
|
+
return path.replaceAll("\\", "/");
|
|
217
|
+
}, "correctPaths");
|
|
218
|
+
var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
219
|
+
if (!paths || paths.length === 0) {
|
|
220
|
+
return "";
|
|
221
|
+
}
|
|
222
|
+
return correctPaths(joinPathFragments(...paths.map((path) => correctPaths(path))));
|
|
223
|
+
}, "joinPaths");
|
|
224
|
+
|
|
225
|
+
// ../config-tools/src/utilities/find-up.ts
|
|
226
|
+
import { existsSync } from "node:fs";
|
|
205
227
|
import { join } from "node:path";
|
|
228
|
+
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
229
|
+
var depth = 0;
|
|
230
|
+
function findFolderUp(startPath, endFileNames) {
|
|
231
|
+
const _startPath = startPath ?? process.cwd();
|
|
232
|
+
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
233
|
+
return _startPath;
|
|
234
|
+
}
|
|
235
|
+
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
236
|
+
const parent = join(_startPath, "..");
|
|
237
|
+
return findFolderUp(parent, endFileNames);
|
|
238
|
+
}
|
|
239
|
+
return void 0;
|
|
240
|
+
}
|
|
241
|
+
__name(findFolderUp, "findFolderUp");
|
|
242
|
+
|
|
243
|
+
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
244
|
+
var rootFiles = [
|
|
245
|
+
"storm.json",
|
|
246
|
+
"storm.json",
|
|
247
|
+
"storm.yaml",
|
|
248
|
+
"storm.yml",
|
|
249
|
+
"storm.js",
|
|
250
|
+
"storm.ts",
|
|
251
|
+
".storm.json",
|
|
252
|
+
".storm.yaml",
|
|
253
|
+
".storm.yml",
|
|
254
|
+
".storm.js",
|
|
255
|
+
".storm.ts",
|
|
256
|
+
"lerna.json",
|
|
257
|
+
"nx.json",
|
|
258
|
+
"turbo.json",
|
|
259
|
+
"npm-workspace.json",
|
|
260
|
+
"yarn-workspace.json",
|
|
261
|
+
"pnpm-workspace.json",
|
|
262
|
+
"npm-workspace.yaml",
|
|
263
|
+
"yarn-workspace.yaml",
|
|
264
|
+
"pnpm-workspace.yaml",
|
|
265
|
+
"npm-workspace.yml",
|
|
266
|
+
"yarn-workspace.yml",
|
|
267
|
+
"pnpm-workspace.yml",
|
|
268
|
+
"npm-lock.json",
|
|
269
|
+
"yarn-lock.json",
|
|
270
|
+
"pnpm-lock.json",
|
|
271
|
+
"npm-lock.yaml",
|
|
272
|
+
"yarn-lock.yaml",
|
|
273
|
+
"pnpm-lock.yaml",
|
|
274
|
+
"npm-lock.yml",
|
|
275
|
+
"yarn-lock.yml",
|
|
276
|
+
"pnpm-lock.yml",
|
|
277
|
+
"bun.lockb"
|
|
278
|
+
];
|
|
279
|
+
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
280
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
281
|
+
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
282
|
+
}
|
|
283
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
284
|
+
}
|
|
285
|
+
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
286
|
+
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
287
|
+
const result = findWorkspaceRootSafe(pathInsideMonorepo);
|
|
288
|
+
if (!result) {
|
|
289
|
+
throw new Error(`Cannot find workspace root upwards from known path. Files search list includes:
|
|
290
|
+
${rootFiles.join("\n")}
|
|
291
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`);
|
|
292
|
+
}
|
|
293
|
+
return result;
|
|
294
|
+
}
|
|
295
|
+
__name(findWorkspaceRoot, "findWorkspaceRoot");
|
|
296
|
+
|
|
297
|
+
// ../config-tools/src/utilities/get-default-config.ts
|
|
206
298
|
var DEFAULT_COLOR_CONFIG = {
|
|
207
299
|
"light": {
|
|
208
300
|
"background": "#fafafa",
|
|
@@ -336,8 +428,8 @@ var writeInfo = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.IN
|
|
|
336
428
|
var writeDebug = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.DEBUG, config)(message), "writeDebug");
|
|
337
429
|
var writeTrace = /* @__PURE__ */ __name((message, config) => getLogFn(LogLevel.TRACE, config)(message), "writeTrace");
|
|
338
430
|
var MAX_DEPTH = 4;
|
|
339
|
-
var formatLogMessage = /* @__PURE__ */ __name((message, options = {},
|
|
340
|
-
if (
|
|
431
|
+
var formatLogMessage = /* @__PURE__ */ __name((message, options = {}, depth2 = 0) => {
|
|
432
|
+
if (depth2 > MAX_DEPTH) {
|
|
341
433
|
return "<max depth>";
|
|
342
434
|
}
|
|
343
435
|
const prefix = options.prefix ?? "-";
|
|
@@ -346,11 +438,11 @@ var formatLogMessage = /* @__PURE__ */ __name((message, options = {}, depth = 0)
|
|
|
346
438
|
${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, {
|
|
347
439
|
prefix: `${prefix}-`,
|
|
348
440
|
skip
|
|
349
|
-
},
|
|
441
|
+
}, depth2 + 1)}`).join("\n")}` : typeof message === "object" ? `
|
|
350
442
|
${Object.keys(message).filter((key) => !skip.includes(key)).map((key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(message[key], {
|
|
351
443
|
prefix: `${prefix}-`,
|
|
352
444
|
skip
|
|
353
|
-
},
|
|
445
|
+
}, depth2 + 1) : message[key]}`).join("\n")}` : message;
|
|
354
446
|
}, "formatLogMessage");
|
|
355
447
|
var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
356
448
|
try {
|
|
@@ -468,7 +560,7 @@ function getStormConfig(options = {
|
|
|
468
560
|
"@cspell/spellchecker": [
|
|
469
561
|
"warn",
|
|
470
562
|
{
|
|
471
|
-
configFile:
|
|
563
|
+
configFile: joinPaths(findWorkspaceRoot(), cspellConfigFile),
|
|
472
564
|
autoFix: true
|
|
473
565
|
}
|
|
474
566
|
]
|
package/dist/rules/import.cjs
CHANGED
package/dist/rules/jsx-a11y.cjs
CHANGED
package/dist/rules/react.cjs
CHANGED
package/dist/rules/storm.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkUFREWDQRcjs = require('../chunk-UFREWDQR.cjs');
|
|
4
|
+
require('../chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.getStormRulesConfig =
|
|
7
|
+
exports.getStormRulesConfig = _chunkUFREWDQRcjs.getStormRulesConfig;
|
package/dist/rules/storm.js
CHANGED
package/dist/rules/ts-docs.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
var _chunkJS7W7LMDcjs = require('../chunk-JS7W7LMD.cjs');
|
|
4
|
-
require('../chunk-
|
|
4
|
+
require('../chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.default = _chunkJS7W7LMDcjs.ts_docs_default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkLFHG33FOcjs = require('../chunk-LFHG33FO.cjs');
|
|
4
|
+
require('../chunk-HMBBDY5L.cjs');
|
|
5
5
|
require('../chunk-ESFBJFNU.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkLFHG33FOcjs.banner_plugin_default;
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-USNT2KNT.cjs');
|
|
2
2
|
|
|
3
3
|
// src/utils/create-flat-import-plugin.ts
|
|
4
4
|
var _eslintpluginimport = require('eslint-plugin-import'); var _eslintpluginimport2 = _interopRequireDefault(_eslintpluginimport);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
|
|
4
|
+
require('../chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.formatConfig =
|
|
7
|
+
exports.formatConfig = _chunkGMT3V67Ncjs.formatConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHMBBDY5Lcjs = require('../chunk-HMBBDY5L.cjs');
|
|
4
4
|
require('../chunk-ESFBJFNU.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-USNT2KNT.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.getFileBanner =
|
|
8
|
+
exports.getFileBanner = _chunkHMBBDY5Lcjs.getFileBanner;
|
package/dist/utils/ignores.cjs
CHANGED
package/dist/utils/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
|
|
@@ -16,7 +16,7 @@ var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
|
|
19
|
-
require('../chunk-
|
|
19
|
+
require('../chunk-USNT2KNT.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -30,4 +30,4 @@ require('../chunk-QDLKHXPX.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
exports.ACRONYMS_LIST = _chunkESFBJFNUcjs.ACRONYMS_LIST; exports.CODE_BLOCK = _chunkESFBJFNUcjs.CODE_BLOCK; exports.CODE_FILE = _chunkESFBJFNUcjs.CODE_FILE; exports.JS_FILE = _chunkESFBJFNUcjs.JS_FILE; exports.JS_FILES = _chunkESFBJFNUcjs.JS_FILES; exports.REACT_RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.REACT_RESTRICTED_SYNTAX; exports.RESTRICTED_GLOBALS = _chunkESFBJFNUcjs.RESTRICTED_GLOBALS; exports.RESTRICTED_MODULES = _chunkESFBJFNUcjs.RESTRICTED_MODULES; exports.RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.RESTRICTED_SYNTAX; exports.TS_FILE = _chunkESFBJFNUcjs.TS_FILE; exports.formatConfig =
|
|
33
|
+
exports.ACRONYMS_LIST = _chunkESFBJFNUcjs.ACRONYMS_LIST; exports.CODE_BLOCK = _chunkESFBJFNUcjs.CODE_BLOCK; exports.CODE_FILE = _chunkESFBJFNUcjs.CODE_FILE; exports.JS_FILE = _chunkESFBJFNUcjs.JS_FILE; exports.JS_FILES = _chunkESFBJFNUcjs.JS_FILES; exports.REACT_RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.REACT_RESTRICTED_SYNTAX; exports.RESTRICTED_GLOBALS = _chunkESFBJFNUcjs.RESTRICTED_GLOBALS; exports.RESTRICTED_MODULES = _chunkESFBJFNUcjs.RESTRICTED_MODULES; exports.RESTRICTED_SYNTAX = _chunkESFBJFNUcjs.RESTRICTED_SYNTAX; exports.TS_FILE = _chunkESFBJFNUcjs.TS_FILE; exports.formatConfig = _chunkGMT3V67Ncjs.formatConfig; exports.ignores = _chunkYQQ366F7cjs.ignores;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/eslint","version":"0.108.
|
|
1
|
+
{"name":"@storm-software/eslint","version":"0.108.3","type":"module","description":"⚡ A package containing the base ESLint configuration used by Storm Software across many projects.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/eslint"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"maintainers":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},{"name":"Pat Sullivan","email":"admin@stormsoftware.com","url":"https://patsullivan.org"}],"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"packageManager":"pnpm@9.15.2","engines":{"node":">=22.4.0","pnpm":">=9.15.2"},"main":"./dist/preset.cjs","module":"./dist/preset.js","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./index":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./preset":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./rules/*":{"import":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"},"require":{"types":"./dist/rules/*.d.cts","default":"./dist/rules/*.cjs"},"default":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"}},"./utils/*":{"import":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"},"require":{"types":"./dist/utils/*.d.cts","default":"./dist/utils/*.cjs"},"default":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"}}},"types":"./dist/preset.d.ts","files":["dist/**/*"],"keywords":["eslint","eslint-config","eslintconfig","monorepo","storm","storm-ops","sullivanpj"],"peerDependencies":{"@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","eslint":"^9.12.0","graphql":">=16.9.0"},"peerDependenciesMeta":{"@nx/eslint":{"optional":true},"@nx/eslint-plugin":{"optional":true},"eslint":{"optional":false},"graphql":{"optional":true}},"dependencies":{"@cspell/eslint-plugin":"8.13.1","@graphql-eslint/eslint-plugin":"3.20.1","@next/eslint-plugin-next":"14.2.4","defu":"6.1.4","eslint-plugin-es-x":"7.6.0","eslint-plugin-import":"^2.29.1","eslint-plugin-json":"4.0.0","eslint-plugin-jsonc":"2.16.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-markdownlint":"0.6.0","eslint-plugin-mdx":"3.1.5","eslint-plugin-n":"17.8.1","eslint-plugin-prettier":"^5.0.0","eslint-plugin-promise":"6.2.0","eslint-plugin-react":"^7.34.3","eslint-plugin-react-compiler":"0.0.0-experimental-b6997ec-20240909","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-relay":"1.8.3","eslint-plugin-sonarjs":"1.0.3","eslint-plugin-storybook":"0.11.0","eslint-plugin-tsdoc":"0.4.0","eslint-plugin-unicorn":"56.0.0","eslint-plugin-yml":"1.14.0","globals":"^15.8.0","jsonc-eslint-parser":"2.4.0","synckit":"0.9.0","typescript-eslint":"^8.13.0","ws":"8.17.1","yaml-eslint-parser":"1.2.3"},"devDependencies":{"@eslint/config-inspector":"^0.5.1","@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@types/node":"^22.10.2","eslint":"^9.12.0","eslint-typegen":"^1.0.0","graphql":">=16.9.0","tsup":"8.3.5","typescript":"^5.7.2"},"publishConfig":{"access":"public"}}
|
package/dist/chunk-QDLKHXPX.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.5__@swc+core@1.7.26_@swc+helpers_c7mn2udg6r6tcyo4cnski6htca/node_modules/tsup/assets/cjs_shims.js
|
|
5
|
-
var getImportMetaUrl = /* @__PURE__ */ __name(() => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href, "getImportMetaUrl");
|
|
6
|
-
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.__name = __name; exports.importMetaUrl = importMetaUrl;
|