@robinblomberg/eslint-config-robinblomberg 0.17.0-beta4 → 0.17.0-beta5

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 (2) hide show
  1. package/index.js +143 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,7 +11,6 @@ module.exports = defineConfig({
11
11
  es2024: true,
12
12
  node: true,
13
13
  },
14
- extends: ['plugin:sonarjs/recommended', 'plugin:unicorn/recommended'],
15
14
  globals: {
16
15
  globalThis: true,
17
16
  },
@@ -1104,7 +1103,8 @@ module.exports = defineConfig({
1104
1103
  'no-multi-spaces': warn,
1105
1104
  'no-multi-str': warn,
1106
1105
  'no-multiple-empty-lines': [warn, { max: 1, maxEOF: 0 }],
1107
- 'no-negated-condition': warn,
1106
+ // Replaced by `unicorn/no-negated-condition`:
1107
+ 'no-negated-condition': off,
1108
1108
  'no-negated-in-lhs': warn,
1109
1109
  'no-nested-ternary': off,
1110
1110
  'no-new': warn,
@@ -1322,8 +1322,38 @@ module.exports = defineConfig({
1322
1322
  semi: [warn, 'always'],
1323
1323
  'semi-spacing': [warn, { after: true, before: false }],
1324
1324
  'semi-style': [warn, 'last'],
1325
- 'sonarjs/cognitive-complexity': 0,
1326
- 'sonarjs/no-nested-switch': 0,
1325
+ 'sonarjs/cognitive-complexity': off,
1326
+ 'sonarjs/elseif-without-else': off,
1327
+ 'sonarjs/max-switch-cases': off,
1328
+ 'sonarjs/no-all-duplicated-branches': warn,
1329
+ 'sonarjs/no-collapsible-if': warn,
1330
+ 'sonarjs/no-collection-size-mischeck': warn,
1331
+ 'sonarjs/no-duplicate-string': warn,
1332
+ 'sonarjs/no-duplicated-branches': warn,
1333
+ 'sonarjs/no-element-overwrite': warn,
1334
+ 'sonarjs/no-empty-collection': warn,
1335
+ 'sonarjs/no-extra-arguments': warn,
1336
+ 'sonarjs/no-gratuitous-expressions': warn,
1337
+ 'sonarjs/no-identical-conditions': warn,
1338
+ 'sonarjs/no-identical-expressions': warn,
1339
+ 'sonarjs/no-identical-functions': warn,
1340
+ 'sonarjs/no-ignored-return': warn,
1341
+ 'sonarjs/no-inverted-boolean-check': off,
1342
+ 'sonarjs/no-nested-switch': off,
1343
+ 'sonarjs/no-nested-template-literals': warn,
1344
+ 'sonarjs/no-one-iteration-loop': warn,
1345
+ 'sonarjs/no-redundant-boolean': warn,
1346
+ 'sonarjs/no-redundant-jump': warn,
1347
+ 'sonarjs/no-same-line-conditional': warn,
1348
+ 'sonarjs/no-small-switch': warn,
1349
+ 'sonarjs/no-unused-collection': warn,
1350
+ 'sonarjs/no-use-of-empty-return-value': warn,
1351
+ 'sonarjs/no-useless-catch': warn,
1352
+ 'sonarjs/non-existent-operator': warn,
1353
+ 'sonarjs/prefer-immediate-return': warn,
1354
+ 'sonarjs/prefer-object-literal': warn,
1355
+ 'sonarjs/prefer-single-boolean-return': warn,
1356
+ 'sonarjs/prefer-while': warn,
1327
1357
  'sort-imports': [
1328
1358
  off,
1329
1359
  {
@@ -1366,12 +1396,115 @@ module.exports = defineConfig({
1366
1396
  'template-curly-spacing': [warn, 'never'],
1367
1397
  'template-tag-spacing': [warn, 'never'],
1368
1398
  'unicode-bom': [warn, 'never'],
1369
- 'unicorn/no-nested-ternary': 0,
1370
- 'unicorn/no-null': 0,
1371
- 'unicorn/number-literal-case': 0,
1372
- 'unicorn/prefer-at': 0,
1373
- 'unicorn/prefer-number-properties': 0,
1374
- 'unicorn/prevent-abbreviations': 0,
1399
+ 'unicorn/better-regex': warn,
1400
+ 'unicorn/catch-error-name': warn,
1401
+ 'unicorn/consistent-destructuring': warn,
1402
+ 'unicorn/consistent-function-scoping': warn,
1403
+ 'unicorn/custom-error-definition': off,
1404
+ 'unicorn/empty-brace-spaces': warn,
1405
+ 'unicorn/error-message': warn,
1406
+ 'unicorn/escape-case': warn,
1407
+ 'unicorn/expiring-todo-comments': warn,
1408
+ 'unicorn/explicit-length-check': warn,
1409
+ 'unicorn/filename-case': warn,
1410
+ 'unicorn/import-style': warn,
1411
+ 'unicorn/new-for-builtins': warn,
1412
+ 'unicorn/no-abusive-eslint-disable': warn,
1413
+ 'unicorn/no-array-callback-reference': warn,
1414
+ 'unicorn/no-array-for-each': warn,
1415
+ 'unicorn/no-array-method-this-argument': warn,
1416
+ 'unicorn/no-array-push-push': warn,
1417
+ 'unicorn/no-array-reduce': warn,
1418
+ 'unicorn/no-await-expression-member': warn,
1419
+ 'unicorn/no-console-spaces': warn,
1420
+ 'unicorn/no-document-cookie': warn,
1421
+ 'unicorn/no-empty-file': warn,
1422
+ 'unicorn/no-for-loop': warn,
1423
+ 'unicorn/no-hex-escape': warn,
1424
+ 'unicorn/no-instanceof-array': warn,
1425
+ 'unicorn/no-invalid-remove-event-listener': warn,
1426
+ 'unicorn/no-keyword-prefix': off,
1427
+ 'unicorn/no-lonely-if': warn,
1428
+ 'unicorn/no-negated-condition': warn,
1429
+ 'unicorn/no-nested-ternary': off,
1430
+ 'unicorn/no-new-array': warn,
1431
+ 'unicorn/no-new-buffer': warn,
1432
+ 'unicorn/no-null': off,
1433
+ 'unicorn/no-object-as-default-parameter': warn,
1434
+ 'unicorn/no-process-exit': warn,
1435
+ 'unicorn/no-static-only-class': warn,
1436
+ 'unicorn/no-thenable': warn,
1437
+ 'unicorn/no-this-assignment': warn,
1438
+ 'unicorn/no-typeof-undefined': warn,
1439
+ 'unicorn/no-unnecessary-await': warn,
1440
+ 'unicorn/no-unreadable-array-destructuring': warn,
1441
+ 'unicorn/no-unreadable-iife': warn,
1442
+ 'unicorn/no-unused-properties': off,
1443
+ 'unicorn/no-useless-fallback-in-spread': warn,
1444
+ 'unicorn/no-useless-length-check': warn,
1445
+ 'unicorn/no-useless-promise-resolve-reject': warn,
1446
+ 'unicorn/no-useless-spread': warn,
1447
+ 'unicorn/no-useless-switch-case': warn,
1448
+ 'unicorn/no-useless-undefined': warn,
1449
+ 'unicorn/no-zero-fractions': warn,
1450
+ 'unicorn/number-literal-case': off,
1451
+ 'unicorn/numeric-separators-style': warn,
1452
+ 'unicorn/prefer-add-event-listener': warn,
1453
+ 'unicorn/prefer-array-find': warn,
1454
+ 'unicorn/prefer-array-flat-map': warn,
1455
+ 'unicorn/prefer-array-flat': warn,
1456
+ 'unicorn/prefer-array-index-of': warn,
1457
+ 'unicorn/prefer-array-some': warn,
1458
+ 'unicorn/prefer-at': warn,
1459
+ 'unicorn/prefer-blob-reading-methods': warn,
1460
+ 'unicorn/prefer-code-point': warn,
1461
+ 'unicorn/prefer-date-now': warn,
1462
+ 'unicorn/prefer-default-parameters': warn,
1463
+ 'unicorn/prefer-dom-node-append': warn,
1464
+ 'unicorn/prefer-dom-node-dataset': warn,
1465
+ 'unicorn/prefer-dom-node-remove': warn,
1466
+ 'unicorn/prefer-dom-node-text-content': warn,
1467
+ 'unicorn/prefer-event-target': warn,
1468
+ 'unicorn/prefer-export-from': warn,
1469
+ 'unicorn/prefer-includes': warn,
1470
+ 'unicorn/prefer-json-parse-buffer': off,
1471
+ 'unicorn/prefer-keyboard-event-key': warn,
1472
+ 'unicorn/prefer-logical-operator-over-ternary': warn,
1473
+ 'unicorn/prefer-math-trunc': warn,
1474
+ 'unicorn/prefer-modern-dom-apis': warn,
1475
+ 'unicorn/prefer-modern-math-apis': warn,
1476
+ 'unicorn/prefer-module': warn,
1477
+ 'unicorn/prefer-native-coercion-functions': warn,
1478
+ 'unicorn/prefer-negative-index': warn,
1479
+ 'unicorn/prefer-node-protocol': error,
1480
+ 'unicorn/prefer-number-properties': off,
1481
+ 'unicorn/prefer-object-from-entries': warn,
1482
+ 'unicorn/prefer-optional-catch-binding': warn,
1483
+ 'unicorn/prefer-prototype-methods': warn,
1484
+ 'unicorn/prefer-query-selector': warn,
1485
+ 'unicorn/prefer-reflect-apply': warn,
1486
+ 'unicorn/prefer-regexp-test': warn,
1487
+ 'unicorn/prefer-set-has': warn,
1488
+ 'unicorn/prefer-set-size': warn,
1489
+ 'unicorn/prefer-spread': warn,
1490
+ 'unicorn/prefer-string-replace-all': warn,
1491
+ 'unicorn/prefer-string-slice': warn,
1492
+ 'unicorn/prefer-string-starts-ends-with': warn,
1493
+ 'unicorn/prefer-string-trim-start-end': warn,
1494
+ 'unicorn/prefer-switch': warn,
1495
+ 'unicorn/prefer-ternary': warn,
1496
+ 'unicorn/prefer-top-level-await': warn,
1497
+ 'unicorn/prefer-type-error': warn,
1498
+ 'unicorn/prevent-abbreviations': off,
1499
+ 'unicorn/relative-url-style': warn,
1500
+ 'unicorn/require-array-join-separator': warn,
1501
+ 'unicorn/require-number-to-fixed-digits-argument': warn,
1502
+ 'unicorn/require-post-message-target-origin': off,
1503
+ 'unicorn/string-content': off,
1504
+ 'unicorn/switch-case-braces': warn,
1505
+ 'unicorn/template-indent': warn,
1506
+ 'unicorn/text-encoding-identifier-case': warn,
1507
+ 'unicorn/throw-new-error': warn,
1375
1508
  'use-isnan': warn,
1376
1509
  'valid-typeof': [warn, { requireStringLiterals: true }],
1377
1510
  'vars-on-top': warn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.17.0-beta4",
3
+ "version": "0.17.0-beta5",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {