@shelf/eslint-config 2.27.0 → 2.28.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.
@@ -13,9 +13,6 @@ const restrictedPackagesImportRules = require('./rules/restricted-packages-impor
13
13
 
14
14
  module.exports = {
15
15
  extends: ['./frontend.js', ...commonExtends, 'plugin:you-dont-need-lodash-underscore/compatible'],
16
- globals: {
17
- DD_LOGS: true,
18
- },
19
16
  plugins: [...commonPlugins, ...frontendConfig.plugins, 'testing-library'],
20
17
  ...tsParser,
21
18
  rules: {
package/frontend.js CHANGED
@@ -7,7 +7,6 @@ module.exports = {
7
7
  'plugin:react/recommended',
8
8
  'prettier',
9
9
  'plugin:react-hooks/recommended',
10
- 'plugin:react-hooks/exhaustive-deps',
11
10
  'plugin:sonarjs/recommended',
12
11
  ],
13
12
  plugins: ['react', 'import', 'sonarjs'],
@@ -32,8 +31,10 @@ module.exports = {
32
31
  rules: {
33
32
  ...baseConfig.rules,
34
33
  'no-console': 'error',
34
+ 'react-hooks/exhaustive-deps': 'error',
35
35
  'sonarjs/cognitive-complexity': ['error', 18],
36
36
  'multiline-comment-style': 'off',
37
37
  'no-unreachable': 'error',
38
+ 'react/react-in-jsx-scope': "off"
38
39
  },
39
40
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/eslint-config",
3
- "version": "2.27.0",
3
+ "version": "2.28.0",
4
4
  "description": "ESLint Config for Shelf Projects",
5
5
  "license": "MIT",
6
6
  "repository": "shelfio/eslint-config",
@@ -38,7 +38,7 @@
38
38
  "eslint-config-next": "12.2.3",
39
39
  "eslint-config-prettier": "8.6.0",
40
40
  "eslint-plugin-babel": "5.3.1",
41
- "eslint-plugin-import": "2.26.0",
41
+ "eslint-plugin-import": "2.27.5",
42
42
  "eslint-plugin-jest": "27.2.0",
43
43
  "eslint-plugin-jest-formatting": "3.1.0",
44
44
  "eslint-plugin-json-format": "2.0.1",
@@ -25,6 +25,10 @@
25
25
  {
26
26
  "name": "toc",
27
27
  "message": "Please use @shelf/table-of-contents instead!"
28
+ },
29
+ {
30
+ "name": "uuid",
31
+ "message": "Please use import {randomUUID} from 'crypto' instead!"
28
32
  }
29
33
  ]
30
34
  ]