pr-checkmate 1.0.20 ā 1.0.22
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/.eslintignore +71 -0
- package/cspell.json +5 -1
- package/dist/config/constants.js +44 -1
- package/dist/scripts/copy-configs.js +1 -0
- package/eslint.config.mjs +11 -4
- package/package.json +2 -1
- package/dist/scripts/copy-configs copy.js +0 -50
package/.eslintignore
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
**/node_modules/**
|
|
3
|
+
|
|
4
|
+
# Build outputs
|
|
5
|
+
**/dist/**
|
|
6
|
+
**/build/**
|
|
7
|
+
**/out/**
|
|
8
|
+
**/.next/**
|
|
9
|
+
**/.nuxt/**
|
|
10
|
+
|
|
11
|
+
# Test reports & artifacts
|
|
12
|
+
**/allure-report/**
|
|
13
|
+
**/allure-results/**
|
|
14
|
+
**/reports/**
|
|
15
|
+
**/report/**
|
|
16
|
+
**/test-reports/**
|
|
17
|
+
**/test-report/**
|
|
18
|
+
**/test-output/**
|
|
19
|
+
**/test-results/**
|
|
20
|
+
**/results/**
|
|
21
|
+
**/result/**
|
|
22
|
+
**/coverage/**
|
|
23
|
+
**/.coverage/**
|
|
24
|
+
**/htmlcov/**
|
|
25
|
+
|
|
26
|
+
# Jest
|
|
27
|
+
**/jest-html-reporters-*/
|
|
28
|
+
**/jest-stare/**
|
|
29
|
+
|
|
30
|
+
# Cypress
|
|
31
|
+
**/cypress/reports/**
|
|
32
|
+
**/cypress/videos/**
|
|
33
|
+
**/cypress/screenshots/**
|
|
34
|
+
|
|
35
|
+
# Playwright
|
|
36
|
+
**/playwright-report/**
|
|
37
|
+
**/test-results/**
|
|
38
|
+
|
|
39
|
+
# WebdriverIO
|
|
40
|
+
**/.wdio/**
|
|
41
|
+
**/wdio-logs/**
|
|
42
|
+
|
|
43
|
+
# Mocha/Mochawesome
|
|
44
|
+
**/mochawesome-report/**
|
|
45
|
+
**/mochawesome-reports/**
|
|
46
|
+
|
|
47
|
+
# Maven/JUnit
|
|
48
|
+
**/target/**
|
|
49
|
+
|
|
50
|
+
# Logs
|
|
51
|
+
**/logs/**
|
|
52
|
+
**/*.log
|
|
53
|
+
**/npm-debug.log*
|
|
54
|
+
**/yarn-debug.log*
|
|
55
|
+
|
|
56
|
+
# Python
|
|
57
|
+
**/__pycache__/**
|
|
58
|
+
**/.pytest_cache/**
|
|
59
|
+
**/.venv/**
|
|
60
|
+
**/venv/**
|
|
61
|
+
|
|
62
|
+
# Git
|
|
63
|
+
**/.git/**
|
|
64
|
+
|
|
65
|
+
# Config files
|
|
66
|
+
**/*.config.js
|
|
67
|
+
**/*.config.ts
|
|
68
|
+
**/jest.config.*
|
|
69
|
+
**/wdio.config.*
|
|
70
|
+
**/playwright.config.*
|
|
71
|
+
**/cypress.config.*
|
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/**",
|
package/dist/config/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SOURCE_EXTENSIONS = exports.IGNORE_PATTERNS = void 0;
|
|
3
|
+
exports.SOURCE_EXTENSIONS = exports.CONFIG_FILE_PATTERNS = exports.IGNORE_PATTERNS = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Common patterns to ignore in all checks
|
|
6
6
|
*/
|
|
@@ -17,6 +17,49 @@ 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/**',
|
|
55
|
+
];
|
|
56
|
+
exports.CONFIG_FILE_PATTERNS = [
|
|
57
|
+
'**/*.config.js',
|
|
58
|
+
'**/*.config.ts',
|
|
59
|
+
'**/jest.config.*',
|
|
60
|
+
'**/wdio.config.*',
|
|
61
|
+
'**/playwright.config.*',
|
|
62
|
+
'**/cypress.config.*',
|
|
20
63
|
];
|
|
21
64
|
/**
|
|
22
65
|
* 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
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
2
2
|
import tsParser from '@typescript-eslint/parser';
|
|
3
3
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
4
|
+
/Users/mavox / Projects / todo - app - automation / node_modules / pr - checkmate / dist / config / constants.js
|
|
4
5
|
|
|
5
6
|
export default [
|
|
6
7
|
{
|
|
7
8
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
|
9
|
+
|
|
8
10
|
ignores: [
|
|
9
11
|
'**/node_modules/**',
|
|
10
12
|
'**/dist/**',
|
|
11
|
-
'**/.git/**',
|
|
12
13
|
'**/build/**',
|
|
14
|
+
'**/.git/**',
|
|
13
15
|
'**/coverage/**',
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'**/
|
|
16
|
+
'**/allure-report/**',
|
|
17
|
+
'**/allure-results/**',
|
|
18
|
+
'**/reports/**',
|
|
19
|
+
'**/test-reports/**',
|
|
20
|
+
'**/playwright-report/**',
|
|
21
|
+
'**/*.config.js',
|
|
22
|
+
'**/*.config.ts',
|
|
17
23
|
],
|
|
24
|
+
|
|
18
25
|
languageOptions: {
|
|
19
26
|
parser: tsParser,
|
|
20
27
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pr-checkmate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-actions",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"scripts/copy-configs.js",
|
|
23
23
|
"eslint.config.mjs",
|
|
24
24
|
".prettierrc",
|
|
25
|
+
".eslintignore",
|
|
25
26
|
"cspell.json",
|
|
26
27
|
"tsconfig.json",
|
|
27
28
|
"LICENSE"
|
|
@@ -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 };
|