@pega/custom-dx-components 0.26.2 → 0.26.3
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.
package/eslint.config.mjs
CHANGED
|
@@ -8,9 +8,12 @@ import sonarjs from 'eslint-plugin-sonarjs';
|
|
|
8
8
|
import importPlugin from 'eslint-plugin-import';
|
|
9
9
|
import react from 'eslint-plugin-react';
|
|
10
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
11
|
+
// eslint.config.js
|
|
12
|
+
import { defineConfig } from 'eslint/config';
|
|
11
13
|
|
|
12
14
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
15
|
const __dirname = path.dirname(__filename);
|
|
16
|
+
|
|
14
17
|
const compat = new FlatCompat({
|
|
15
18
|
baseDirectory: __dirname,
|
|
16
19
|
recommendedConfig: js.configs.recommended,
|
|
@@ -21,7 +24,7 @@ const compat = new FlatCompat({
|
|
|
21
24
|
allConfig: js.configs.all
|
|
22
25
|
});
|
|
23
26
|
|
|
24
|
-
export default
|
|
27
|
+
export default defineConfig([
|
|
25
28
|
tseslint.configs.recommended,
|
|
26
29
|
globalIgnores([
|
|
27
30
|
'**/node_modules',
|
|
@@ -32,6 +35,7 @@ export default tseslint.config(
|
|
|
32
35
|
'**/mock.stories.js',
|
|
33
36
|
'**/demo.stories.tsx',
|
|
34
37
|
'**/demo.test.tsx',
|
|
38
|
+
'**/*.test.tsx',
|
|
35
39
|
'**/mock.stories.ts',
|
|
36
40
|
'**/*.mdx',
|
|
37
41
|
'**/webpack.config.js',
|
|
@@ -131,7 +135,6 @@ export default tseslint.config(
|
|
|
131
135
|
'no-alert': 'off',
|
|
132
136
|
'no-console': 'error',
|
|
133
137
|
'no-fallthrough': 'error',
|
|
134
|
-
'no-undef': 'error',
|
|
135
138
|
'no-unused-vars': 'off',
|
|
136
139
|
'no-var': 'off',
|
|
137
140
|
yoda: 'error',
|
|
@@ -155,7 +158,6 @@ export default tseslint.config(
|
|
|
155
158
|
'react/no-unused-prop-types': 'error',
|
|
156
159
|
'react/static-property-placement': 'error',
|
|
157
160
|
'array-callback-return': 'error',
|
|
158
|
-
camelcase: 'error',
|
|
159
161
|
'func-names': 'error',
|
|
160
162
|
'no-case-declarations': 'error',
|
|
161
163
|
'no-lonely-if': 'error',
|
|
@@ -208,7 +210,6 @@ export default tseslint.config(
|
|
|
208
210
|
{
|
|
209
211
|
files: ['**/*.@(ts|tsx)'],
|
|
210
212
|
rules: {
|
|
211
|
-
'no-undef': 'error',
|
|
212
213
|
'no-console': 'off',
|
|
213
214
|
'import/prefer-default-export': 'off',
|
|
214
215
|
'import/no-relative-packages': 'off',
|
|
@@ -230,4 +231,4 @@ export default tseslint.config(
|
|
|
230
231
|
'import/prefer-default-export': ['off']
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
|
-
);
|
|
234
|
+
]);
|
package/package.json
CHANGED
|
@@ -8,9 +8,12 @@ import sonarjs from 'eslint-plugin-sonarjs';
|
|
|
8
8
|
import importPlugin from 'eslint-plugin-import';
|
|
9
9
|
import react from 'eslint-plugin-react';
|
|
10
10
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
11
|
+
// eslint.config.js
|
|
12
|
+
import { defineConfig } from 'eslint/config';
|
|
11
13
|
|
|
12
14
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
15
|
const __dirname = path.dirname(__filename);
|
|
16
|
+
|
|
14
17
|
const compat = new FlatCompat({
|
|
15
18
|
baseDirectory: __dirname,
|
|
16
19
|
recommendedConfig: js.configs.recommended,
|
|
@@ -21,7 +24,7 @@ const compat = new FlatCompat({
|
|
|
21
24
|
allConfig: js.configs.all
|
|
22
25
|
});
|
|
23
26
|
|
|
24
|
-
export default
|
|
27
|
+
export default defineConfig([
|
|
25
28
|
tseslint.configs.recommended,
|
|
26
29
|
globalIgnores([
|
|
27
30
|
'**/node_modules',
|
|
@@ -228,4 +231,4 @@ export default tseslint.config(
|
|
|
228
231
|
'import/prefer-default-export': ['off']
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
|
-
);
|
|
234
|
+
]);
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@babel/preset-react": "^7.27.1",
|
|
108
108
|
"@babel/preset-typescript": "^7.27.1",
|
|
109
109
|
"@pega/configs": "^0.16.3",
|
|
110
|
-
"@pega/custom-dx-components": "~0.26.
|
|
110
|
+
"@pega/custom-dx-components": "~0.26.3",
|
|
111
111
|
"@pega/pcore-pconnect-typedefs": "^4.1.0",
|
|
112
112
|
"@storybook/addon-docs": "^9.1.7",
|
|
113
113
|
"@storybook/addon-essentials": "^9.0.0-alpha.12",
|