vibe-and-thrive 1.0.0

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.
Files changed (145) hide show
  1. package/.claude/commands/add-tests.md +240 -0
  2. package/.claude/commands/e2e-scaffold.md +212 -0
  3. package/.claude/commands/explain.md +110 -0
  4. package/.claude/commands/fix-types.md +238 -0
  5. package/.claude/commands/refactor.md +184 -0
  6. package/.claude/commands/review.md +136 -0
  7. package/.claude/commands/security-check.md +223 -0
  8. package/.claude/commands/styleguide.md +446 -0
  9. package/.claude/commands/tdd-feature.md +227 -0
  10. package/.claude/commands/vibe-check.md +112 -0
  11. package/.pre-commit-hooks.yaml +77 -0
  12. package/LICENSE +21 -0
  13. package/README.md +167 -0
  14. package/bin/vibe-check.js +19 -0
  15. package/dist/cli.d.ts +13 -0
  16. package/dist/cli.d.ts.map +1 -0
  17. package/dist/cli.js +206 -0
  18. package/dist/cli.js.map +1 -0
  19. package/dist/eslint-plugin/index.d.ts +66 -0
  20. package/dist/eslint-plugin/index.d.ts.map +1 -0
  21. package/dist/eslint-plugin/index.js +67 -0
  22. package/dist/eslint-plugin/index.js.map +1 -0
  23. package/dist/eslint-plugin/rules/max-function-length.d.ts +8 -0
  24. package/dist/eslint-plugin/rules/max-function-length.d.ts.map +1 -0
  25. package/dist/eslint-plugin/rules/max-function-length.js +69 -0
  26. package/dist/eslint-plugin/rules/max-function-length.js.map +1 -0
  27. package/dist/eslint-plugin/rules/no-any-type.d.ts +8 -0
  28. package/dist/eslint-plugin/rules/no-any-type.d.ts.map +1 -0
  29. package/dist/eslint-plugin/rules/no-any-type.js +29 -0
  30. package/dist/eslint-plugin/rules/no-any-type.js.map +1 -0
  31. package/dist/eslint-plugin/rules/no-debug-statements.d.ts +8 -0
  32. package/dist/eslint-plugin/rules/no-debug-statements.d.ts.map +1 -0
  33. package/dist/eslint-plugin/rules/no-debug-statements.js +59 -0
  34. package/dist/eslint-plugin/rules/no-debug-statements.js.map +1 -0
  35. package/dist/eslint-plugin/rules/no-deep-nesting.d.ts +8 -0
  36. package/dist/eslint-plugin/rules/no-deep-nesting.d.ts.map +1 -0
  37. package/dist/eslint-plugin/rules/no-deep-nesting.js +56 -0
  38. package/dist/eslint-plugin/rules/no-deep-nesting.js.map +1 -0
  39. package/dist/eslint-plugin/rules/no-empty-catch.d.ts +8 -0
  40. package/dist/eslint-plugin/rules/no-empty-catch.d.ts.map +1 -0
  41. package/dist/eslint-plugin/rules/no-empty-catch.js +31 -0
  42. package/dist/eslint-plugin/rules/no-empty-catch.js.map +1 -0
  43. package/dist/eslint-plugin/rules/no-magic-numbers.d.ts +8 -0
  44. package/dist/eslint-plugin/rules/no-magic-numbers.d.ts.map +1 -0
  45. package/dist/eslint-plugin/rules/no-magic-numbers.js +58 -0
  46. package/dist/eslint-plugin/rules/no-magic-numbers.js.map +1 -0
  47. package/dist/eslint-plugin/rules/no-snake-case-props.d.ts +8 -0
  48. package/dist/eslint-plugin/rules/no-snake-case-props.d.ts.map +1 -0
  49. package/dist/eslint-plugin/rules/no-snake-case-props.js +48 -0
  50. package/dist/eslint-plugin/rules/no-snake-case-props.js.map +1 -0
  51. package/dist/hooks/check-any-types.d.ts +6 -0
  52. package/dist/hooks/check-any-types.d.ts.map +1 -0
  53. package/dist/hooks/check-any-types.js +73 -0
  54. package/dist/hooks/check-any-types.js.map +1 -0
  55. package/dist/hooks/check-commented-code.d.ts +6 -0
  56. package/dist/hooks/check-commented-code.d.ts.map +1 -0
  57. package/dist/hooks/check-commented-code.js +81 -0
  58. package/dist/hooks/check-commented-code.js.map +1 -0
  59. package/dist/hooks/check-console-error.d.ts +6 -0
  60. package/dist/hooks/check-console-error.d.ts.map +1 -0
  61. package/dist/hooks/check-console-error.js +41 -0
  62. package/dist/hooks/check-console-error.js.map +1 -0
  63. package/dist/hooks/check-debug-statements.d.ts +6 -0
  64. package/dist/hooks/check-debug-statements.d.ts.map +1 -0
  65. package/dist/hooks/check-debug-statements.js +120 -0
  66. package/dist/hooks/check-debug-statements.js.map +1 -0
  67. package/dist/hooks/check-deep-nesting.d.ts +6 -0
  68. package/dist/hooks/check-deep-nesting.d.ts.map +1 -0
  69. package/dist/hooks/check-deep-nesting.js +116 -0
  70. package/dist/hooks/check-deep-nesting.js.map +1 -0
  71. package/dist/hooks/check-docker-platform.d.ts +6 -0
  72. package/dist/hooks/check-docker-platform.d.ts.map +1 -0
  73. package/dist/hooks/check-docker-platform.js +42 -0
  74. package/dist/hooks/check-docker-platform.js.map +1 -0
  75. package/dist/hooks/check-dry-violations.d.ts +6 -0
  76. package/dist/hooks/check-dry-violations.d.ts.map +1 -0
  77. package/dist/hooks/check-dry-violations.js +124 -0
  78. package/dist/hooks/check-dry-violations.js.map +1 -0
  79. package/dist/hooks/check-empty-catch.d.ts +6 -0
  80. package/dist/hooks/check-empty-catch.d.ts.map +1 -0
  81. package/dist/hooks/check-empty-catch.js +111 -0
  82. package/dist/hooks/check-empty-catch.js.map +1 -0
  83. package/dist/hooks/check-function-length.d.ts +6 -0
  84. package/dist/hooks/check-function-length.d.ts.map +1 -0
  85. package/dist/hooks/check-function-length.js +152 -0
  86. package/dist/hooks/check-function-length.js.map +1 -0
  87. package/dist/hooks/check-hardcoded-urls.d.ts +6 -0
  88. package/dist/hooks/check-hardcoded-urls.d.ts.map +1 -0
  89. package/dist/hooks/check-hardcoded-urls.js +124 -0
  90. package/dist/hooks/check-hardcoded-urls.js.map +1 -0
  91. package/dist/hooks/check-magic-numbers.d.ts +6 -0
  92. package/dist/hooks/check-magic-numbers.d.ts.map +1 -0
  93. package/dist/hooks/check-magic-numbers.js +116 -0
  94. package/dist/hooks/check-magic-numbers.js.map +1 -0
  95. package/dist/hooks/check-secrets.d.ts +6 -0
  96. package/dist/hooks/check-secrets.d.ts.map +1 -0
  97. package/dist/hooks/check-secrets.js +138 -0
  98. package/dist/hooks/check-secrets.js.map +1 -0
  99. package/dist/hooks/check-snake-case-ts.d.ts +6 -0
  100. package/dist/hooks/check-snake-case-ts.d.ts.map +1 -0
  101. package/dist/hooks/check-snake-case-ts.js +78 -0
  102. package/dist/hooks/check-snake-case-ts.js.map +1 -0
  103. package/dist/hooks/check-todo-fixme.d.ts +6 -0
  104. package/dist/hooks/check-todo-fixme.d.ts.map +1 -0
  105. package/dist/hooks/check-todo-fixme.js +41 -0
  106. package/dist/hooks/check-todo-fixme.js.map +1 -0
  107. package/dist/hooks/check-unsafe-html.d.ts +6 -0
  108. package/dist/hooks/check-unsafe-html.d.ts.map +1 -0
  109. package/dist/hooks/check-unsafe-html.js +101 -0
  110. package/dist/hooks/check-unsafe-html.js.map +1 -0
  111. package/dist/hooks/index.d.ts +29 -0
  112. package/dist/hooks/index.d.ts.map +1 -0
  113. package/dist/hooks/index.js +54 -0
  114. package/dist/hooks/index.js.map +1 -0
  115. package/dist/index.d.ts +9 -0
  116. package/dist/index.d.ts.map +1 -0
  117. package/dist/index.js +10 -0
  118. package/dist/index.js.map +1 -0
  119. package/dist/lint-staged/config.d.ts +20 -0
  120. package/dist/lint-staged/config.d.ts.map +1 -0
  121. package/dist/lint-staged/config.js +27 -0
  122. package/dist/lint-staged/config.js.map +1 -0
  123. package/dist/utils/file-reader.d.ts +24 -0
  124. package/dist/utils/file-reader.d.ts.map +1 -0
  125. package/dist/utils/file-reader.js +140 -0
  126. package/dist/utils/file-reader.js.map +1 -0
  127. package/dist/utils/patterns.d.ts +27 -0
  128. package/dist/utils/patterns.d.ts.map +1 -0
  129. package/dist/utils/patterns.js +84 -0
  130. package/dist/utils/patterns.js.map +1 -0
  131. package/dist/utils/reporters.d.ts +21 -0
  132. package/dist/utils/reporters.d.ts.map +1 -0
  133. package/dist/utils/reporters.js +115 -0
  134. package/dist/utils/reporters.js.map +1 -0
  135. package/dist/utils/types.d.ts +71 -0
  136. package/dist/utils/types.d.ts.map +1 -0
  137. package/dist/utils/types.js +5 -0
  138. package/dist/utils/types.js.map +1 -0
  139. package/integrations/cursorrules.template +147 -0
  140. package/integrations/eslint.config.js +34 -0
  141. package/integrations/lint-staged.config.js +34 -0
  142. package/integrations/ruff.toml +125 -0
  143. package/integrations/vibe-check.yml +116 -0
  144. package/integrations/vscode-settings.json +127 -0
  145. package/package.json +81 -0
