Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,298 @@
|
||||
{
|
||||
"root": true,
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es2022": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "import", "jsx-a11y", "react-hooks"],
|
||||
"extends": ["plugin:jsx-a11y/recommended"],
|
||||
"ignorePatterns": [
|
||||
".react-router/",
|
||||
"apps/web/.react-router/",
|
||||
"app/",
|
||||
"app/generated/",
|
||||
"apps/web/app/generated/",
|
||||
"build/",
|
||||
"coverage/",
|
||||
"dist/",
|
||||
"node_modules/",
|
||||
"!apps/web/app/utils/services/.server/",
|
||||
"!apps/web/app/utils/services/.server/urlService.test.ts",
|
||||
"!apps/web/app/utils/services/apiService.entity-resolver.test.ts",
|
||||
"!apps/web/app/utils/db/users.mfa.test.ts",
|
||||
"!utils/services/.server/",
|
||||
"!utils/services/.server/urlService.test.ts",
|
||||
"!utils/services/apiService.entity-resolver.test.ts"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "warn",
|
||||
"no-debugger": "error",
|
||||
"jsx-a11y/no-autofocus": "off",
|
||||
"import/first": "off",
|
||||
"@typescript-eslint/consistent-type-imports": "off",
|
||||
"prefer-const": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"no-var": "off",
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"group": [
|
||||
"~/generated/prisma/client/*",
|
||||
"app/generated/prisma/client/*",
|
||||
"apps/web/app/generated/prisma/client/*",
|
||||
"@prisma/client",
|
||||
"@prisma/client/*"
|
||||
],
|
||||
"message": "Import Prisma through @toolctrl/db package boundaries instead of generated clients."
|
||||
},
|
||||
{
|
||||
"group": ["@toolctrl/entitlements/src/*", "packages/entitlements/src/*"],
|
||||
"message": "Import entitlements through the public @toolctrl/entitlements package boundary."
|
||||
},
|
||||
{
|
||||
"group": [
|
||||
"@toolctrl/foundation/src/*",
|
||||
"packages/foundation/src/*",
|
||||
"@toolctrl/view-models/src/*",
|
||||
"packages/view-models/src/*",
|
||||
"@toolctrl/ui-app/src/*",
|
||||
"packages/ui-app/src/*",
|
||||
"@toolctrl/ui-subframe/src/*",
|
||||
"packages/ui-subframe/src/*",
|
||||
"@toolctrl/ui-mock/src/*",
|
||||
"packages/ui-mock/src/*"
|
||||
],
|
||||
"message": "Import Phase C packages through their public @toolctrl/* package boundaries."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [".eslintrc"],
|
||||
"parser": "jsonc-eslint-parser",
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unused-vars": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"**/*.server.ts",
|
||||
"**/*.server.tsx",
|
||||
"apps/api/src/**/*.ts",
|
||||
"apps/worker/src/**/*.ts",
|
||||
"packages/*/src/**/*.ts",
|
||||
"apps/web/app/utils/**/*.ts",
|
||||
"apps/web/app/modules/**/services/**/*.ts",
|
||||
"apps/web/app/modules/**/db/**/*.ts"
|
||||
],
|
||||
"excludedFiles": [
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"scripts/**/*.ts",
|
||||
"scripts/**/*.mjs",
|
||||
"scripts/**/*.js"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"apps/web/app/components/**/*.tsx",
|
||||
"apps/web/app/routes/**/*.tsx"
|
||||
],
|
||||
"excludedFiles": [
|
||||
"**/*.server.tsx",
|
||||
"**/*.server.ts"
|
||||
],
|
||||
"rules": {
|
||||
"no-console": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["packages/db/src/client.server.ts", "packages/db/src/prisma-browser.ts"],
|
||||
"rules": {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"group": [
|
||||
"~/generated/prisma/client/*",
|
||||
"app/generated/prisma/client/*",
|
||||
"apps/web/app/generated/prisma/client/*",
|
||||
"@prisma/client",
|
||||
"@prisma/client/*"
|
||||
],
|
||||
"message": "Import Prisma through package-owned generated entrypoints inside @toolctrl/db boundaries."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["app/utils/db/**/*.ts", "apps/web/app/utils/db/**/*.ts"],
|
||||
"rules": {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"group": [
|
||||
"~/generated/prisma/client/*",
|
||||
"app/generated/prisma/client/*",
|
||||
"apps/web/app/generated/prisma/client/*",
|
||||
"@prisma/client",
|
||||
"@prisma/client/*"
|
||||
],
|
||||
"message": "Import Prisma through @toolctrl/db package boundaries instead of generated clients."
|
||||
},
|
||||
{
|
||||
"group": ["react", "react/*"],
|
||||
"message": "app/utils/db is a server-only legacy DB boundary; keep React/UI imports out. See docs/db-legacy.md."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["packages/foundation/src/**/*.{ts,tsx}", "packages/view-models/src/**/*.{ts,tsx}"],
|
||||
"rules": {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"group": [
|
||||
"react",
|
||||
"react/*",
|
||||
"react-dom",
|
||||
"react-dom/*",
|
||||
"~/generated/prisma/client/*",
|
||||
"app/generated/prisma/client/*",
|
||||
"apps/web/app/generated/prisma/client/*",
|
||||
"@prisma/client",
|
||||
"@prisma/client/*",
|
||||
"~/routes/*",
|
||||
"~/components/*",
|
||||
"app/*",
|
||||
"apps/web/app/*"
|
||||
],
|
||||
"message": "Foundation and view-model packages must stay UI/runtime/generated-client free."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["packages/ui-app/src/**/*.{ts,tsx}", "packages/ui-subframe/src/**/*.{ts,tsx}", "packages/ui-mock/src/**/*.{ts,tsx}"],
|
||||
"rules": {
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"group": [
|
||||
"~/generated/prisma/client/*",
|
||||
"app/generated/prisma/client/*",
|
||||
"apps/web/app/generated/prisma/client/*",
|
||||
"@prisma/client",
|
||||
"@prisma/client/*",
|
||||
"@toolctrl/db",
|
||||
"@toolctrl/db/*"
|
||||
],
|
||||
"message": "UI packages must not access DB boundaries directly."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["packages/ui-app/src/**/*.{ts,tsx}", "packages/ui-subframe/src/**/*.{ts,tsx}", "packages/ui-mock/src/**/*.{ts,tsx}"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Property[key.name=/^(title|label|placeholder|ariaLabel|alt|description|message|heading|subject)$/] > Literal[value=/[A-Za-zÄÖÜäöü]/]",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.value=/^(title|label|placeholder|aria-label|ariaLabel|alt|description|message|heading|subject)$/] > Literal[value=/[A-Za-zÄÖÜäöü]/]",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.name=/^(title|label|placeholder|ariaLabel|alt|description|message|heading|subject)$/] > TemplateLiteral",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.value=/^(title|label|placeholder|aria-label|ariaLabel|alt|description|message|heading|subject)$/] > TemplateLiteral",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["packages/ui-app/src/**/*.{tsx}", "packages/ui-subframe/src/**/*.{tsx}", "packages/ui-mock/src/**/*.{tsx}"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Property[key.name=/^(title|label|placeholder|ariaLabel|alt|description|message|heading|subject)$/] > Literal[value=/[A-Za-zÄÖÜäöü]/]",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.value=/^(title|label|placeholder|aria-label|ariaLabel|alt|description|message|heading|subject)$/] > Literal[value=/[A-Za-zÄÖÜäöü]/]",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.name=/^(title|label|placeholder|ariaLabel|alt|description|message|heading|subject)$/] > TemplateLiteral",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "Property[key.value=/^(title|label|placeholder|aria-label|ariaLabel|alt|description|message|heading|subject)$/] > TemplateLiteral",
|
||||
"message": "Use i18n key fields instead of hardcoded user-facing strings in Phase C UI package descriptors."
|
||||
},
|
||||
{
|
||||
"selector": "JSXText[value=/\\S/]",
|
||||
"message": "Use i18n label keys or translated values instead of hardcoded JSX text in Phase C UI packages."
|
||||
},
|
||||
{
|
||||
"selector": "JSXAttribute[name.name=/^(aria-label|title|placeholder)$/] > Literal[value=/[A-Za-zÄÖÜäöü]/]",
|
||||
"message": "Use i18n label keys or translated values instead of hardcoded JSX accessibility/title text in Phase C UI packages."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user