@robinblomberg/eslint-config-robinblomberg 0.22.0 → 0.23.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 (2) hide show
  1. package/index.js +10 -10
  2. package/package.json +9 -9
package/index.js CHANGED
@@ -351,9 +351,9 @@ module.exports = defineConfig({
351
351
  '@typescript-eslint/unbound-method': off,
352
352
  '@typescript-eslint/unified-signatures': warn,
353
353
  'default-case': off,
354
+ 'default-param-last': off,
354
355
  'func-call-spacing': off,
355
356
  'import/exports-last': off,
356
- 'import/extensions': off,
357
357
  'import/no-unassigned-import': off,
358
358
  // Disabled due to false positives:
359
359
  'import/no-unresolved': [off, { ignore: ['\\.types$'] }],
@@ -447,10 +447,15 @@ module.exports = defineConfig({
447
447
  rules: {
448
448
  '@typescript-eslint/no-magic-numbers': off,
449
449
  'jsdoc/require-jsdoc': off,
450
+ 'no-empty-character-class': off,
450
451
  'no-magic-numbers': off,
452
+ 'no-sparse-arrays': off,
451
453
  'sonarjs/no-duplicate-string': off,
452
454
  'sort-keys': off,
455
+ 'unicorn/better-regex': off,
453
456
  'unicorn/consistent-function-scoping': off,
457
+ 'unicorn/new-for-builtins': off,
458
+ 'unicorn/no-new-array': off,
454
459
  },
455
460
  },
456
461
  {
@@ -950,7 +955,7 @@ module.exports = defineConfig({
950
955
  'generator-star-spacing': [warn, { after: true, before: true }],
951
956
  'getter-return': warn,
952
957
  'global-require': off,
953
- 'guard-for-in': warn,
958
+ 'guard-for-in': off,
954
959
  'handle-callback-err': [warn, '^(err|error)$'],
955
960
  'id-blacklist': warn,
956
961
  'id-length': off,
@@ -1117,7 +1122,7 @@ module.exports = defineConfig({
1117
1122
  'no-irregular-whitespace': warn,
1118
1123
  'no-iterator': warn,
1119
1124
  'no-label-var': warn,
1120
- 'no-labels': [warn, { allowLoop: false, allowSwitch: false }],
1125
+ 'no-labels': [off, { allowLoop: false, allowSwitch: false }],
1121
1126
  'no-lone-blocks': off,
1122
1127
  'no-lonely-if': warn,
1123
1128
  'no-loop-func': warn,
@@ -1234,12 +1239,7 @@ module.exports = defineConfig({
1234
1239
  'no-restricted-imports': warn,
1235
1240
  'no-restricted-modules': warn,
1236
1241
  'no-restricted-properties': warn,
1237
- 'no-restricted-syntax': [
1238
- warn,
1239
- 'FunctionDeclaration',
1240
- 'LabeledStatement',
1241
- 'WithStatement',
1242
- ],
1242
+ 'no-restricted-syntax': [warn, 'FunctionDeclaration', 'WithStatement'],
1243
1243
  'no-return-assign': [warn, 'except-parens'],
1244
1244
  'no-return-await': off,
1245
1245
  'no-script-url': warn,
@@ -1470,7 +1470,7 @@ module.exports = defineConfig({
1470
1470
  'unicorn/no-document-cookie': warn,
1471
1471
  'unicorn/no-empty-file': warn,
1472
1472
  'unicorn/no-for-loop': warn,
1473
- 'unicorn/no-hex-escape': warn,
1473
+ 'unicorn/no-hex-escape': off,
1474
1474
  'unicorn/no-instanceof-array': warn,
1475
1475
  'unicorn/no-invalid-remove-event-listener': warn,
1476
1476
  'unicorn/no-keyword-prefix': off,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.22.0",
3
+ "version": "0.23.1",
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.23.6",
15
+ "@babel/core": "^7.23.7",
16
16
  "@babel/eslint-parser": "^7.23.3",
17
- "@typescript-eslint/eslint-plugin": "^6.14.0",
18
- "@typescript-eslint/parser": "^6.14.0",
19
- "eslint-define-config": "^2.0.0",
20
- "eslint-plugin-import": "^2.29.0",
21
- "eslint-plugin-jsdoc": "^46.9.1",
17
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
18
+ "@typescript-eslint/parser": "^6.17.0",
19
+ "eslint-define-config": "^2.1.0",
20
+ "eslint-plugin-import": "^2.29.1",
21
+ "eslint-plugin-jsdoc": "^47.0.2",
22
22
  "eslint-plugin-jsx-a11y": "^6.8.0",
23
23
  "eslint-plugin-react": "^7.33.2",
24
24
  "eslint-plugin-sonarjs": "^0.23.0",
25
25
  "eslint-plugin-sort-exports": "^0.8.0",
26
26
  "eslint-plugin-sort-keys": "^2.3.5",
27
27
  "eslint-plugin-storybook": "^0.6.15",
28
- "eslint-plugin-unicorn": "^49.0.0"
28
+ "eslint-plugin-unicorn": "^50.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@robinblomberg/eslint-config-robinblomberg": "0.20.0",
31
+ "@robinblomberg/eslint-config-robinblomberg": "0.23.0",
32
32
  "@types/node": "*"
33
33
  },
34
34
  "peerDependencies": {