@storm-software/eslint 0.109.4 → 0.110.0
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/preset.cjs +15 -14
- package/dist/preset.js +15 -14
- package/dist/utils/index.cjs +2 -2
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
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 -->
|
package/dist/preset.cjs
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
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 _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
3
|
var _chunkR5BQJYBXcjs = require('./chunk-R5BQJYBX.cjs');
|
|
10
4
|
|
|
11
5
|
|
|
@@ -16,11 +10,17 @@ var _chunkLFHG33FOcjs = require('./chunk-LFHG33FO.cjs');
|
|
|
16
10
|
require('./chunk-HMBBDY5L.cjs');
|
|
17
11
|
|
|
18
12
|
|
|
13
|
+
var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
|
|
22
19
|
|
|
23
20
|
|
|
21
|
+
var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
24
|
var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
|
|
25
25
|
|
|
26
26
|
// src/preset.ts
|
|
@@ -379,7 +379,8 @@ var CONSOLE_ICONS = {
|
|
|
379
379
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
380
380
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
381
381
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
382
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
382
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
383
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
383
384
|
};
|
|
384
385
|
|
|
385
386
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -423,48 +424,48 @@ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel =
|
|
|
423
424
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
424
425
|
return (message) => {
|
|
425
426
|
console.error(`
|
|
426
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
427
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
427
428
|
`);
|
|
428
429
|
};
|
|
429
430
|
}
|
|
430
431
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
431
432
|
return (message) => {
|
|
432
433
|
console.error(`
|
|
433
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
434
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
434
435
|
`);
|
|
435
436
|
};
|
|
436
437
|
}
|
|
437
438
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
438
439
|
return (message) => {
|
|
439
440
|
console.warn(`
|
|
440
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
441
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
441
442
|
`);
|
|
442
443
|
};
|
|
443
444
|
}
|
|
444
445
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
445
446
|
return (message) => {
|
|
446
447
|
console.info(`
|
|
447
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
448
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
448
449
|
`);
|
|
449
450
|
};
|
|
450
451
|
}
|
|
451
452
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
452
453
|
return (message) => {
|
|
453
454
|
console.info(`
|
|
454
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
455
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
455
456
|
`);
|
|
456
457
|
};
|
|
457
458
|
}
|
|
458
459
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
459
460
|
return (message) => {
|
|
460
461
|
console.debug(`
|
|
461
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
462
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
462
463
|
`);
|
|
463
464
|
};
|
|
464
465
|
}
|
|
465
466
|
return (message) => {
|
|
466
467
|
console.log(`
|
|
467
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
468
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
468
469
|
`);
|
|
469
470
|
};
|
|
470
471
|
}, "getLogFn");
|
package/dist/preset.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
formatConfig
|
|
3
|
-
} from "./chunk-FTXILLLE.js";
|
|
4
|
-
import {
|
|
5
|
-
ignores
|
|
6
|
-
} from "./chunk-VJ6CKC4P.js";
|
|
7
1
|
import {
|
|
8
2
|
getStormRulesConfig
|
|
9
3
|
} from "./chunk-XMT3QM5B.js";
|
|
@@ -14,11 +8,17 @@ import {
|
|
|
14
8
|
banner_plugin_default
|
|
15
9
|
} from "./chunk-LSG5T3ZK.js";
|
|
16
10
|
import "./chunk-Y67QTC5U.js";
|
|
11
|
+
import {
|
|
12
|
+
formatConfig
|
|
13
|
+
} from "./chunk-FTXILLLE.js";
|
|
17
14
|
import {
|
|
18
15
|
CODE_BLOCK,
|
|
19
16
|
CODE_FILE,
|
|
20
17
|
TS_FILE
|
|
21
18
|
} from "./chunk-RTM5LCEB.js";
|
|
19
|
+
import {
|
|
20
|
+
ignores
|
|
21
|
+
} from "./chunk-VJ6CKC4P.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -379,7 +379,8 @@ var CONSOLE_ICONS = {
|
|
|
379
379
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
380
380
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
381
381
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
382
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
382
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
383
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
383
384
|
};
|
|
384
385
|
|
|
385
386
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -423,48 +424,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
423
424
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
424
425
|
return (message) => {
|
|
425
426
|
console.error(`
|
|
426
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
427
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
427
428
|
`);
|
|
428
429
|
};
|
|
429
430
|
}
|
|
430
431
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
431
432
|
return (message) => {
|
|
432
433
|
console.error(`
|
|
433
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
434
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
434
435
|
`);
|
|
435
436
|
};
|
|
436
437
|
}
|
|
437
438
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
438
439
|
return (message) => {
|
|
439
440
|
console.warn(`
|
|
440
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
441
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
441
442
|
`);
|
|
442
443
|
};
|
|
443
444
|
}
|
|
444
445
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
445
446
|
return (message) => {
|
|
446
447
|
console.info(`
|
|
447
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
448
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
448
449
|
`);
|
|
449
450
|
};
|
|
450
451
|
}
|
|
451
452
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
452
453
|
return (message) => {
|
|
453
454
|
console.info(`
|
|
454
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
455
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
455
456
|
`);
|
|
456
457
|
};
|
|
457
458
|
}
|
|
458
459
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
459
460
|
return (message) => {
|
|
460
461
|
console.debug(`
|
|
461
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
462
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
462
463
|
`);
|
|
463
464
|
};
|
|
464
465
|
}
|
|
465
466
|
return (message) => {
|
|
466
467
|
console.log(`
|
|
467
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
468
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
468
469
|
`);
|
|
469
470
|
};
|
|
470
471
|
}, "getLogFn");
|
package/dist/utils/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
|
|
7
6
|
|
|
8
7
|
|
|
9
8
|
|
|
@@ -13,9 +12,10 @@ var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
|
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
15
|
+
var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
|
|
19
19
|
require('../chunk-USNT2KNT.cjs');
|
|
20
20
|
|
|
21
21
|
|
package/dist/utils/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatConfig
|
|
3
3
|
} from "../chunk-FTXILLLE.js";
|
|
4
|
-
import {
|
|
5
|
-
ignores
|
|
6
|
-
} from "../chunk-VJ6CKC4P.js";
|
|
7
4
|
import {
|
|
8
5
|
ACRONYMS_LIST,
|
|
9
6
|
CODE_BLOCK,
|
|
@@ -16,6 +13,9 @@ import {
|
|
|
16
13
|
RESTRICTED_SYNTAX,
|
|
17
14
|
TS_FILE
|
|
18
15
|
} from "../chunk-RTM5LCEB.js";
|
|
16
|
+
import {
|
|
17
|
+
ignores
|
|
18
|
+
} from "../chunk-VJ6CKC4P.js";
|
|
19
19
|
import "../chunk-SHUYVCID.js";
|
|
20
20
|
export {
|
|
21
21
|
ACRONYMS_LIST,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@storm-software/eslint","version":"0.
|
|
1
|
+
{"name":"@storm-software/eslint","version":"0.110.0","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"}}
|