pr-checkmate 1.0.17 → 1.0.18
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/.prettierrc +8 -0
- package/cspell.json +35 -0
- package/eslint.config.mjs +73 -0
- package/package.json +4 -1
package/.prettierrc
ADDED
package/cspell.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pr-checkmate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Automated PR quality checks: linting, formatting, dependency analysis, and spellcheck",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github-actions",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"dist",
|
|
21
21
|
"README.md",
|
|
22
22
|
"scripts/copy-configs.js",
|
|
23
|
+
"eslint.config.mjs",
|
|
24
|
+
".prettierrc",
|
|
25
|
+
"cspell.json",
|
|
23
26
|
"LICENSE"
|
|
24
27
|
],
|
|
25
28
|
"scripts": {
|