@synergyerp/frontend-standards 1.5.0 → 1.5.2

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
File without changes
package/.husky/pre-commit CHANGED
File without changes
package/.husky/pre-push CHANGED
File without changes
package/eslint.config.js CHANGED
@@ -256,34 +256,18 @@ export default tseslint.config(
256
256
  ],
257
257
 
258
258
  // ===== MODULARIZATION (FRONTEND_STANDARDS.md Section 5.2.1) =====
259
- 'boundaries/entry-point': [
259
+ 'boundaries/dependencies': [
260
260
  'error',
261
261
  {
262
262
  default: 'disallow',
263
263
  rules: [
264
- { target: ['src/services/**/*.ts'], allow: 'src/services/api-client.ts' },
265
- {
266
- target: [
267
- 'src/hooks/use-employee*.ts',
268
- 'src/hooks/use-auth*.ts',
269
- 'src/hooks/use-user*.ts',
270
- ],
271
- disallow: 'src/hooks/',
272
- },
273
- { target: ['src/store/**/*.ts'], allow: 'src/store/index.ts' },
274
- ],
275
- },
276
- ],
277
- 'boundaries/element-types': [
278
- 'error',
279
- {
280
- default: 'disallow',
281
- rules: [
282
- { from: ['employee', 'auth', 'users'], allow: ['shared'] },
283
- { from: ['employee'], disallow: ['auth', 'users'] },
284
- { from: ['auth'], disallow: ['employee', 'users'] },
285
- { from: ['users'], disallow: ['employee', 'auth'] },
286
- { from: ['shared'], allow: ['shared'] },
264
+ { from: { type: 'employee' }, allow: { type: 'shared' } },
265
+ { from: { type: 'auth' }, allow: { type: 'shared' } },
266
+ { from: { type: 'users' }, allow: { type: 'shared' } },
267
+ { from: { type: 'employee' }, disallow: [{ type: 'auth' }, { type: 'users' }] },
268
+ { from: { type: 'auth' }, disallow: [{ type: 'employee' }, { type: 'users' }] },
269
+ { from: { type: 'users' }, disallow: [{ type: 'employee' }, { type: 'auth' }] },
270
+ { from: { type: 'shared' }, allow: { type: 'shared' } },
287
271
  ],
288
272
  },
289
273
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synergyerp/frontend-standards",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
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",
@@ -23,16 +23,6 @@
23
23
  "FRONTEND_STANDARDS.md",
24
24
  "CICD_STANDARDS.md"
25
25
  ],
26
- "scripts": {
27
- "lint": "eslint .",
28
- "format": "prettier --write .",
29
- "format:check": "prettier --check .",
30
- "check-modularization": "node scripts/check-modularization.mjs; exit 0",
31
- "check-types": "tsc --noEmit; exit 0",
32
- "test:ci": "exit 0",
33
- "test": "exit 0",
34
- "prepare": "echo 'Standards package ready'"
35
- },
36
26
  "repository": {
37
27
  "type": "git",
38
28
  "url": "git+https://github.com/aoholdings/frontend-standards.git"
@@ -80,5 +70,14 @@
80
70
  "typescript": "^5.5.0",
81
71
  "vitest": "^3.0.0",
82
72
  "@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"
83
82
  }
84
- }
83
+ }
File without changes
File without changes