@centreon/js-config 23.4.17 → 23.4.19-MON-remove-provider-scope.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.
@@ -2,15 +2,15 @@ module.exports = {
2
2
  env: {
3
3
  browser: true,
4
4
  es6: true,
5
- jest: true,
5
+ jest: true
6
6
  },
7
7
  extends: ['airbnb', '../base.eslintrc.js'],
8
8
  parserOptions: {
9
9
  ecmaFeatures: {
10
- jsx: true,
10
+ jsx: true
11
11
  },
12
12
  ecmaVersion: 2018,
13
- sourceType: 'module',
13
+ sourceType: 'module'
14
14
  },
15
15
 
16
16
  plugins: ['react', 'hooks', 'react-hooks'],
@@ -28,11 +28,11 @@ module.exports = {
28
28
  'useUserContext',
29
29
  'useAtom',
30
30
  'useAtomValue',
31
- 'useUpdateAtom',
31
+ 'useSetAtom',
32
32
  'useCallback',
33
- 'useEffect',
34
- ],
35
- },
33
+ 'useEffect'
34
+ ]
35
+ }
36
36
  ],
37
37
  'import/extensions': [
38
38
  'error',
@@ -41,8 +41,8 @@ module.exports = {
41
41
  js: 'never',
42
42
  jsx: 'never',
43
43
  ts: 'never',
44
- tsx: 'never',
45
- },
44
+ tsx: 'never'
45
+ }
46
46
  ],
47
47
  'import/no-extraneous-dependencies': 'off',
48
48
  'import/order': [
@@ -53,21 +53,21 @@ module.exports = {
53
53
  {
54
54
  group: 'builtin',
55
55
  pattern: 'react',
56
- position: 'before',
56
+ position: 'before'
57
57
  },
58
58
  {
59
59
  group: 'external',
60
60
  pattern: '@mui/**',
61
- position: 'after',
61
+ position: 'after'
62
62
  },
63
63
  {
64
64
  group: 'parent',
65
65
  pattern: '@centreon/**',
66
- position: 'before',
67
- },
66
+ position: 'before'
67
+ }
68
68
  ],
69
- pathGroupsExcludedImportTypes: ['builtin'],
70
- },
69
+ pathGroupsExcludedImportTypes: ['builtin']
70
+ }
71
71
  ],
72
72
  'no-use-before-define': 'off',
73
73
  'prefer-arrow-functions/prefer-arrow-functions': ['error'],
@@ -75,8 +75,8 @@ module.exports = {
75
75
  'error',
76
76
  {
77
77
  namedComponents: 'arrow-function',
78
- unnamedComponents: 'arrow-function',
79
- },
78
+ unnamedComponents: 'arrow-function'
79
+ }
80
80
  ],
81
81
  'react/jsx-filename-extension': ['error', { extensions: ['.jsx'] }],
82
82
  'react/jsx-key': 'error',
@@ -86,14 +86,14 @@ module.exports = {
86
86
  'error',
87
87
  {
88
88
  callbacksLast: true,
89
- shorthandFirst: true,
90
- },
89
+ shorthandFirst: true
90
+ }
91
91
  ],
92
92
  'react/jsx-uses-react': 'off',
93
93
  'react/jsx-wrap-multilines': ['error', { prop: false }],
94
94
  'react/react-in-jsx-scope': 'off',
95
95
  'react/state-in-constructor': 'off',
96
96
  'react-hooks/exhaustive-deps': 'off',
97
- 'react-hooks/rules-of-hooks': 'error',
98
- },
97
+ 'react-hooks/rules-of-hooks': 'error'
98
+ }
99
99
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/js-config",
3
3
  "description": "Centreon Frontend shared build configuration",
4
- "version": "23.4.17",
4
+ "version": "23.4.19-MON-remove-provider-scope.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"
@@ -75,19 +75,19 @@ const getBaseConfiguration = ({
75
75
  shared: [
76
76
  {
77
77
  '@centreon/ui-context': {
78
- requiredVersion: '22.10.0',
78
+ requiredVersion: '23.04.x',
79
79
  singleton: true
80
80
  }
81
81
  },
82
82
  {
83
83
  jotai: {
84
- requiredVersion: '1.x',
84
+ requiredVersion: '2.x',
85
85
  singleton: true
86
86
  }
87
87
  },
88
88
  {
89
89
  'jotai-suspense': {
90
- requiredVersion: '0.1.x',
90
+ requiredVersion: '0.2.x',
91
91
  singleton: true
92
92
  }
93
93
  },