@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 +0 -0
- package/.husky/pre-commit +0 -0
- package/.husky/pre-push +0 -0
- package/eslint.config.js +8 -24
- package/package.json +11 -12
- package/scripts/check-modularization.mjs +0 -0
- package/scripts/detect-no-verify.sh +0 -0
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/
|
|
259
|
+
'boundaries/dependencies': [
|
|
260
260
|
'error',
|
|
261
261
|
{
|
|
262
262
|
default: 'disallow',
|
|
263
263
|
rules: [
|
|
264
|
-
{
|
|
265
|
-
{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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.
|
|
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
|