pr-checkmate 1.0.10 → 1.0.11

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.
@@ -8,43 +8,29 @@ const node_fs_1 = __importDefault(require("node:fs"));
8
8
  const node_path_1 = __importDefault(require("node:path"));
9
9
  const utils_1 = require("../utils");
10
10
  const configFiles = [
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
- },
11
+ { source: 'src/config/eslint.config.mjs', dest: 'eslint.config.mjs' },
12
+ { source: 'src/config/.prettierrc', dest: '.prettierrc' },
13
+ { source: 'src/config/cspell.json', dest: 'cspell.json' },
23
14
  ];
24
15
  /**
25
- * Copy configuration files from src/config to dist/
16
+ * Copy configuration files to package root (NOT dist!)
26
17
  */
27
18
  function copyConfigs() {
28
- const projectRoot = node_path_1.default.resolve(__dirname, '../..');
29
- const distDir = node_path_1.default.join(projectRoot, 'dist');
30
- if (!node_fs_1.default.existsSync(distDir)) {
31
- node_fs_1.default.mkdirSync(distDir, { recursive: true });
32
- }
33
- utils_1.logger.log('📦 Copying configuration files...\n');
19
+ const projectRoot = node_path_1.default.resolve(__dirname, '..', '..'); // package root
20
+ utils_1.logger.log('📦 Copying configuration files to package root...\n');
34
21
  configFiles.forEach(({ source, dest }) => {
35
22
  const srcPath = node_path_1.default.join(projectRoot, source);
36
- const destPath = node_path_1.default.join(distDir, dest);
23
+ const destPath = node_path_1.default.join(projectRoot, dest);
37
24
  if (node_fs_1.default.existsSync(srcPath)) {
38
25
  node_fs_1.default.copyFileSync(srcPath, destPath);
39
26
  utils_1.logger.log(`✅ Copied ${dest}`);
40
27
  }
41
28
  else {
42
- utils_1.logger.warn(`⚠️ File not found: ${source}`);
29
+ utils_1.logger.warn(`⚠️ File not found: ${source}`);
43
30
  }
44
31
  });
45
- utils_1.logger.info('\n✨ Config files copied successfully!\n');
32
+ utils_1.logger.info('\n✨ Config files copied to package root!\n');
46
33
  }
47
- // Run if called directly
48
34
  if (require.main === module) {
49
35
  copyConfigs();
50
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pr-checkmate",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
5
5
  "keywords": [
6
6
  "github-actions",
package/dist/.prettierrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "trailingComma": "all",
5
- "bracketSpacing": true,
6
- "arrowParens": "avoid",
7
- "printWidth": 100
8
- }
package/dist/cspell.json DELETED
@@ -1,35 +0,0 @@
1
- {
2
- "version": "0.2",
3
- "language": "en",
4
- "words": [
5
- "checkmate",
6
- "eslint",
7
- "prettier",
8
- "cspell",
9
- "typescript",
10
- "execa",
11
- "playwright",
12
- "pytest"
13
- ],
14
- "ignorePaths": [
15
- "**/node_modules/**",
16
- "**/dist/**",
17
- "**/.git/**",
18
- "**/build/**",
19
- "**/coverage/**",
20
- "**/.next/**",
21
- "**/.nuxt/**",
22
- "**/out/**",
23
- "**/__pycache__/**",
24
- "**/.pytest_cache/**",
25
- "**/.venv/**",
26
- "**/venv/**",
27
- "**/package-lock.json",
28
- "**/yarn.lock",
29
- "**/pnpm-lock.yaml",
30
- "**/*.min.js",
31
- "**/*.min.css"
32
- ],
33
- "enableFiletypes": ["typescript", "javascript", "markdown", "json"],
34
- "ignoreRegExpList": ["/https?:\\/\\/[^\\s]+/g", "/\\b[0-9a-f]{7,40}\\b/gi"]
35
- }
@@ -1,73 +0,0 @@
1
- import tsPlugin from '@typescript-eslint/eslint-plugin';
2
- import tsParser from '@typescript-eslint/parser';
3
- import prettierPlugin from 'eslint-plugin-prettier';
4
-
5
- export default [
6
- {
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
- ],
18
- languageOptions: {
19
- parser: tsParser,
20
- parserOptions: {
21
- ecmaVersion: 2020,
22
- sourceType: 'module',
23
- project: './tsconfig.json',
24
- },
25
- },
26
-
27
- plugins: {
28
- '@typescript-eslint': tsPlugin,
29
- prettier: prettierPlugin,
30
- },
31
-
32
- rules: {
33
- 'no-console': 'warn',
34
- 'no-debugger': 'error',
35
- 'prefer-const': 'error',
36
- eqeqeq: ['error', 'always'],
37
- '@typescript-eslint/no-unused-vars': [
38
- 'error',
39
- { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
40
- ],
41
- '@typescript-eslint/explicit-function-return-type': ['warn'],
42
- '@typescript-eslint/no-explicit-any': ['warn'],
43
- '@typescript-eslint/no-floating-promises': ['error'],
44
- 'space-before-function-paren': 'off',
45
- 'operator-linebreak': 'off',
46
- 'max-len': ['warn', { code: 100 }],
47
-
48
- // Formatting / Style Rules
49
- semi: ['error', 'always'],
50
- quotes: ['error', 'single', { avoidEscape: true }],
51
- 'object-curly-spacing': ['error', 'always'],
52
- 'space-infix-ops': 'error',
53
- 'keyword-spacing': ['error', { before: true, after: true }],
54
- 'padding-line-between-statements': [
55
- 'error',
56
- { blankLine: 'always', prev: 'block', next: '*' },
57
- { blankLine: 'always', prev: '*', next: 'return' },
58
- ],
59
-
60
- // Prettier integration
61
- 'prettier/prettier': [
62
- 'error',
63
- {
64
- semi: true,
65
- singleQuote: true,
66
- bracketSpacing: true,
67
- arrowParens: 'avoid',
68
- printWidth: 100,
69
- },
70
- ],
71
- },
72
- },
73
- ];