@storm-software/eslint 0.115.8 → 0.115.9
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-GMT3V67N.cjs → chunk-3GC4AORY.cjs} +4 -2
- package/dist/{chunk-ESFBJFNU.cjs → chunk-3UUB46KX.cjs} +6 -1
- package/dist/{chunk-XMT3QM5B.js → chunk-4RD7EZGD.js} +4 -2
- package/dist/{chunk-JS7W7LMD.cjs → chunk-57YNYDOK.cjs} +6 -1
- package/dist/chunk-65NJ2BNV.js +49 -0
- package/dist/{chunk-RTM5LCEB.js → chunk-6ALJL7BB.js} +5 -0
- package/dist/{chunk-723HQUNP.js → chunk-72MKOVCL.js} +5 -0
- package/dist/{chunk-Y67QTC5U.js → chunk-AIXMWXO2.js} +5 -3
- package/dist/chunk-AZOSQYIH.js +12754 -0
- package/dist/{chunk-HMBBDY5L.cjs → chunk-EFMMB4QR.cjs} +6 -4
- package/dist/{chunk-JUT6UB4M.js → chunk-Q5PXQJ7M.js} +5 -0
- package/dist/chunk-SCFUDB74.cjs +49 -0
- package/dist/{chunk-LUH5W2Z6.cjs → chunk-U47F4DRS.cjs} +6 -1
- package/dist/{chunk-R5BQJYBX.cjs → chunk-U7UR7AIF.cjs} +4 -2
- package/dist/chunk-Y5VOHJ3P.cjs +12754 -0
- package/dist/{chunk-FTXILLLE.js → chunk-YXBOINV5.js} +4 -2
- package/dist/preset.cjs +77071 -164
- package/dist/preset.js +76959 -57
- package/dist/rules/import.cjs +4 -1
- package/dist/rules/import.js +4 -1
- package/dist/rules/jsx-a11y.cjs +4 -1
- package/dist/rules/jsx-a11y.js +4 -1
- package/dist/rules/react-hooks.cjs +4 -1
- package/dist/rules/react-hooks.js +4 -1
- package/dist/rules/react.cjs +4 -1
- package/dist/rules/react.js +4 -1
- package/dist/rules/storm.cjs +3 -3
- package/dist/rules/storm.js +2 -2
- package/dist/rules/ts-docs.cjs +3 -3
- package/dist/rules/ts-docs.js +2 -2
- package/dist/utils/banner-plugin.cjs +5 -5
- package/dist/utils/banner-plugin.js +4 -4
- package/dist/utils/constants.cjs +3 -3
- package/dist/utils/constants.js +2 -2
- package/dist/utils/create-flat-import-plugin.cjs +4 -1
- package/dist/utils/create-flat-import-plugin.js +4 -1
- package/dist/utils/format-config.cjs +3 -3
- package/dist/utils/format-config.js +2 -2
- package/dist/utils/get-file-banner.cjs +4 -4
- package/dist/utils/get-file-banner.js +3 -3
- package/dist/utils/ignores.cjs +3 -3
- package/dist/utils/ignores.js +2 -2
- package/dist/utils/index.cjs +10 -5
- package/dist/utils/index.js +9 -4
- package/package.json +68 -21
- package/dist/chunk-LFHG33FO.cjs +0 -313
- package/dist/chunk-LSG5T3ZK.js +0 -313
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-USNT2KNT.cjs +0 -6
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk3UUB46KXcjs = require('./chunk-3UUB46KX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');
|
|
7
8
|
|
|
8
9
|
// src/utils/get-file-banner.ts
|
|
9
|
-
|
|
10
|
+
_chunkSCFUDB74cjs.init_cjs_shims.call(void 0, );
|
|
11
|
+
var getFileBanner = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (name = "") => {
|
|
10
12
|
if (!name) {
|
|
11
13
|
name = process.env.STORM_NAMESPACE || "";
|
|
12
14
|
}
|
|
@@ -20,7 +22,7 @@ var getFileBanner = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (name
|
|
|
20
22
|
titleName = titleName.slice(1);
|
|
21
23
|
}
|
|
22
24
|
titleName = (titleName.charAt(0).toUpperCase() + titleName.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
|
|
23
|
-
if (
|
|
25
|
+
if (_chunk3UUB46KXcjs.ACRONYMS_LIST.includes(word.toUpperCase())) {
|
|
24
26
|
return word.toUpperCase();
|
|
25
27
|
}
|
|
26
28
|
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
|
+
}) : x)(function(x) {
|
|
11
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
+
mod
|
|
35
|
+
));
|
|
36
|
+
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js
|
|
38
|
+
var init_cjs_shims = __esm({
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.3.5_@microsoft+api-extractor@7.49.1_@types+node@22.10.7__@swc+core@1.7.26_@swc+helpers_ekim6y52mwpq6ssxiprcp44dam/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');
|
|
4
|
+
|
|
5
|
+
// src/utils/ignores.ts
|
|
6
|
+
_chunkSCFUDB74cjs.init_cjs_shims.call(void 0, );
|
|
2
7
|
var DEFAULT_IGNORES = [
|
|
3
8
|
"**/.git/**",
|
|
4
9
|
"**/node_modules/**",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
var _chunkSCFUDB74cjs = require('./chunk-SCFUDB74.cjs');
|
|
4
5
|
|
|
5
6
|
// src/rules/storm.ts
|
|
6
|
-
|
|
7
|
+
_chunkSCFUDB74cjs.init_cjs_shims.call(void 0, );
|
|
8
|
+
var getStormRulesConfig = /* @__PURE__ */ _chunkSCFUDB74cjs.__name.call(void 0, (options) => {
|
|
7
9
|
let rules = {
|
|
8
10
|
/*************************************************************
|
|
9
11
|
*
|