pr-checkmate 1.0.20 → 1.0.21

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/cspell.json CHANGED
@@ -2,6 +2,8 @@
2
2
  "version": "0.2",
3
3
  "language": "en",
4
4
  "words": [
5
+ "uiautomator",
6
+ "UiAutomator2",
5
7
  "checkmate",
6
8
  "eslint",
7
9
  "prettier",
@@ -9,7 +11,9 @@
9
11
  "typescript",
10
12
  "execa",
11
13
  "playwright",
12
- "pytest"
14
+ "pytest",
15
+ "creds",
16
+ "UITM"
13
17
  ],
14
18
  "ignorePaths": [
15
19
  "**/node_modules/**",
@@ -17,6 +17,41 @@ exports.IGNORE_PATTERNS = [
17
17
  '**/.pytest_cache/**',
18
18
  '**/.venv/**',
19
19
  '**/venv/**',
20
+ '**/allure-report/**',
21
+ '**/allure-results/**',
22
+ '**/reports/**',
23
+ '**/report/**',
24
+ '**/test-reports/**',
25
+ '**/test-report/**',
26
+ '**/test-output/**',
27
+ '**/test-results/**',
28
+ '**/results/**',
29
+ '**/result/**',
30
+ '**/logs/**',
31
+ // Jest
32
+ '**/jest-html-reporters-*/**',
33
+ '**/jest-stare/**',
34
+ // Cypress
35
+ '**/cypress/reports/**',
36
+ '**/cypress/videos/**',
37
+ '**/cypress/screenshots/**',
38
+ // Playwright
39
+ '**/playwright-report/**',
40
+ // WebdriverIO
41
+ '**/.wdio/**',
42
+ '**/wdio-logs/**',
43
+ // Mocha / Jasmine
44
+ '**/mochawesome-report/**',
45
+ '**/mochawesome-reports/**',
46
+ // JUnit / Surefire / Maven
47
+ '**/target/surefire-reports/**',
48
+ '**/target/failsafe-reports/**',
49
+ // Python testing
50
+ '**/.pytest_cache/**',
51
+ '**/htmlcov/**',
52
+ // Misc reports
53
+ '**/lint-report/**',
54
+ '**/audit-report/**',
20
55
  ];
21
56
  /**
22
57
  * File extensions to check
@@ -10,6 +10,7 @@ const utils_1 = require("../utils");
10
10
  const configFiles = [
11
11
  { source: 'src/config/eslint.config.mjs', dest: 'eslint.config.mjs' },
12
12
  { source: 'src/config/.prettierrc', dest: '.prettierrc' },
13
+ { source: 'src/config/.eslintignore', dest: '.eslintignore' },
13
14
  { source: 'src/config/cspell.json', dest: 'cspell.json' },
14
15
  { source: 'tsconfig.json', dest: 'tsconfig.json' },
15
16
  ];
package/eslint.config.mjs CHANGED
@@ -2,19 +2,14 @@ import tsPlugin from '@typescript-eslint/eslint-plugin';
2
2
  import tsParser from '@typescript-eslint/parser';
3
3
  import prettierPlugin from 'eslint-plugin-prettier';
4
4
 
5
+ import { IGNORE_PATTERNS, SOURCE_EXTENSIONS } from './src/config/constants.js';
6
+
5
7
  export default [
6
8
  {
7
- files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
8
- ignores: [
9
- '**/node_modules/**',
10
- '**/dist/**',
11
- '**/.git/**',
12
- '**/build/**',
13
- '**/coverage/**',
14
- '**/.next/**',
15
- '**/.nuxt/**',
16
- '**/out/**',
17
- ],
9
+ files: SOURCE_EXTENSIONS.all.map(ext => `**/*${ext}`),
10
+
11
+ ignores: IGNORE_PATTERNS,
12
+
18
13
  languageOptions: {
19
14
  parser: tsParser,
20
15
  parserOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-checkmate",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
5
5
  "keywords": [
6
6
  "github-actions",
@@ -1,50 +0,0 @@
1
- "use strict";
2
- // import fs from 'node:fs';
3
- // import path from 'node:path';
4
- // import { logger } from '../utils';
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- // interface ConfigFile {
7
- // source: string;
8
- // dest: string;
9
- // }
10
- // const configFiles: ConfigFile[] = [
11
- // {
12
- // source: 'src/config/eslint.config.mjs',
13
- // dest: 'eslint.config.mjs',
14
- // },
15
- // {
16
- // source: 'src/config/.prettierrc',
17
- // dest: '.prettierrc',
18
- // },
19
- // {
20
- // source: 'src/config/cspell.json',
21
- // dest: 'cspell.json',
22
- // },
23
- // ];
24
- // /**
25
- // * Copy configuration files from src/config to dist/
26
- // */
27
- // function copyConfigs(): void {
28
- // const projectRoot = path.resolve(__dirname, '../..');
29
- // const distDir = path.join(projectRoot, 'dist');
30
- // if (!fs.existsSync(distDir)) {
31
- // fs.mkdirSync(distDir, { recursive: true });
32
- // }
33
- // logger.log('šŸ“¦ Copying configuration files...\n');
34
- // configFiles.forEach(({ source, dest }) => {
35
- // const srcPath = path.join(projectRoot, source);
36
- // const destPath = path.join(distDir, dest);
37
- // if (fs.existsSync(srcPath)) {
38
- // fs.copyFileSync(srcPath, destPath);
39
- // logger.log(`āœ… Copied ${dest}`);
40
- // } else {
41
- // logger.warn(`āš ļø File not found: ${source}`);
42
- // }
43
- // });
44
- // logger.info('\n✨ Config files copied successfully!\n');
45
- // }
46
- // // Run if called directly
47
- // if (require.main === module) {
48
- // copyConfigs();
49
- // }
50
- // export { copyConfigs };