@robinblomberg/eslint-config-robinblomberg 0.24.1 → 0.25.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 +12 -5
  2. package/package.json +11 -10
package/index.js CHANGED
@@ -66,7 +66,7 @@ module.exports = defineConfig({
66
66
  warn,
67
67
  {
68
68
  disallowTypeAnnotations: true,
69
- fixStyle: 'inline-type-imports',
69
+ fixStyle: 'separate-type-imports',
70
70
  prefer: 'type-imports',
71
71
  },
72
72
  ],
@@ -382,6 +382,7 @@ module.exports = defineConfig({
382
382
  'keyword-spacing': off,
383
383
  'lines-between-class-members': off,
384
384
  'no-dupe-class-members': off,
385
+ 'no-duplicate-imports': off,
385
386
  'no-empty-function': off,
386
387
  'no-extra-parens': off,
387
388
  'no-extra-semi': off,
@@ -409,12 +410,14 @@ module.exports = defineConfig({
409
410
  // Based on `storybook/recommended`:
410
411
  {
411
412
  files: [
412
- '*.stories.@(ts|tsx|js|jsx|mjs|cjs)',
413
- '*.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)',
414
416
  ],
415
417
  rules: {
416
418
  'import/no-anonymous-default-export': off,
417
419
  'react/no-multi-comp': off,
420
+ 'react-hooks/rules-of-hooks': off,
418
421
  'storybook/await-interactions': error,
419
422
  'storybook/context-in-play-function': error,
420
423
  'storybook/default-exports': error,
@@ -428,7 +431,7 @@ module.exports = defineConfig({
428
431
  },
429
432
  // Based on `storybook/recommended`:
430
433
  {
431
- files: ['.storybook/main.@(js|cjs|mjs|ts)'],
434
+ files: ['**/.storybook/main.@(js|cjs|mjs|ts)'],
432
435
  rules: {
433
436
  'storybook/no-uninstalled-addons': error,
434
437
  },
@@ -462,7 +465,7 @@ module.exports = defineConfig({
462
465
  },
463
466
  {
464
467
  files: ['**/*.jsx', '**/*.tsx'],
465
- plugins: ['react', 'react-hooks', 'jsx-a11y'],
468
+ plugins: ['react', 'react-hooks', 'react-refresh', 'jsx-a11y'],
466
469
  rules: {
467
470
  'jsx-a11y/accessible-emoji': warn,
468
471
  'jsx-a11y/alt-text': warn,
@@ -730,6 +733,10 @@ module.exports = defineConfig({
730
733
  'react/void-dom-elements-no-children': warn,
731
734
  'react-hooks/exhaustive-deps': warn,
732
735
  'react-hooks/rules-of-hooks': error,
736
+ 'react-refresh/only-export-components': [
737
+ warn,
738
+ { allowConstantExport: true },
739
+ ],
733
740
  },
734
741
  },
735
742
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.24.1",
3
+ "version": "0.25.1",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,24 +12,25 @@
12
12
  },
13
13
  "homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
14
14
  "dependencies": {
15
- "@babel/core": "^7.23.7",
16
- "@babel/eslint-parser": "^7.23.3",
17
- "@typescript-eslint/eslint-plugin": "^6.19.0",
18
- "@typescript-eslint/parser": "^6.19.0",
15
+ "@babel/core": "^7.23.9",
16
+ "@babel/eslint-parser": "^7.23.10",
17
+ "@typescript-eslint/eslint-plugin": "^7.0.1",
18
+ "@typescript-eslint/parser": "^7.0.1",
19
19
  "eslint-define-config": "^2.1.0",
20
20
  "eslint-plugin-import": "^2.29.1",
21
- "eslint-plugin-jsdoc": "^48.0.2",
21
+ "eslint-plugin-jsdoc": "^48.0.6",
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
- "eslint-plugin-sonarjs": "^0.23.0",
26
- "eslint-plugin-sort-exports": "^0.8.0",
25
+ "eslint-plugin-react-refresh": "^0.4.5",
26
+ "eslint-plugin-sonarjs": "^0.24.0",
27
+ "eslint-plugin-sort-exports": "^0.9.1",
27
28
  "eslint-plugin-sort-keys": "^2.3.5",
28
29
  "eslint-plugin-storybook": "^0.6.15",
29
- "eslint-plugin-unicorn": "^50.0.1"
30
+ "eslint-plugin-unicorn": "^51.0.1"
30
31
  },
31
32
  "devDependencies": {
32
- "@robinblomberg/eslint-config-robinblomberg": "0.23.5",
33
+ "@robinblomberg/eslint-config-robinblomberg": "0.25.0",
33
34
  "@types/node": "*"
34
35
  },
35
36
  "peerDependencies": {