@synergyerp/frontend-standards 1.5.7 → 1.5.9

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/.husky/commit-msg CHANGED
@@ -1,5 +1,2 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  echo "📝 Validating commit message..."
5
2
  pnpm exec commitlint --edit "$1"
package/.husky/pre-commit CHANGED
@@ -1,6 +1,3 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  # Detect --no-verify bypass patterns
5
2
  sh "$(dirname -- "$0")/../scripts/detect-no-verify.sh"
6
3
 
package/.husky/pre-push CHANGED
@@ -1,6 +1,3 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  # Detect --no-verify bypass patterns
5
2
  sh "$(dirname -- "$0")/../scripts/detect-no-verify.sh"
6
3
 
package/eslint.config.js CHANGED
@@ -22,6 +22,7 @@ export default tseslint.config(
22
22
  'build/**',
23
23
  'scripts/**',
24
24
  'vitest.config.base.ts',
25
+ 'vitest.config.base.js',
25
26
  'tsconfig.base.json',
26
27
  'tsconfig.json',
27
28
  '**/*.gen.ts',
@@ -296,6 +297,8 @@ export default tseslint.config(
296
297
  'src/test/**',
297
298
  'src/mocks/**',
298
299
  'src/config/**',
300
+ 'vitest/config',
301
+ '@synergyerp/frontend-standards/vitest.config.base',
299
302
  ],
300
303
  },
301
304
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergyerp/frontend-standards",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "SynergyERP frontend standards — ESLint, Prettier, commitlint, Husky, Vitest, TypeScript configs, modularization enforcement, and PR templates.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -16,6 +16,7 @@
16
16
  "commitlint.config.js",
17
17
  "tsconfig.base.json",
18
18
  "vitest.config.base.ts",
19
+ "vitest.config.base.js",
19
20
  "scripts/",
20
21
  ".husky/",
21
22
  ".vscode/",
@@ -23,6 +24,16 @@
23
24
  "FRONTEND_STANDARDS.md",
24
25
  "CICD_STANDARDS.md"
25
26
  ],
27
+ "scripts": {
28
+ "lint": "eslint .",
29
+ "format": "prettier --write .",
30
+ "format:check": "prettier --check .",
31
+ "check-modularization": "node scripts/check-modularization.mjs; exit 0",
32
+ "check-types": "tsc --noEmit; exit 0",
33
+ "test:ci": "exit 0",
34
+ "test": "exit 0",
35
+ "prepare": "echo 'Standards package ready'"
36
+ },
26
37
  "repository": {
27
38
  "type": "git",
28
39
  "url": "git+https://github.com/aoholdings/frontend-standards.git"
@@ -70,14 +81,5 @@
70
81
  "typescript": "^5.5.0",
71
82
  "vitest": "^3.0.0",
72
83
  "@types/node": "^22.0.0"
73
- },
74
- "scripts": {
75
- "lint": "eslint .",
76
- "format": "prettier --write .",
77
- "format:check": "prettier --check .",
78
- "check-modularization": "node scripts/check-modularization.mjs; exit 0",
79
- "check-types": "tsc --noEmit; exit 0",
80
- "test:ci": "exit 0",
81
- "test": "exit 0"
82
84
  }
83
- }
85
+ }
File without changes
File without changes
@@ -0,0 +1,36 @@
1
+ import react from '@vitejs/plugin-react';
2
+ import tsconfigPaths from 'vite-tsconfig-paths';
3
+ import { defineConfig } from 'vitest/config';
4
+
5
+ export default defineConfig({
6
+ plugins: [react(), tsconfigPaths()],
7
+ test: {
8
+ globals: true,
9
+ environment: 'jsdom',
10
+ setupFiles: ['./src/test/setup.ts'],
11
+ include: ['src/**/*.{test,spec}.{ts,tsx}'],
12
+ exclude: ['node_modules', 'dist', 'build'],
13
+ css: true,
14
+ coverage: {
15
+ provider: 'v8',
16
+ reporter: ['text', 'json', 'html', 'cobertura'],
17
+ include: ['src/**/*.{ts,tsx}'],
18
+ exclude: [
19
+ 'src/**/*.test.{ts,tsx}',
20
+ 'src/**/*.spec.{ts,tsx}',
21
+ 'src/**/*.d.ts',
22
+ 'src/test/**',
23
+ 'src/mocks/**',
24
+ 'src/main.tsx',
25
+ 'src/vite-env.d.ts',
26
+ ],
27
+ thresholds: {
28
+ lines: 80,
29
+ branches: 75,
30
+ functions: 80,
31
+ statements: 80,
32
+ perFile: true,
33
+ },
34
+ },
35
+ },
36
+ });