@robinblomberg/eslint-config-robinblomberg 0.19.1 → 0.20.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.
Files changed (2) hide show
  1. package/index.js +9 -6
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -1005,6 +1005,7 @@ module.exports = defineConfig({
1005
1005
  // Disabled due to slow performance:
1006
1006
  'import/no-self-import': off,
1007
1007
  'import/no-unassigned-import': warn,
1008
+ // Disabled due to false positives:
1008
1009
  'import/no-unresolved': warn,
1009
1010
  'import/no-unused-modules': warn,
1010
1011
  // Disabled due to slow performance:
@@ -1042,7 +1043,7 @@ module.exports = defineConfig({
1042
1043
  'always',
1043
1044
  { exceptAfterSingleLine: true },
1044
1045
  ],
1045
- 'max-classes-per-file': [warn, 1],
1046
+ 'max-classes-per-file': [off, 1],
1046
1047
  'max-depth': off,
1047
1048
  'max-len': [
1048
1049
  warn,
@@ -1456,7 +1457,7 @@ module.exports = defineConfig({
1456
1457
  },
1457
1458
  },
1458
1459
  ],
1459
- 'unicorn/import-style': warn,
1460
+ 'unicorn/import-style': off,
1460
1461
  'unicorn/new-for-builtins': warn,
1461
1462
  'unicorn/no-abusive-eslint-disable': warn,
1462
1463
  'unicorn/no-array-callback-reference': warn,
@@ -1480,7 +1481,7 @@ module.exports = defineConfig({
1480
1481
  'unicorn/no-new-buffer': warn,
1481
1482
  'unicorn/no-null': off,
1482
1483
  'unicorn/no-object-as-default-parameter': off,
1483
- 'unicorn/no-process-exit': warn,
1484
+ 'unicorn/no-process-exit': off,
1484
1485
  'unicorn/no-static-only-class': warn,
1485
1486
  // Disabled due to slow performance:
1486
1487
  'unicorn/no-thenable': off,
@@ -1527,7 +1528,8 @@ module.exports = defineConfig({
1527
1528
  'unicorn/prefer-module': off,
1528
1529
  'unicorn/prefer-native-coercion-functions': warn,
1529
1530
  'unicorn/prefer-negative-index': warn,
1530
- 'unicorn/prefer-node-protocol': error,
1531
+ // Not available in earlier Node.js versions:
1532
+ 'unicorn/prefer-node-protocol': off,
1531
1533
  'unicorn/prefer-number-properties': off,
1532
1534
  'unicorn/prefer-object-from-entries': warn,
1533
1535
  'unicorn/prefer-optional-catch-binding': warn,
@@ -1545,7 +1547,8 @@ module.exports = defineConfig({
1545
1547
  'unicorn/prefer-string-trim-start-end': warn,
1546
1548
  'unicorn/prefer-switch': warn,
1547
1549
  'unicorn/prefer-ternary': off,
1548
- 'unicorn/prefer-top-level-await': warn,
1550
+ // Not available in all Node.js versions or without specific settings:
1551
+ 'unicorn/prefer-top-level-await': off,
1549
1552
  'unicorn/prefer-type-error': warn,
1550
1553
  'unicorn/prevent-abbreviations': off,
1551
1554
  'unicorn/relative-url-style': warn,
@@ -1553,7 +1556,7 @@ module.exports = defineConfig({
1553
1556
  'unicorn/require-number-to-fixed-digits-argument': warn,
1554
1557
  'unicorn/require-post-message-target-origin': off,
1555
1558
  'unicorn/string-content': off,
1556
- 'unicorn/switch-case-braces': warn,
1559
+ 'unicorn/switch-case-braces': off,
1557
1560
  'unicorn/template-indent': warn,
1558
1561
  'unicorn/text-encoding-identifier-case': warn,
1559
1562
  'unicorn/throw-new-error': warn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.19.1",
3
+ "version": "0.20.0",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,23 +12,23 @@
12
12
  },
13
13
  "homepage": "https://github.com/RobinBlomberg/eslint-config#readme",
14
14
  "dependencies": {
15
- "@babel/core": "^7.22.10",
16
- "@babel/eslint-parser": "^7.22.10",
17
- "@typescript-eslint/eslint-plugin": "^6.4.0",
18
- "@typescript-eslint/parser": "^6.4.0",
19
- "eslint-define-config": "^1.23.0",
15
+ "@babel/core": "^7.23.0",
16
+ "@babel/eslint-parser": "^7.22.15",
17
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
18
+ "@typescript-eslint/parser": "^6.7.5",
19
+ "eslint-define-config": "^1.24.1",
20
20
  "eslint-plugin-import": "^2.28.1",
21
- "eslint-plugin-jsdoc": "^46.5.0",
21
+ "eslint-plugin-jsdoc": "^46.8.2",
22
22
  "eslint-plugin-jsx-a11y": "^6.7.1",
23
23
  "eslint-plugin-react": "^7.33.2",
24
- "eslint-plugin-sonarjs": "^0.20.0",
24
+ "eslint-plugin-sonarjs": "^0.21.0",
25
25
  "eslint-plugin-sort-exports": "^0.8.0",
26
26
  "eslint-plugin-sort-keys": "^2.3.5",
27
- "eslint-plugin-storybook": "^0.6.13",
27
+ "eslint-plugin-storybook": "^0.6.15",
28
28
  "eslint-plugin-unicorn": "^48.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@robinblomberg/eslint-config-robinblomberg": "0.19.0",
31
+ "@robinblomberg/eslint-config-robinblomberg": "0.19.1",
32
32
  "@types/node": "*"
33
33
  },
34
34
  "peerDependencies": {