@robinblomberg/eslint-config-robinblomberg 0.25.0 → 0.26.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 +10 -9
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -410,8 +410,9 @@ module.exports = defineConfig({
410
410
  // Based on `storybook/recommended`:
411
411
  {
412
412
  files: [
413
- '*.stories.@(ts|tsx|js|jsx|mjs|cjs)',
414
- '*.story.@(ts|tsx|js|jsx|mjs|cjs)',
413
+ '**/*.stories.@(ts|tsx|js|jsx|mjs|cjs)',
414
+ '**/*.stories.fixtures.@(ts|tsx|js|jsx|mjs|cjs)',
415
+ '**/*.story.@(ts|tsx|js|jsx|mjs|cjs)',
415
416
  ],
416
417
  rules: {
417
418
  'import/no-anonymous-default-export': off,
@@ -430,7 +431,7 @@ module.exports = defineConfig({
430
431
  },
431
432
  // Based on `storybook/recommended`:
432
433
  {
433
- files: ['.storybook/main.@(js|cjs|mjs|ts)'],
434
+ files: ['**/.storybook/main.@(js|cjs|mjs|ts)'],
434
435
  rules: {
435
436
  'storybook/no-uninstalled-addons': error,
436
437
  },
@@ -1123,7 +1124,7 @@ module.exports = defineConfig({
1123
1124
  'no-floating-decimal': warn,
1124
1125
  'no-func-assign': warn,
1125
1126
  'no-global-assign': warn,
1126
- 'no-implicit-coercion': [warn, { boolean: false }],
1127
+ 'no-implicit-coercion': [warn, { boolean: false, number: false }],
1127
1128
  'no-implicit-globals': warn,
1128
1129
  'no-implied-eval': warn,
1129
1130
  'no-inline-comments': off,
@@ -1250,7 +1251,7 @@ module.exports = defineConfig({
1250
1251
  'no-restricted-imports': warn,
1251
1252
  'no-restricted-modules': warn,
1252
1253
  'no-restricted-properties': warn,
1253
- 'no-restricted-syntax': [warn, 'FunctionDeclaration', 'WithStatement'],
1254
+ 'no-restricted-syntax': [warn, 'WithStatement'],
1254
1255
  'no-return-assign': [warn, 'except-parens'],
1255
1256
  'no-return-await': off,
1256
1257
  'no-script-url': warn,
@@ -1455,7 +1456,7 @@ module.exports = defineConfig({
1455
1456
  'unicorn/consistent-destructuring': warn,
1456
1457
  'unicorn/consistent-function-scoping': warn,
1457
1458
  'unicorn/custom-error-definition': off,
1458
- 'unicorn/empty-brace-spaces': warn,
1459
+ 'unicorn/empty-brace-spaces': off,
1459
1460
  'unicorn/error-message': warn,
1460
1461
  'unicorn/escape-case': warn,
1461
1462
  'unicorn/expiring-todo-comments': warn,
@@ -1480,7 +1481,7 @@ module.exports = defineConfig({
1480
1481
  'unicorn/no-await-expression-member': warn,
1481
1482
  'unicorn/no-console-spaces': warn,
1482
1483
  'unicorn/no-document-cookie': warn,
1483
- 'unicorn/no-empty-file': warn,
1484
+ 'unicorn/no-empty-file': off,
1484
1485
  'unicorn/no-for-loop': warn,
1485
1486
  'unicorn/no-hex-escape': off,
1486
1487
  'unicorn/no-instanceof-array': warn,
@@ -1489,7 +1490,7 @@ module.exports = defineConfig({
1489
1490
  'unicorn/no-lonely-if': warn,
1490
1491
  'unicorn/no-negated-condition': warn,
1491
1492
  'unicorn/no-nested-ternary': off,
1492
- 'unicorn/no-new-array': warn,
1493
+ 'unicorn/no-new-array': off,
1493
1494
  'unicorn/no-new-buffer': warn,
1494
1495
  'unicorn/no-null': off,
1495
1496
  'unicorn/no-object-as-default-parameter': off,
@@ -1498,7 +1499,7 @@ module.exports = defineConfig({
1498
1499
  // Disabled due to slow performance:
1499
1500
  'unicorn/no-thenable': off,
1500
1501
  'unicorn/no-this-assignment': warn,
1501
- 'unicorn/no-typeof-undefined': warn,
1502
+ 'unicorn/no-typeof-undefined': [warn, { checkGlobalVariables: true }],
1502
1503
  'unicorn/no-unnecessary-await': warn,
1503
1504
  'unicorn/no-unreadable-array-destructuring': warn,
1504
1505
  'unicorn/no-unreadable-iife': warn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,25 +12,25 @@
12
12
  },
13
13
  "homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
14
14
  "dependencies": {
15
- "@babel/core": "^7.23.9",
16
- "@babel/eslint-parser": "^7.23.9",
17
- "@typescript-eslint/eslint-plugin": "^6.20.0",
18
- "@typescript-eslint/parser": "^6.20.0",
15
+ "@babel/core": "^7.24.0",
16
+ "@babel/eslint-parser": "^7.23.10",
17
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
18
+ "@typescript-eslint/parser": "^7.1.0",
19
19
  "eslint-define-config": "^2.1.0",
20
20
  "eslint-plugin-import": "^2.29.1",
21
- "eslint-plugin-jsdoc": "^48.0.4",
21
+ "eslint-plugin-jsdoc": "^48.2.0",
22
22
  "eslint-plugin-jsx-a11y": "^6.8.0",
23
23
  "eslint-plugin-react": "^7.33.2",
24
24
  "eslint-plugin-react-hooks": "^4.6.0",
25
25
  "eslint-plugin-react-refresh": "^0.4.5",
26
- "eslint-plugin-sonarjs": "^0.23.0",
26
+ "eslint-plugin-sonarjs": "^0.24.0",
27
27
  "eslint-plugin-sort-exports": "^0.9.1",
28
28
  "eslint-plugin-sort-keys": "^2.3.5",
29
- "eslint-plugin-storybook": "^0.6.15",
30
- "eslint-plugin-unicorn": "^50.0.1"
29
+ "eslint-plugin-storybook": "^0.8.0",
30
+ "eslint-plugin-unicorn": "^51.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@robinblomberg/eslint-config-robinblomberg": "0.24.1",
33
+ "@robinblomberg/eslint-config-robinblomberg": "0.25.1",
34
34
  "@types/node": "*"
35
35
  },
36
36
  "peerDependencies": {