@robinblomberg/eslint-config-robinblomberg 0.23.4 → 0.24.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 +8 -5
  2. package/package.json +9 -8
package/index.js CHANGED
@@ -433,10 +433,6 @@ module.exports = defineConfig({
433
433
  },
434
434
  },
435
435
  {
436
- env: {
437
- jest: true,
438
- mocha: true,
439
- },
440
436
  files: [
441
437
  '**/spec/**',
442
438
  '**/test/**',
@@ -444,6 +440,10 @@ module.exports = defineConfig({
444
440
  '**/*.spec.*',
445
441
  '**/*.test.*',
446
442
  ],
443
+ env: {
444
+ jest: true,
445
+ mocha: true,
446
+ },
447
447
  rules: {
448
448
  '@typescript-eslint/no-magic-numbers': off,
449
449
  'jsdoc/require-jsdoc': off,
@@ -452,6 +452,7 @@ module.exports = defineConfig({
452
452
  'no-sparse-arrays': off,
453
453
  'sonarjs/no-duplicate-string': off,
454
454
  'sort-keys': off,
455
+ 'symbol-description': off,
455
456
  'unicorn/better-regex': off,
456
457
  'unicorn/consistent-function-scoping': off,
457
458
  'unicorn/new-for-builtins': off,
@@ -460,7 +461,7 @@ module.exports = defineConfig({
460
461
  },
461
462
  {
462
463
  files: ['**/*.jsx', '**/*.tsx'],
463
- plugins: ['react', 'jsx-a11y'],
464
+ plugins: ['react', 'react-hooks', 'jsx-a11y'],
464
465
  rules: {
465
466
  'jsx-a11y/accessible-emoji': warn,
466
467
  'jsx-a11y/alt-text': warn,
@@ -726,6 +727,8 @@ module.exports = defineConfig({
726
727
  'react/static-property-placement': warn,
727
728
  'react/style-prop-object': warn,
728
729
  'react/void-dom-elements-no-children': warn,
730
+ 'react-hooks/exhaustive-deps': warn,
731
+ 'react-hooks/rules-of-hooks': error,
729
732
  },
730
733
  },
731
734
  {
package/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.23.4",
3
+ "version": "0.24.0",
4
4
  "author": "Robin Blomberg",
5
5
  "main": "index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/RobinBlomberg/eslint-config.git"
8
+ "url": "git+https://github.com/RobinBlomberg/eslint-config-robinblomberg.git"
9
9
  },
10
10
  "bugs": {
11
- "url": "https://github.com/RobinBlomberg/eslint-config/issues"
11
+ "url": "https://github.com/RobinBlomberg/eslint-config-robinblomberg/issues"
12
12
  },
13
- "homepage": "https://github.com/RobinBlomberg/eslint-config#readme",
13
+ "homepage": "https://github.com/RobinBlomberg/eslint-config-robinblomberg#readme",
14
14
  "dependencies": {
15
15
  "@babel/core": "^7.23.7",
16
16
  "@babel/eslint-parser": "^7.23.3",
17
- "@typescript-eslint/eslint-plugin": "^6.17.0",
18
- "@typescript-eslint/parser": "^6.17.0",
17
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
18
+ "@typescript-eslint/parser": "^6.19.0",
19
19
  "eslint-define-config": "^2.1.0",
20
20
  "eslint-plugin-import": "^2.29.1",
21
- "eslint-plugin-jsdoc": "^47.0.2",
21
+ "eslint-plugin-jsdoc": "^48.0.2",
22
22
  "eslint-plugin-jsx-a11y": "^6.8.0",
23
23
  "eslint-plugin-react": "^7.33.2",
24
+ "eslint-plugin-react-hooks": "^4.6.0",
24
25
  "eslint-plugin-sonarjs": "^0.23.0",
25
26
  "eslint-plugin-sort-exports": "^0.8.0",
26
27
  "eslint-plugin-sort-keys": "^2.3.5",
@@ -28,7 +29,7 @@
28
29
  "eslint-plugin-unicorn": "^50.0.1"
29
30
  },
30
31
  "devDependencies": {
31
- "@robinblomberg/eslint-config-robinblomberg": "0.23.1",
32
+ "@robinblomberg/eslint-config-robinblomberg": "0.23.5",
32
33
  "@types/node": "*"
33
34
  },
34
35
  "peerDependencies": {