@robinblomberg/eslint-config-robinblomberg 0.18.0 → 0.19.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 +11 -8
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -222,6 +222,7 @@ module.exports = defineConfig({
222
222
  '@typescript-eslint/no-dynamic-delete': off,
223
223
  '@typescript-eslint/no-empty-function': off,
224
224
  '@typescript-eslint/no-empty-interface': warn,
225
+ // Often warns about necessary uses:
225
226
  '@typescript-eslint/no-explicit-any': off,
226
227
  '@typescript-eslint/no-extra-non-null-assertion': warn,
227
228
  '@typescript-eslint/no-extra-parens': [
@@ -266,7 +267,7 @@ module.exports = defineConfig({
266
267
  '@typescript-eslint/no-non-null-assertion': off,
267
268
  '@typescript-eslint/no-parameter-properties': off,
268
269
  '@typescript-eslint/no-redeclare': off,
269
- '@typescript-eslint/no-require-imports': warn,
270
+ '@typescript-eslint/no-require-imports': off,
270
271
  '@typescript-eslint/no-shadow': warn,
271
272
  '@typescript-eslint/no-this-alias': warn,
272
273
  '@typescript-eslint/no-throw-literal': warn,
@@ -292,7 +293,7 @@ module.exports = defineConfig({
292
293
  '@typescript-eslint/no-unused-vars': [
293
294
  warn,
294
295
  {
295
- args: 'after-used',
296
+ args: 'none',
296
297
  argsIgnorePattern: '^_.*$',
297
298
  vars: 'all',
298
299
  varsIgnorePattern: '^_.*$|^T$',
@@ -402,7 +403,6 @@ module.exports = defineConfig({
402
403
  'require-await': off,
403
404
  semi: off,
404
405
  'space-before-function-paren': off,
405
- 'unicorn/prefer-module': off,
406
406
  },
407
407
  },
408
408
  // Based on `storybook/recommended`:
@@ -448,7 +448,9 @@ module.exports = defineConfig({
448
448
  '@typescript-eslint/no-magic-numbers': off,
449
449
  'jsdoc/require-jsdoc': off,
450
450
  'no-magic-numbers': off,
451
+ 'sonarjs/no-duplicate-string': off,
451
452
  'sort-keys': off,
453
+ 'unicorn/consistent-function-scoping': off,
452
454
  },
453
455
  },
454
456
  {
@@ -729,6 +731,7 @@ module.exports = defineConfig({
729
731
  '@typescript-eslint/no-use-before-define': off,
730
732
  'import/no-default-export': off,
731
733
  'jsdoc/require-jsdoc': off,
734
+ 'max-classes-per-file': off,
732
735
  },
733
736
  },
734
737
  {
@@ -875,7 +878,7 @@ module.exports = defineConfig({
875
878
  'jsdoc/require-param-name': warn,
876
879
  'jsdoc/require-param-type': [warn, { contexts: ['any'] }],
877
880
  'jsdoc/require-property': warn,
878
- 'jsdoc/require-property-description': warn,
881
+ 'jsdoc/require-property-description': off,
879
882
  'jsdoc/require-property-name': warn,
880
883
  'jsdoc/require-property-type': warn,
881
884
  'jsdoc/require-returns': off,
@@ -983,7 +986,7 @@ module.exports = defineConfig({
983
986
  'import/no-deprecated': off,
984
987
  // Disabled due to slow performance, and because it's duplicated by `no-duplicate-imports`:
985
988
  'import/no-duplicates': off,
986
- 'import/no-dynamic-require': warn,
989
+ 'import/no-dynamic-require': off,
987
990
  'import/no-extraneous-dependencies': warn,
988
991
  'import/no-internal-modules': [
989
992
  off,
@@ -1274,7 +1277,7 @@ module.exports = defineConfig({
1274
1277
  'no-unused-vars': [
1275
1278
  warn,
1276
1279
  {
1277
- args: 'after-used',
1280
+ args: 'none',
1278
1281
  argsIgnorePattern: '^_.*$',
1279
1282
  vars: 'all',
1280
1283
  varsIgnorePattern: '^_.*$|^T$',
@@ -1476,7 +1479,7 @@ module.exports = defineConfig({
1476
1479
  'unicorn/no-new-array': warn,
1477
1480
  'unicorn/no-new-buffer': warn,
1478
1481
  'unicorn/no-null': off,
1479
- 'unicorn/no-object-as-default-parameter': warn,
1482
+ 'unicorn/no-object-as-default-parameter': off,
1480
1483
  'unicorn/no-process-exit': warn,
1481
1484
  'unicorn/no-static-only-class': warn,
1482
1485
  // Disabled due to slow performance:
@@ -1541,7 +1544,7 @@ module.exports = defineConfig({
1541
1544
  'unicorn/prefer-string-starts-ends-with': warn,
1542
1545
  'unicorn/prefer-string-trim-start-end': warn,
1543
1546
  'unicorn/prefer-switch': warn,
1544
- 'unicorn/prefer-ternary': warn,
1547
+ 'unicorn/prefer-ternary': off,
1545
1548
  'unicorn/prefer-top-level-await': warn,
1546
1549
  'unicorn/prefer-type-error': warn,
1547
1550
  'unicorn/prevent-abbreviations': off,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.18.0",
3
+ "version": "0.19.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.9",
16
- "@babel/eslint-parser": "^7.22.9",
17
- "@typescript-eslint/eslint-plugin": "^6.2.1",
18
- "@typescript-eslint/parser": "^6.2.1",
19
- "eslint-define-config": "^1.22.0",
20
- "eslint-plugin-import": "^2.28.0",
21
- "eslint-plugin-jsdoc": "^46.4.5",
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",
20
+ "eslint-plugin-import": "^2.28.1",
21
+ "eslint-plugin-jsdoc": "^46.5.0",
22
22
  "eslint-plugin-jsx-a11y": "^6.7.1",
23
- "eslint-plugin-react": "^7.33.1",
24
- "eslint-plugin-sonarjs": "^0.19.0",
23
+ "eslint-plugin-react": "^7.33.2",
24
+ "eslint-plugin-sonarjs": "^0.20.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.13",
28
28
  "eslint-plugin-unicorn": "^48.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@robinblomberg/eslint-config-robinblomberg": "0.17.0-beta5",
31
+ "@robinblomberg/eslint-config-robinblomberg": "0.18.1",
32
32
  "@types/node": "*"
33
33
  },
34
34
  "peerDependencies": {