@@ -0,0 +1,127 @@
1
+ {
2
+ // VS Code Settings for Better AI-Assisted Coding
3
+ // Copy relevant settings to your .vscode/settings.json
4
+
5
+ // ============================================
6
+ // TypeScript - Catch issues early
7
+ // ============================================
8
+ "typescript.tsdk": "node_modules/typescript/lib",
9
+ "typescript.enablePromptUseWorkspaceTsdk": true,
10
+ "typescript.preferences.quoteStyle": "single",
11
+ "typescript.suggest.completeFunctionCalls": true,
12
+ "typescript.inlayHints.parameterNames.enabled": "all",
13
+ "typescript.inlayHints.functionLikeReturnTypes.enabled": true,
14
+
15
+ // Strict null checks in editor
16
+ "typescript.strict": true,
17
+
18
+ // ============================================
19
+ // Editor - Clean code formatting
20
+ // ============================================
21
+ "editor.formatOnSave": true,
22
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
23
+ "editor.codeActionsOnSave": {
24
+ "source.fixAll.eslint": "explicit",
25
+ "source.organizeImports": "explicit"
26
+ },
27
+
28
+ // Show problems in editor
29
+ "editor.rulers": [80, 100],
30
+ "editor.wordWrap": "wordWrapColumn",
31
+ "editor.wordWrapColumn": 100,
32
+
33
+ // ============================================
34
+ // ESLint - Enforce code quality
35
+ // ============================================
36
+ "eslint.validate": [
37
+ "javascript",
38
+ "javascriptreact",
39
+ "typescript",
40
+ "typescriptreact"
41
+ ],
42
+ "eslint.codeActionsOnSave.mode": "all",
43
+
44
+ // ============================================
45
+ // Python - Type hints and formatting
46
+ // ============================================
47
+ "[python]": {
48
+ "editor.defaultFormatter": "ms-python.black-formatter",
49
+ "editor.formatOnSave": true,
50
+ "editor.codeActionsOnSave": {
51
+ "source.organizeImports": "explicit"
52
+ }
53
+ },
54
+ "python.analysis.typeCheckingMode": "basic",
55
+ "python.analysis.autoImportCompletions": true,
56
+
57
+ // ============================================
58
+ // Files - Keep workspace clean
59
+ // ============================================
60
+ "files.exclude": {
61
+ "**/__pycache__": true,
62
+ "**/.pytest_cache": true,
63
+ "**/node_modules": true,
64
+ "**/.git": true,
65
+ "**/dist": true,
66
+ "**/build": true,
67
+ "**/*.pyc": true
68
+ },
69
+ "files.trimTrailingWhitespace": true,
70
+ "files.insertFinalNewline": true,
71
+
72
+ // ============================================
73
+ // Search - Focus on relevant files
74
+ // ============================================
75
+ "search.exclude": {
76
+ "**/node_modules": true,
77
+ "**/dist": true,
78
+ "**/build": true,
79
+ "**/.git": true,
80
+ "**/coverage": true,
81
+ "**/*.min.js": true,
82
+ "**/package-lock.json": true,
83
+ "**/yarn.lock": true
84
+ },
85
+
86
+ // ============================================
87
+ // Git - Clean commits
88
+ // ============================================
89
+ "git.enableSmartCommit": true,
90
+ "git.confirmSync": false,
91
+ "git.autofetch": true,
92
+
93
+ // ============================================
94
+ // Terminal - Easy testing
95
+ // ============================================
96
+ "terminal.integrated.defaultProfile.osx": "zsh",
97
+ "terminal.integrated.defaultProfile.linux": "bash",
98
+
99
+ // ============================================
100
+ // Extensions - Recommended for vibe coding
101
+ // ============================================
102
+ // Install these extensions:
103
+ // - ESLint (dbaeumer.vscode-eslint)
104
+ // - Prettier (esbenp.prettier-vscode)
105
+ // - TypeScript Error Translator (mattpocock.ts-error-translator)
106
+ // - Error Lens (usernamehw.errorlens) - Shows errors inline
107
+ // - GitLens (eamodio.gitlens) - Better git integration
108
+ // - Python (ms-python.python)
109
+ // - Black Formatter (ms-python.black-formatter)
110
+ // - Pylance (ms-python.vscode-pylance)
111
+
112
+ // ============================================
113
+ // AI Assistant Settings
114
+ // ============================================
115
+ // If using GitHub Copilot:
116
+ "github.copilot.enable": {
117
+ "*": true,
118
+ "yaml": false,
119
+ "plaintext": false,
120
+ "markdown": false,
121
+ "env": false
122
+ },
123
+
124
+ // Show AI suggestions but don't auto-accept
125
+ "editor.inlineSuggest.enabled": true,
126
+ "editor.suggestSelection": "first"
127
+ }
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "vibe-and-thrive",
3
+ "version": "1.0.0",
4
+ "description": "Catch common AI-generated code issues before they hit your codebase",
5
+ "author": "AllThrive AI <hello@allthrive.ai>",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/allthriveai/vibe-and-thrive"
10
+ },
11
+ "homepage": "https://github.com/allthriveai/vibe-and-thrive#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/allthriveai/vibe-and-thrive/issues"
14
+ },
15
+ "keywords": [
16
+ "ai",
17
+ "vibe-coding",
18
+ "pre-commit",
19
+ "eslint-plugin",
20
+ "lint-staged",
21
+ "code-quality",
22
+ "claude",
23
+ "copilot",
24
+ "cursor",
25
+ "linting"
26
+ ],
27
+ "type": "module",
28
+ "main": "dist/index.js",
29
+ "types": "dist/index.d.ts",
30
+ "bin": {
31
+ "vibe-check": "./bin/vibe-check.js"
32
+ },
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "import": "./dist/index.js"
37
+ },
38
+ "./eslint-plugin": {
39
+ "types": "./dist/eslint-plugin/index.d.ts",
40
+ "import": "./dist/eslint-plugin/index.js"
41
+ },
42
+ "./lint-staged": {
43
+ "types": "./dist/lint-staged/config.d.ts",
44
+ "import": "./dist/lint-staged/config.js"
45
+ }
46
+ },
47
+ "files": [
48
+ "dist",
49
+ "bin",
50
+ ".claude",
51
+ ".pre-commit-hooks.yaml",
52
+ "integrations"
53
+ ],
54
+ "scripts": {
55
+ "build": "tsc",
56
+ "dev": "tsc --watch",
57
+ "test": "vitest",
58
+ "test:run": "vitest run",
59
+ "lint": "eslint src",
60
+ "typecheck": "tsc --noEmit",
61
+ "clean": "rm -rf dist",
62
+ "prepublishOnly": "npm run clean && npm run build"
63
+ },
64
+ "engines": {
65
+ "node": ">=18.0.0"
66
+ },
67
+ "peerDependencies": {
68
+ "eslint": ">=8.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "eslint": {
72
+ "optional": true
73
+ }
74
+ },
75
+ "devDependencies": {
76
+ "@types/node": "^20.0.0",
77
+ "eslint": "^9.0.0",
78
+ "typescript": "^5.0.0",
79
+ "vitest": "^2.0.0"
80
+ }
81
+ }