@storm-software/eslint 0.117.15 → 0.118.1
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-R5BQJYBX.cjs → chunk-KISSHBCD.cjs} +11 -13
- package/dist/{chunk-XMT3QM5B.js → chunk-VIASOXKK.js} +11 -13
- package/dist/preset.cjs +32 -30
- package/dist/preset.d.cts +163 -163
- package/dist/preset.d.ts +163 -163
- package/dist/preset.js +31 -29
- package/dist/rules/import.cjs +0 -1
- package/dist/rules/import.js +0 -1
- package/dist/rules/storm.cjs +2 -2
- package/dist/rules/storm.js +1 -1
- package/dist/rules.d.ts +163 -163
- package/package.json +2 -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 -->
|
|
@@ -373,7 +373,6 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
373
373
|
"error",
|
|
374
374
|
{
|
|
375
375
|
ignore: []
|
|
376
|
-
// WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
|
|
377
376
|
}
|
|
378
377
|
],
|
|
379
378
|
// disallow return/throw/break/continue inside finally blocks
|
|
@@ -792,7 +791,7 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
792
791
|
"no-unused-vars": [
|
|
793
792
|
"error",
|
|
794
793
|
{
|
|
795
|
-
|
|
794
|
+
args: "none"
|
|
796
795
|
}
|
|
797
796
|
],
|
|
798
797
|
// disallow the omission of parentheses when invoking a constructor with no arguments
|
|
@@ -1169,7 +1168,6 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
1169
1168
|
"!",
|
|
1170
1169
|
"/"
|
|
1171
1170
|
]
|
|
1172
|
-
// space here to support sprockets directives, slash for TS /// comments
|
|
1173
1171
|
},
|
|
1174
1172
|
block: {
|
|
1175
1173
|
exceptions: [
|
|
@@ -1229,7 +1227,7 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
1229
1227
|
"@typescript-eslint/no-unused-vars": [
|
|
1230
1228
|
"error",
|
|
1231
1229
|
{
|
|
1232
|
-
|
|
1230
|
+
args: "none",
|
|
1233
1231
|
varsIgnorePattern: "^_"
|
|
1234
1232
|
}
|
|
1235
1233
|
],
|
|
@@ -1244,31 +1242,31 @@ var getStormRulesConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
1244
1242
|
"@typescript-eslint/no-restricted-imports": [
|
|
1245
1243
|
"error",
|
|
1246
1244
|
{
|
|
1247
|
-
|
|
1245
|
+
patterns: [
|
|
1248
1246
|
{
|
|
1249
|
-
|
|
1247
|
+
group: [
|
|
1250
1248
|
"nx/src/plugins/js*"
|
|
1251
1249
|
],
|
|
1252
|
-
|
|
1250
|
+
message: "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
|
|
1253
1251
|
},
|
|
1254
1252
|
{
|
|
1255
|
-
|
|
1253
|
+
group: [
|
|
1256
1254
|
"**/native-bindings",
|
|
1257
1255
|
"**/native-bindings.js"
|
|
1258
1256
|
],
|
|
1259
|
-
|
|
1257
|
+
message: "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
|
|
1260
1258
|
},
|
|
1261
1259
|
{
|
|
1262
|
-
|
|
1260
|
+
group: [
|
|
1263
1261
|
"create-storm-workspace"
|
|
1264
1262
|
],
|
|
1265
|
-
|
|
1263
|
+
message: "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
|
|
1266
1264
|
},
|
|
1267
1265
|
{
|
|
1268
|
-
|
|
1266
|
+
group: [
|
|
1269
1267
|
"create-nx-workspace"
|
|
1270
1268
|
],
|
|
1271
|
-
|
|
1269
|
+
message: "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
|
|
1272
1270
|
}
|
|
1273
1271
|
]
|
|
1274
1272
|
}
|
|
@@ -373,7 +373,6 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
373
373
|
"error",
|
|
374
374
|
{
|
|
375
375
|
ignore: []
|
|
376
|
-
// WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement
|
|
377
376
|
}
|
|
378
377
|
],
|
|
379
378
|
// disallow return/throw/break/continue inside finally blocks
|
|
@@ -792,7 +791,7 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
792
791
|
"no-unused-vars": [
|
|
793
792
|
"error",
|
|
794
793
|
{
|
|
795
|
-
|
|
794
|
+
args: "none"
|
|
796
795
|
}
|
|
797
796
|
],
|
|
798
797
|
// disallow the omission of parentheses when invoking a constructor with no arguments
|
|
@@ -1169,7 +1168,6 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
1169
1168
|
"!",
|
|
1170
1169
|
"/"
|
|
1171
1170
|
]
|
|
1172
|
-
// space here to support sprockets directives, slash for TS /// comments
|
|
1173
1171
|
},
|
|
1174
1172
|
block: {
|
|
1175
1173
|
exceptions: [
|
|
@@ -1229,7 +1227,7 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
1229
1227
|
"@typescript-eslint/no-unused-vars": [
|
|
1230
1228
|
"error",
|
|
1231
1229
|
{
|
|
1232
|
-
|
|
1230
|
+
args: "none",
|
|
1233
1231
|
varsIgnorePattern: "^_"
|
|
1234
1232
|
}
|
|
1235
1233
|
],
|
|
@@ -1244,31 +1242,31 @@ var getStormRulesConfig = /* @__PURE__ */ __name((options) => {
|
|
|
1244
1242
|
"@typescript-eslint/no-restricted-imports": [
|
|
1245
1243
|
"error",
|
|
1246
1244
|
{
|
|
1247
|
-
|
|
1245
|
+
patterns: [
|
|
1248
1246
|
{
|
|
1249
|
-
|
|
1247
|
+
group: [
|
|
1250
1248
|
"nx/src/plugins/js*"
|
|
1251
1249
|
],
|
|
1252
|
-
|
|
1250
|
+
message: "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
|
|
1253
1251
|
},
|
|
1254
1252
|
{
|
|
1255
|
-
|
|
1253
|
+
group: [
|
|
1256
1254
|
"**/native-bindings",
|
|
1257
1255
|
"**/native-bindings.js"
|
|
1258
1256
|
],
|
|
1259
|
-
|
|
1257
|
+
message: "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
|
|
1260
1258
|
},
|
|
1261
1259
|
{
|
|
1262
|
-
|
|
1260
|
+
group: [
|
|
1263
1261
|
"create-storm-workspace"
|
|
1264
1262
|
],
|
|
1265
|
-
|
|
1263
|
+
message: "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
|
|
1266
1264
|
},
|
|
1267
1265
|
{
|
|
1268
|
-
|
|
1266
|
+
group: [
|
|
1269
1267
|
"create-nx-workspace"
|
|
1270
1268
|
],
|
|
1271
|
-
|
|
1269
|
+
message: "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
|
|
1272
1270
|
}
|
|
1273
1271
|
]
|
|
1274
1272
|
}
|
package/dist/preset.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
|
|
|
6
6
|
var _chunkLUH5W2Z6cjs = require('./chunk-LUH5W2Z6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkKISSHBCDcjs = require('./chunk-KISSHBCD.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkJS7W7LMDcjs = require('./chunk-JS7W7LMD.cjs');
|
|
@@ -137,7 +137,7 @@ var RegistryConfigSchema = _zod2.default.object({
|
|
|
137
137
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(MultiThemeColorConfigSchema).describe("Colors used for various workspace elements");
|
|
138
138
|
var ColorConfigMapSchema = _zod2.default.union([
|
|
139
139
|
_zod2.default.object({
|
|
140
|
-
|
|
140
|
+
base: ColorConfigSchema
|
|
141
141
|
}),
|
|
142
142
|
_zod2.default.record(_zod2.default.string(), ColorConfigSchema)
|
|
143
143
|
]);
|
|
@@ -421,31 +421,31 @@ _chunkUSNT2KNTcjs.__name.call(void 0, findWorkspaceRoot, "findWorkspaceRoot");
|
|
|
421
421
|
|
|
422
422
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
423
423
|
var DEFAULT_COLOR_CONFIG = {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
424
|
+
light: {
|
|
425
|
+
background: "#fafafa",
|
|
426
|
+
foreground: "#1d1e22",
|
|
427
|
+
brand: "#1fb2a6",
|
|
428
|
+
alternate: "#db2777",
|
|
429
|
+
help: "#5C4EE5",
|
|
430
|
+
success: "#087f5b",
|
|
431
|
+
info: "#0550ae",
|
|
432
|
+
warning: "#e3b341",
|
|
433
|
+
danger: "#D8314A",
|
|
434
|
+
positive: "#22c55e",
|
|
435
|
+
negative: "#dc2626"
|
|
436
436
|
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
437
|
+
dark: {
|
|
438
|
+
background: "#1d1e22",
|
|
439
|
+
foreground: "#cbd5e1",
|
|
440
|
+
brand: "#2dd4bf",
|
|
441
|
+
alternate: "#db2777",
|
|
442
|
+
help: "#818cf8",
|
|
443
|
+
success: "#10b981",
|
|
444
|
+
info: "#58a6ff",
|
|
445
|
+
warning: "#f3d371",
|
|
446
|
+
danger: "#D8314A",
|
|
447
|
+
positive: "#22c55e",
|
|
448
|
+
negative: "#dc2626"
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
|
|
@@ -636,6 +636,7 @@ var _recommended3 = require('eslint-plugin-prettier/recommended'); var _recommen
|
|
|
636
636
|
var _eslintpluginreact = require('eslint-plugin-react'); var _eslintpluginreact2 = _interopRequireDefault(_eslintpluginreact);
|
|
637
637
|
var _eslintpluginreactcompiler = require('eslint-plugin-react-compiler'); var _eslintpluginreactcompiler2 = _interopRequireDefault(_eslintpluginreactcompiler);
|
|
638
638
|
var _eslintpluginreacthooks = require('eslint-plugin-react-hooks'); var _eslintpluginreacthooks2 = _interopRequireDefault(_eslintpluginreacthooks);
|
|
639
|
+
var _eslintpluginstorybook = require('eslint-plugin-storybook'); var _eslintpluginstorybook2 = _interopRequireDefault(_eslintpluginstorybook);
|
|
639
640
|
var _eslintplugintsdoc = require('eslint-plugin-tsdoc'); var _eslintplugintsdoc2 = _interopRequireDefault(_eslintplugintsdoc);
|
|
640
641
|
var _eslintpluginunicorn = require('eslint-plugin-unicorn'); var _eslintpluginunicorn2 = _interopRequireDefault(_eslintpluginunicorn);
|
|
641
642
|
var _eslintpluginyml = require('eslint-plugin-yml'); var _eslintpluginyml2 = _interopRequireDefault(_eslintpluginyml);
|
|
@@ -689,7 +690,7 @@ function getStormConfig(options = {
|
|
|
689
690
|
"json/json": [
|
|
690
691
|
"warn",
|
|
691
692
|
{
|
|
692
|
-
|
|
693
|
+
allowComments: true
|
|
693
694
|
}
|
|
694
695
|
]
|
|
695
696
|
}
|
|
@@ -812,7 +813,7 @@ function getStormConfig(options = {
|
|
|
812
813
|
{
|
|
813
814
|
..._optionalChain([_eslintpluginreact2.default, 'access', _26 => _26.configs, 'optionalAccess', _27 => _27.recommended]),
|
|
814
815
|
plugins: {
|
|
815
|
-
|
|
816
|
+
react: _eslintpluginreact2.default
|
|
816
817
|
},
|
|
817
818
|
files: [
|
|
818
819
|
"**/*.tsx"
|
|
@@ -842,6 +843,7 @@ function getStormConfig(options = {
|
|
|
842
843
|
}
|
|
843
844
|
});
|
|
844
845
|
}
|
|
846
|
+
reactConfigs.push(_eslintpluginstorybook2.default.configs["flat/recommended"]);
|
|
845
847
|
configs.push(...reactConfigs);
|
|
846
848
|
}
|
|
847
849
|
if (options.nextFiles && options.nextFiles.length > 0) {
|
|
@@ -863,7 +865,7 @@ function getStormConfig(options = {
|
|
|
863
865
|
..._globals2.default.browser,
|
|
864
866
|
..._globals2.default.node,
|
|
865
867
|
...globals,
|
|
866
|
-
|
|
868
|
+
window: "readonly"
|
|
867
869
|
},
|
|
868
870
|
parserOptions: {
|
|
869
871
|
projectService: true,
|
|
@@ -873,7 +875,7 @@ function getStormConfig(options = {
|
|
|
873
875
|
}
|
|
874
876
|
},
|
|
875
877
|
rules: {
|
|
876
|
-
...
|
|
878
|
+
..._chunkKISSHBCDcjs.getStormRulesConfig.call(void 0, {
|
|
877
879
|
...options,
|
|
878
880
|
typescriptEslintConfigType,
|
|
879
881
|
useUnicorn,
|