@elliemae/pui-cli 9.0.0-alpha.3 → 9.0.0-alpha.4

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.
@@ -12,6 +12,7 @@ import {
12
12
  jestRecommendedRules,
13
13
  sharedCoreRules,
14
14
  testFiles,
15
+ testFixtureFiles,
15
16
  testJsxFiles,
16
17
  testingLibraryDomRules,
17
18
  testingLibraryReactRules,
@@ -24,6 +25,7 @@ import {
24
25
  jsRules,
25
26
  typescriptRules,
26
27
  typescriptStrictRules,
28
+ testFixtureRelaxedRules,
27
29
  typescriptTestRelaxedRules,
28
30
  } from './rules.mjs';
29
31
 
@@ -113,6 +115,10 @@ export function createBaseFlatConfigs(tsRules) {
113
115
  'testing-library/no-node-access': 'off',
114
116
  },
115
117
  },
118
+ {
119
+ files: testFixtureFiles,
120
+ rules: testFixtureRelaxedRules,
121
+ },
116
122
  {
117
123
  files: wdioSpecFiles,
118
124
  plugins: { wdio, jest },
@@ -16,5 +16,6 @@ export {
16
16
  export {
17
17
  storybookFiles,
18
18
  testFiles,
19
+ testFixtureFiles,
19
20
  testJsxFiles,
20
21
  } from './presets.mjs';
@@ -12,11 +12,26 @@ import storybook from 'eslint-plugin-storybook';
12
12
  import testingLibrary from 'eslint-plugin-testing-library';
13
13
  import wdio from 'eslint-plugin-wdio';
14
14
 
15
+ /** Application and integration tests (Jest + relaxed type-checked rules). */
15
16
  export const testFiles = [
16
17
  '**/*.{test,spec}.{js,jsx,ts,tsx}',
17
18
  '**/__tests__/**',
18
19
  '**/lib/testing/**',
19
20
  '**/mocks/**',
21
+ // PUI libs/apps co-locate tests under lib/ (e.g. pui-app-sdk, pui-app-loader).
22
+ 'lib/**/tests/**',
23
+ 'app/**/tests/**',
24
+ ];
25
+
26
+ /**
27
+ * Generated or vendored JS under test trees (checksum bundles, MSW endpoints, pinned assets).
28
+ * Not maintained source — relax structural rules only.
29
+ */
30
+ export const testFixtureFiles = [
31
+ '**/*.checksum*.js',
32
+ '**/*.endpoint.js',
33
+ '**/tests/**/latest/*.{js,cjs,mjs}',
34
+ '**/tests/**/[0-9]*.[0-9]*/*.{js,cjs,mjs}',
20
35
  ];
21
36
 
22
37
  export const testJsxFiles = ['**/*.{test,spec}.{jsx,tsx}'];
@@ -49,6 +49,22 @@ export const typescriptTestRelaxedRules = {
49
49
  '@typescript-eslint/no-unsafe-argument': 'off',
50
50
  '@typescript-eslint/no-unsafe-return': 'off',
51
51
  '@typescript-eslint/unbound-method': 'off',
52
+ '@typescript-eslint/no-unsafe-declaration-merging': 'off',
53
+ '@typescript-eslint/no-unsafe-enum-comparison': 'off',
54
+ '@typescript-eslint/await-thenable': 'off',
55
+ '@typescript-eslint/prefer-promise-reject-errors': 'off',
56
+ 'no-constant-binary-expression': 'off',
57
+ 'valid-typeof': 'off',
58
+ 'prefer-const': 'off',
59
+ };
60
+
61
+ /** Relaxed core rules for generated test fixture JS (checksum mocks, etc.). */
62
+ export const testFixtureRelaxedRules = {
63
+ 'no-unused-vars': 'off',
64
+ 'no-console': 'off',
65
+ 'max-lines': 'off',
66
+ 'max-statements': 'off',
67
+ complexity: 'off',
52
68
  };
53
69
 
54
70
  export const jsRules = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "9.0.0-alpha.3",
3
+ "version": "9.0.0-alpha.4",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/cjs/index.cjs",