@robinblomberg/eslint-config-robinblomberg 0.23.5 → 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 +7 -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,
@@ -461,7 +461,7 @@ module.exports = defineConfig({
461
461
  },
462
462
  {
463
463
  files: ['**/*.jsx', '**/*.tsx'],
464
- plugins: ['react', 'jsx-a11y'],
464
+ plugins: ['react', 'react-hooks', 'jsx-a11y'],
465
465
  rules: {
466
466
  'jsx-a11y/accessible-emoji': warn,
467
467
  'jsx-a11y/alt-text': warn,
@@ -727,6 +727,8 @@ module.exports = defineConfig({
727
727
  'react/static-property-placement': warn,
728
728
  'react/style-prop-object': warn,
729
729
  'react/void-dom-elements-no-children': warn,
730
+ 'react-hooks/exhaustive-deps': warn,
731
+ 'react-hooks/rules-of-hooks': error,
730
732
  },
731
733
  },
732
734
  {
package/package.json CHANGED
@@ -1,26 +1,27 @@
1
1
  {
2
2
  "name": "@robinblomberg/eslint-config-robinblomberg",
3
- "version": "0.23.5",
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.4",
32
+ "@robinblomberg/eslint-config-robinblomberg": "0.23.5",
32
33
  "@types/node": "*"
33
34
  },
34
35
  "peerDependencies": {