@pega/custom-dx-components 25.1.11 → 25.1.13
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
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import { globalIgnores } from 'eslint/config';
|
|
2
|
-
import path from 'node:path';
|
|
3
2
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import
|
|
5
|
-
import { FlatCompat } from '@eslint/eslintrc';
|
|
3
|
+
import eslint from '@eslint/js';
|
|
6
4
|
import tseslint from 'typescript-eslint';
|
|
7
5
|
import sonarjs from 'eslint-plugin-sonarjs';
|
|
8
6
|
import importPlugin from 'eslint-plugin-import';
|
|
9
7
|
import react from 'eslint-plugin-react';
|
|
10
8
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
9
|
+
// eslint.config.js
|
|
10
|
+
import { defineConfig } from 'eslint/config';
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
-
const __dirname = path.dirname(__filename);
|
|
14
|
-
const compat = new FlatCompat({
|
|
15
|
-
baseDirectory: __dirname,
|
|
16
|
-
recommendedConfig: js.configs.recommended,
|
|
17
|
-
sonarjs: sonarjs.configs.recommended,
|
|
18
|
-
importPlugin: importPlugin.configs.recommended,
|
|
19
|
-
react: react.configs.recommended,
|
|
20
|
-
reactHooks: reactHooks.configs.recommended,
|
|
21
|
-
allConfig: js.configs.all
|
|
22
|
-
});
|
|
23
13
|
|
|
24
|
-
export default
|
|
25
|
-
|
|
14
|
+
export default defineConfig([
|
|
15
|
+
eslint.configs.recommended,
|
|
16
|
+
...tseslint.configs.recommended,
|
|
26
17
|
globalIgnores([
|
|
27
18
|
'**/node_modules',
|
|
28
19
|
'packages/*/lib',
|
|
@@ -32,6 +23,7 @@ export default tseslint.config(
|
|
|
32
23
|
'**/mock.stories.js',
|
|
33
24
|
'**/demo.stories.tsx',
|
|
34
25
|
'**/demo.test.tsx',
|
|
26
|
+
'**/*.test.tsx',
|
|
35
27
|
'**/mock.stories.ts',
|
|
36
28
|
'**/*.mdx',
|
|
37
29
|
'**/webpack.config.js',
|
|
@@ -131,7 +123,6 @@ export default tseslint.config(
|
|
|
131
123
|
'no-alert': 'off',
|
|
132
124
|
'no-console': 'error',
|
|
133
125
|
'no-fallthrough': 'error',
|
|
134
|
-
'no-undef': 'error',
|
|
135
126
|
'no-unused-vars': 'off',
|
|
136
127
|
'no-var': 'off',
|
|
137
128
|
yoda: 'error',
|
|
@@ -155,7 +146,6 @@ export default tseslint.config(
|
|
|
155
146
|
'react/no-unused-prop-types': 'error',
|
|
156
147
|
'react/static-property-placement': 'error',
|
|
157
148
|
'array-callback-return': 'error',
|
|
158
|
-
camelcase: 'error',
|
|
159
149
|
'func-names': 'error',
|
|
160
150
|
'no-case-declarations': 'error',
|
|
161
151
|
'no-lonely-if': 'error',
|
|
@@ -208,7 +198,6 @@ export default tseslint.config(
|
|
|
208
198
|
{
|
|
209
199
|
files: ['**/*.@(ts|tsx)'],
|
|
210
200
|
rules: {
|
|
211
|
-
'no-undef': 'error',
|
|
212
201
|
'no-console': 'off',
|
|
213
202
|
'import/prefer-default-export': 'off',
|
|
214
203
|
'import/no-relative-packages': 'off',
|
|
@@ -230,4 +219,4 @@ export default tseslint.config(
|
|
|
230
219
|
'import/prefer-default-export': ['off']
|
|
231
220
|
}
|
|
232
221
|
}
|
|
233
|
-
);
|
|
222
|
+
]);
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ addDebugLog("getFilePathQuestions", "", "");
|
|
|
30
30
|
{
|
|
31
31
|
name: 'filePath',
|
|
32
32
|
type: 'fuzzypath',
|
|
33
|
-
message: 'Enter full
|
|
33
|
+
message: 'Enter full path of the component folder',
|
|
34
34
|
default: defaultPath,
|
|
35
35
|
excludePath: nodePath => nodePath.startsWith('node_modules'),
|
|
36
36
|
// excludePath :: (String) -> Bool
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import { globalIgnores } from 'eslint/config';
|
|
2
|
-
import path from 'node:path';
|
|
3
2
|
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import
|
|
5
|
-
import { FlatCompat } from '@eslint/eslintrc';
|
|
3
|
+
import eslint from '@eslint/js';
|
|
6
4
|
import tseslint from 'typescript-eslint';
|
|
7
5
|
import sonarjs from 'eslint-plugin-sonarjs';
|
|
8
6
|
import importPlugin from 'eslint-plugin-import';
|
|
9
7
|
import react from 'eslint-plugin-react';
|
|
10
8
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
9
|
+
// eslint.config.js
|
|
10
|
+
import { defineConfig } from 'eslint/config';
|
|
11
11
|
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
-
const __dirname = path.dirname(__filename);
|
|
14
|
-
const compat = new FlatCompat({
|
|
15
|
-
baseDirectory: __dirname,
|
|
16
|
-
recommendedConfig: js.configs.recommended,
|
|
17
|
-
sonarjs: sonarjs.configs.recommended,
|
|
18
|
-
importPlugin: importPlugin.configs.recommended,
|
|
19
|
-
react: react.configs.recommended,
|
|
20
|
-
reactHooks: reactHooks.configs.recommended,
|
|
21
|
-
allConfig: js.configs.all
|
|
22
|
-
});
|
|
23
13
|
|
|
24
|
-
export default
|
|
25
|
-
|
|
14
|
+
export default defineConfig([
|
|
15
|
+
eslint.configs.recommended,
|
|
16
|
+
...tseslint.configs.recommended,
|
|
26
17
|
globalIgnores([
|
|
27
18
|
'**/node_modules',
|
|
28
19
|
'packages/*/lib',
|
|
@@ -228,4 +219,4 @@ export default tseslint.config(
|
|
|
228
219
|
'import/prefer-default-export': ['off']
|
|
229
220
|
}
|
|
230
221
|
}
|
|
231
|
-
);
|
|
222
|
+
]);
|
|
@@ -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": "~25.1.
|
|
110
|
+
"@pega/custom-dx-components": "~25.1.13",
|
|
111
111
|
"@pega/pcore-pconnect-typedefs": "^4.1.0",
|
|
112
112
|
"@storybook/addon-actions": "^8.6.14",
|
|
113
113
|
"@storybook/addon-essentials": "^8.6.14",
|
|
@@ -130,7 +130,8 @@
|
|
|
130
130
|
"@types/react-color": "^3.0.13",
|
|
131
131
|
"@types/react-dom": "^18.3.7",
|
|
132
132
|
"@types/styled-components": "^5.1.34",
|
|
133
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
134
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
134
135
|
"core-js": "^3.42.0",
|
|
135
136
|
"eslint": "^9.27.0",
|
|
136
137
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
"stylelint": "^16.19.1",
|
|
156
157
|
"ts-jest": "^29.3.2",
|
|
157
158
|
"typescript": "~5.5.4",
|
|
158
|
-
"typescript-eslint": "^8.
|
|
159
|
+
"typescript-eslint": "^8.44.1",
|
|
159
160
|
"vite": "^6.3.5"
|
|
160
161
|
}
|
|
161
162
|
}
|