@storm-software/eslint 0.35.0 β†’ 0.36.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/preset.mjs +333 -112
  3. package/package.json +5 -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
- [![Version](https://img.shields.io/badge/version-0.32.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)
24
+ [![Version](https://img.shields.io/badge/version-0.36.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 -->
package/dist/preset.mjs CHANGED
@@ -337,7 +337,7 @@ var src = {
337
337
 
338
338
  const eslint = /*@__PURE__*/getDefaultExportFromCjs(src);
339
339
 
340
- const config$3 = {
340
+ const config$4 = {
341
341
  // This rule has been deprecated, but not yet removed.
342
342
  "jsx-a11y/no-onchange": "off",
343
343
  // ensure emoji are accessible
@@ -612,7 +612,7 @@ const config$3 = {
612
612
  "jsx-a11y/prefer-tag-over-role": "off"
613
613
  };
614
614
 
615
- const config$2 = {
615
+ const config$3 = {
616
616
  // We recommend using TypeScript over `prop-types`, as `prop-types` can add
617
617
  // to a project's build size.
618
618
  "react/prop-types": "off",
@@ -1177,7 +1177,7 @@ const config$2 = {
1177
1177
  ]
1178
1178
  };
1179
1179
 
1180
- const config$1 = {
1180
+ const config$2 = {
1181
1181
  // Enforce Rules of Hooks
1182
1182
  // https://github.com/facebook/react/blob/c11015ff4f610ac2924d1fc6d569a17657a404fd/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
1183
1183
  "react-hooks/rules-of-hooks": "error",
@@ -1186,6 +1186,300 @@ const config$1 = {
1186
1186
  "react-hooks/exhaustive-deps": "warn"
1187
1187
  };
1188
1188
 
1189
+ const config$1 = {
1190
+ /**
1191
+ * Require return statements in array methods callbacks.
1192
+ *
1193
+ * 🚫 Not fixable -https://eslint.org/docs/rules/array-callback-return
1194
+ */
1195
+ "array-callback-return": ["error", { allowImplicit: true }],
1196
+ /**
1197
+ * Treat `var` statements as if they were block scoped.
1198
+ *
1199
+ * 🚫 Not fixable - https://eslint.org/docs/rules/block-scoped-var
1200
+ */
1201
+ "block-scoped-var": "error",
1202
+ /**
1203
+ * Require curly braces for multiline blocks.
1204
+ *
1205
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/curly
1206
+ */
1207
+ curly: ["warn", "multi-line"],
1208
+ /**
1209
+ * Require default clauses in switch statements to be last (if used).
1210
+ *
1211
+ * 🚫 Not fixable - https://eslint.org/docs/rules/default-case-last
1212
+ */
1213
+ "default-case-last": "error",
1214
+ /**
1215
+ * Require triple equals (`===` and `!==`).
1216
+ *
1217
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/eqeqeq
1218
+ */
1219
+ eqeqeq: "error",
1220
+ /**
1221
+ * Require grouped accessor pairs in object literals and classes.
1222
+ *
1223
+ * 🚫 Not fixable - https://eslint.org/docs/rules/grouped-accessor-pairs
1224
+ */
1225
+ "grouped-accessor-pairs": "error",
1226
+ /**
1227
+ * Disallow use of `alert()`.
1228
+ *
1229
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-alert
1230
+ */
1231
+ "no-alert": "error",
1232
+ /**
1233
+ * Disallow use of `caller`/`callee`.
1234
+ *
1235
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-caller
1236
+ */
1237
+ "no-caller": "error",
1238
+ /**
1239
+ * Disallow returning value in constructor.
1240
+ *
1241
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-constructor-return
1242
+ */
1243
+ "no-constructor-return": "error",
1244
+ /**
1245
+ * Disallow using an `else` if the `if` block contains a return.
1246
+ *
1247
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/no-else-return
1248
+ */
1249
+ "no-else-return": "warn",
1250
+ /**
1251
+ * Disallow `eval()`.
1252
+ *
1253
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-eval
1254
+ */
1255
+ "no-eval": "error",
1256
+ /**
1257
+ * Disallow extending native objects.
1258
+ *
1259
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-extend-native
1260
+ */
1261
+ "no-extend-native": "error",
1262
+ /**
1263
+ * Disallow unnecessary function binding.
1264
+ *
1265
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/no-extra-bind
1266
+ */
1267
+ "no-extra-bind": "error",
1268
+ /**
1269
+ * Disallow unnecessary labels.
1270
+ *
1271
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/no-extra-label
1272
+ */
1273
+ "no-extra-label": "error",
1274
+ /**
1275
+ * Disallow floating decimals.
1276
+ *
1277
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/no-floating-decimal
1278
+ */
1279
+ "no-floating-decimal": "error",
1280
+ /**
1281
+ * Make people convert types explicitly e.g. `Boolean(foo)` instead of `!!foo`.
1282
+ *
1283
+ * πŸ”§ Partially Fixable - https://eslint.org/docs/rules/no-implicit-coercion
1284
+ */
1285
+ "no-implicit-coercion": "error",
1286
+ /**
1287
+ * Disallow use of `eval()`-like methods.
1288
+ *
1289
+ * https://eslint.org/docs/rules/no-implied-eval
1290
+ */
1291
+ "no-implied-eval": "error",
1292
+ /**
1293
+ * Disallow usage of `__iterator__` property.
1294
+ *
1295
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-iterator
1296
+ */
1297
+ "no-iterator": "error",
1298
+ /**
1299
+ * Disallow use of labels for anything other than loops and switches.
1300
+ *
1301
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-labels
1302
+ */
1303
+ "no-labels": ["error"],
1304
+ /**
1305
+ * Disallow unnecessary nested blocks.
1306
+ *
1307
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-lone-blocks
1308
+ */
1309
+ "no-lone-blocks": "error",
1310
+ /**
1311
+ * Disallow `new` for side effects.
1312
+ *
1313
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new
1314
+ */
1315
+ "no-new": "error",
1316
+ /**
1317
+ * Disallow function constructors.
1318
+ *
1319
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-func
1320
+ */
1321
+ "no-new-func": "error",
1322
+ /**
1323
+ * Disallow base types wrapper instances, such as `new String('foo')`.
1324
+ *
1325
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-new-wrappers
1326
+ */
1327
+ "no-new-wrappers": "error",
1328
+ /**
1329
+ * Disallow use of octal escape sequences in string literals.
1330
+ *
1331
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-octal-escape
1332
+ */
1333
+ "no-octal-escape": "error",
1334
+ /**
1335
+ * Disallow reassignment of function parameters.
1336
+ *
1337
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-param-reassign
1338
+ */
1339
+ "no-param-reassign": "error",
1340
+ /**
1341
+ * Disallow usage of the deprecated `__proto__` property.
1342
+ *
1343
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-proto
1344
+ */
1345
+ "no-proto": "error",
1346
+ /**
1347
+ * Disallow assignment in `return` statement.
1348
+ *
1349
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-assign
1350
+ */
1351
+ "no-return-assign": "error",
1352
+ /**
1353
+ * Disallows unnecessary `return await`.
1354
+ *
1355
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-return-await
1356
+ */
1357
+ "no-return-await": "error",
1358
+ /**
1359
+ * Disallow use of `javascript:` urls.
1360
+ *
1361
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-script-url
1362
+ */
1363
+ "no-script-url": "error",
1364
+ /**
1365
+ * Disallow comparisons where both sides are exactly the same.
1366
+ *
1367
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-self-compare
1368
+ */
1369
+ "no-self-compare": "error",
1370
+ /**
1371
+ * Disallow use of comma operator.
1372
+ *
1373
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-sequences
1374
+ */
1375
+ "no-sequences": "error",
1376
+ /**
1377
+ * Disallow unnecessary `.call()` and `.apply()`.
1378
+ *
1379
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-call
1380
+ */
1381
+ "no-useless-call": "error",
1382
+ /**
1383
+ * Disallow unnecessary concatenation of strings.
1384
+ *
1385
+ * 🚫 Not fixable - https://eslint.org/docs/rules/no-useless-concat
1386
+ */
1387
+ "no-useless-concat": "error",
1388
+ /**
1389
+ * Disallow redundant return statements.
1390
+ *
1391
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/no-useless-return
1392
+ */
1393
+ "no-useless-return": "warn",
1394
+ /**
1395
+ * Require using named capture groups in regular expressions.
1396
+ *
1397
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-named-capture-group
1398
+ */
1399
+ "prefer-named-capture-group": "error",
1400
+ /**
1401
+ * Require using Error objects as Promise rejection reasons.
1402
+ *
1403
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-promise-reject-errors
1404
+ */
1405
+ "prefer-promise-reject-errors": ["error", { allowEmptyReject: true }],
1406
+ /**
1407
+ * Disallow use of the RegExp constructor in favor of regular expression
1408
+ * literals.
1409
+ *
1410
+ * 🚫 Not fixable - https://eslint.org/docs/rules/prefer-regex-literals
1411
+ */
1412
+ "prefer-regex-literals": "error",
1413
+ /**
1414
+ * Disallow "Yoda conditions", ensuring the comparison.
1415
+ *
1416
+ * πŸ”§ Fixable - https://eslint.org/docs/rules/yoda
1417
+ */
1418
+ yoda: "warn",
1419
+ "unicorn/number-literal-case": "off",
1420
+ "unicorn/template-indent": "off",
1421
+ "unicorn/prevent-abbreviations": "off",
1422
+ "unicorn/no-await-expression-member": "off",
1423
+ "unicorn/no-useless-undefined": "off",
1424
+ "unicorn/no-array-push-push": "off",
1425
+ "unicorn/no-array-reduce": "off",
1426
+ "unicorn/no-useless-switch-case": "off",
1427
+ "@typescript-eslint/no-explicit-any": "off",
1428
+ "@typescript-eslint/no-empty-function": "off",
1429
+ "@typescript-eslint/no-var-requires": "off",
1430
+ "@typescript-eslint/ban-ts-comment": "off",
1431
+ "@typescript-eslint/no-empty-interface": "off",
1432
+ "@typescript-eslint/explicit-module-boundary-types": "off",
1433
+ "@typescript-eslint/explicit-function-return-type": "off",
1434
+ "@typescript-eslint/no-unused-vars": [
1435
+ "warn",
1436
+ { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }
1437
+ ],
1438
+ "unicorn/prefer-string-replace-all": "off",
1439
+ "unicorn/no-abusive-eslint-disable": "off",
1440
+ "unicorn/import-style": "off",
1441
+ "unicorn/prefer-module": "off",
1442
+ "unicorn/consistent-function-scoping": "off",
1443
+ "class-methods-use-this": "off",
1444
+ "@typescript-eslint/no-restricted-imports": [
1445
+ "error",
1446
+ {
1447
+ "patterns": [
1448
+ {
1449
+ "group": ["nx/src/plugins/js*"],
1450
+ "message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
1451
+ },
1452
+ {
1453
+ "group": ["**/native-bindings", "**/native-bindings.js"],
1454
+ "message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
1455
+ },
1456
+ {
1457
+ "group": ["create-storm-workspace"],
1458
+ "message": "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
1459
+ },
1460
+ {
1461
+ "group": ["create-nx-workspace"],
1462
+ "message": "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
1463
+ }
1464
+ ]
1465
+ }
1466
+ ],
1467
+ "@nx/enforce-module-boundaries": [
1468
+ "error",
1469
+ {
1470
+ enforceBuildableLibDependency: true,
1471
+ checkDynamicDependenciesExceptions: [".*"],
1472
+ allow: [],
1473
+ depConstraints: [
1474
+ {
1475
+ sourceTag: "*",
1476
+ onlyDependOnLibsWithTags: ["*"]
1477
+ }
1478
+ ]
1479
+ }
1480
+ ]
1481
+ };
1482
+
1189
1483
  const config = {
1190
1484
  /**
1191
1485
  * Require TSDoc comments conform to the TSDoc specification.
@@ -12629,67 +12923,11 @@ const formatConfig = (name, config = []) => {
12629
12923
  });
12630
12924
  };
12631
12925
 
12632
- const DEFAULT_TYPESCRIPT_RULES = {
12633
- "unicorn/number-literal-case": 0,
12634
- "unicorn/template-indent": 0,
12635
- "unicorn/prevent-abbreviations": 0,
12636
- "unicorn/no-await-expression-member": 0,
12637
- "unicorn/no-useless-undefined": 0,
12638
- "unicorn/no-array-push-push": 0,
12639
- "unicorn/no-array-reduce": 0,
12640
- "unicorn/no-useless-switch-case": 0,
12641
- "@typescript-eslint/no-explicit-any": 0,
12642
- "@typescript-eslint/no-empty-function": 0,
12643
- "@typescript-eslint/no-var-requires": 0,
12644
- "@typescript-eslint/ban-ts-comment": 0,
12645
- "@typescript-eslint/no-empty-interface": 0,
12646
- "@typescript-eslint/explicit-module-boundary-types": 0,
12647
- "@typescript-eslint/explicit-function-return-type": 0,
12648
- "@typescript-eslint/no-unused-vars": [
12649
- "warn",
12650
- { varsIgnorePattern: "^_", argsIgnorePattern: "^_" }
12651
- ],
12652
- "unicorn/prefer-string-replace-all": 0,
12653
- "unicorn/no-abusive-eslint-disable": 0,
12654
- "unicorn/import-style": 0,
12655
- "unicorn/prefer-module": 0,
12656
- "unicorn/consistent-function-scoping": 0,
12657
- "class-methods-use-this": 0,
12658
- "@typescript-eslint/no-restricted-imports": [
12659
- "error",
12660
- {
12661
- "patterns": [
12662
- {
12663
- "group": ["nx/src/plugins/js*"],
12664
- "message": "Imports from 'nx/src/plugins/js' are not allowed. Use '@nx/js' instead"
12665
- },
12666
- {
12667
- "group": ["**/native-bindings", "**/native-bindings.js"],
12668
- "message": "Direct imports from native-bindings.js are not allowed. Import from index.js instead."
12669
- },
12670
- {
12671
- "group": ["create-storm-workspace"],
12672
- "message": "Direct imports from `create-storm-workspace` are not allowed. Instead install this package globally (example: 'npm i create-storm-workspace -g')."
12673
- },
12674
- {
12675
- "group": ["create-nx-workspace"],
12676
- "message": "Direct imports from `create-nx-workspace` are not allowed. Instead install this package globally (example: 'npm i create-nx-workspace -g')."
12677
- }
12678
- ]
12679
- }
12680
- ]
12681
- };
12682
12926
  function stormPreset(options = {
12683
- moduleBoundaries: {
12684
- enforceBuildableLibDependency: true,
12685
- allow: [],
12686
- depConstraints: [
12687
- {
12688
- sourceTag: "*",
12689
- onlyDependOnLibsWithTags: ["*"]
12690
- }
12691
- ]
12692
- }
12927
+ rules: {},
12928
+ ignores: [],
12929
+ markdown: {},
12930
+ react: {}
12693
12931
  }, ...userConfigs) {
12694
12932
  const configs = [
12695
12933
  // https://eslint.org/docs/latest/rules/
@@ -12700,11 +12938,6 @@ function stormPreset(options = {
12700
12938
  eslintPluginUnicorn.configs["flat/recommended"],
12701
12939
  // Prettier
12702
12940
  prettierConfig,
12703
- // React
12704
- // https://www.npmjs.com/package/eslint-plugin-react
12705
- options.react !== false && {
12706
- plugins: { react, "react-hooks": reactHooks, "jsx-a11y": jsxA11y }
12707
- },
12708
12941
  // Import
12709
12942
  // https://www.npmjs.com/package/eslint-plugin-import
12710
12943
  // { plugins: { import: importEslint } },
@@ -12766,7 +12999,9 @@ function stormPreset(options = {
12766
12999
  ...userConfigs
12767
13000
  ].filter(Boolean);
12768
13001
  const typescriptConfig = {
13002
+ // https://typescript-eslint.io/
12769
13003
  ...tsEslint$1.configs.stylisticTypeChecked,
13004
+ // https://www.npmjs.com/package/eslint-plugin-unicorn
12770
13005
  ...eslintPluginUnicorn.configs["flat/recommended"],
12771
13006
  files: [CODE_FILE],
12772
13007
  languageOptions: {
@@ -12797,73 +13032,59 @@ function stormPreset(options = {
12797
13032
  ...eslintPluginUnicorn.configs["flat/recommended"].rules,
12798
13033
  // Banner
12799
13034
  ...plugin.configs["recommended"][1].rules,
12800
- // NX
12801
- "@nx/enforce-module-boundaries": [
12802
- "error",
12803
- options.moduleBoundaries ? options.moduleBoundaries : {
12804
- enforceBuildableLibDependency: true,
12805
- checkDynamicDependenciesExceptions: [".*"],
12806
- allow: [],
12807
- depConstraints: [
12808
- {
12809
- sourceTag: "*",
12810
- onlyDependOnLibsWithTags: ["*"]
12811
- }
12812
- ]
12813
- }
12814
- ],
12815
- ...DEFAULT_TYPESCRIPT_RULES,
12816
- ...options.typescript ?? {}
13035
+ ...config$1,
13036
+ ...options.rules ?? {}
12817
13037
  },
12818
13038
  ignores: ["dist", "coverage", "tmp", ...options.ignores || []]
12819
13039
  };
12820
- if (options.react !== false) {
13040
+ if (options.react) {
13041
+ typescriptConfig.plugins = {
13042
+ ...typescriptConfig.plugins,
13043
+ react,
13044
+ "react-hooks": reactHooks,
13045
+ "jsx-a11y": jsxA11y
13046
+ };
12821
13047
  typescriptConfig.rules = {
12822
13048
  ...typescriptConfig.rules,
12823
13049
  // React
13050
+ ...config$3,
12824
13051
  ...config$2,
12825
- ...config$1,
12826
- ...config$3
13052
+ ...config$4,
13053
+ ...options.react
12827
13054
  };
12828
- if (options.react?.rules) {
12829
- typescriptConfig.rules = {
12830
- ...typescriptConfig.rules,
12831
- ...options.react.rules
12832
- };
12833
- }
12834
13055
  }
12835
13056
  configs.push(typescriptConfig);
12836
- if (options.markdown !== false) {
13057
+ if (options.markdown) {
12837
13058
  configs.push(...markdown.configs.recommended);
12838
13059
  configs.push({
12839
13060
  files: [CODE_BLOCK],
12840
13061
  processor: "markdown/markdown",
12841
13062
  rules: {
12842
- "unicorn/filename-case": 0,
12843
- "no-undef": 0,
12844
- "no-unused-expressions": 0,
12845
- "padded-blocks": 0,
12846
- "no-empty-pattern": 0,
12847
- "no-redeclare": 0,
12848
- "no-import-assign": 0,
12849
- ...options.markdown?.rules
13063
+ "unicorn/filename-case": "off",
13064
+ "no-undef": "off",
13065
+ "no-unused-expressions": "off",
13066
+ "padded-blocks": "off",
13067
+ "no-empty-pattern": "off",
13068
+ "no-redeclare": "off",
13069
+ "no-import-assign": "off",
13070
+ ...options.markdown
12850
13071
  }
12851
13072
  });
12852
13073
  configs.push({
12853
13074
  files: ["**/*.md/*.js", "**/*.md/*.ts"],
12854
13075
  rules: {
12855
- "unicorn/filename-case": 0,
12856
- "no-undef": 0,
12857
- "no-unused-expressions": 0,
12858
- "padded-blocks": 0,
12859
- "no-empty-pattern": 0,
12860
- "no-redeclare": 0,
12861
- "no-import-assign": 0,
12862
- ...options.markdown?.rules
13076
+ "unicorn/filename-case": "off",
13077
+ "no-undef": "off",
13078
+ "no-unused-expressions": "off",
13079
+ "padded-blocks": "off",
13080
+ "no-empty-pattern": "off",
13081
+ "no-redeclare": "off",
13082
+ "no-import-assign": "off",
13083
+ ...options.markdown
12863
13084
  }
12864
13085
  });
12865
13086
  }
12866
13087
  return formatConfig("Preset", configs);
12867
13088
  }
12868
13089
 
12869
- export { DEFAULT_TYPESCRIPT_RULES, stormPreset as default };
13090
+ export { stormPreset as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.35.0",
3
+ "version": "0.36.1",
4
4
  "type": "module",
5
5
  "description": "⚑ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -31,6 +31,10 @@
31
31
  ".": {
32
32
  "types": "./dist/preset.d.mts",
33
33
  "import": "./dist/preset.mjs"
34
+ },
35
+ "./preset": {
36
+ "types": "./dist/preset.d.mts",
37
+ "import": "./dist/preset.mjs"
34
38
  }
35
39
  },
36
40
  "files": [