@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 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
- [![Version](https://img.shields.io/badge/version-0.117.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.118.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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
- "args": "none"
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
- "args": "none",
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
- "patterns": [
1245
+ patterns: [
1248
1246
  {
1249
- "group": [
1247
+ group: [
1250
1248
  "nx/src/plugins/js*"
1251
1249
  ],
1252
- "message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1250
+ message: "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1253
1251
  },
1254
1252
  {
1255
- "group": [
1253
+ group: [
1256
1254
  "**/native-bindings",
1257
1255
  "**/native-bindings.js"
1258
1256
  ],
1259
- "message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1257
+ message: "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1260
1258
  },
1261
1259
  {
1262
- "group": [
1260
+ group: [
1263
1261
  "create-storm-workspace"
1264
1262
  ],
1265
- "message": "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
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
- "group": [
1266
+ group: [
1269
1267
  "create-nx-workspace"
1270
1268
  ],
1271
- "message": "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
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
- "args": "none"
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
- "args": "none",
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
- "patterns": [
1245
+ patterns: [
1248
1246
  {
1249
- "group": [
1247
+ group: [
1250
1248
  "nx/src/plugins/js*"
1251
1249
  ],
1252
- "message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1250
+ message: "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1253
1251
  },
1254
1252
  {
1255
- "group": [
1253
+ group: [
1256
1254
  "**/native-bindings",
1257
1255
  "**/native-bindings.js"
1258
1256
  ],
1259
- "message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1257
+ message: "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1260
1258
  },
1261
1259
  {
1262
- "group": [
1260
+ group: [
1263
1261
  "create-storm-workspace"
1264
1262
  ],
1265
- "message": "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
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
- "group": [
1266
+ group: [
1269
1267
  "create-nx-workspace"
1270
1268
  ],
1271
- "message": "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
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 _chunkR5BQJYBXcjs = require('./chunk-R5BQJYBX.cjs');
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
- "base": ColorConfigSchema
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
- "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"
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
- "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"
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
- "allowComments": true
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
- "react": _eslintpluginreact2.default
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
- "window": "readonly"
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
- ..._chunkR5BQJYBXcjs.getStormRulesConfig.call(void 0, {
878
+ ..._chunkKISSHBCDcjs.getStormRulesConfig.call(void 0, {
877
879
  ...options,
878
880
  typescriptEslintConfigType,
879
881
  useUnicorn,