website refactor
This commit is contained in:
@@ -29,13 +29,29 @@
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"lib/presenters/*.ts",
|
||||
"lib/presenters/*.tsx"
|
||||
"lib/builders/view-models/*.ts",
|
||||
"lib/builders/view-models/*.tsx"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/presenter-contract": "error",
|
||||
"gridpilot-rules/presenter-purity": "error",
|
||||
"gridpilot-rules/filename-presenter-match": "error"
|
||||
"gridpilot-rules/view-model-builder-contract": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"lib/builders/view-data/*.ts",
|
||||
"lib/builders/view-data/*.tsx"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/view-data-builder-contract": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"lib/mutations/**/*.ts"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/mutation-contract": "error",
|
||||
"gridpilot-rules/filename-service-match": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -104,12 +120,20 @@
|
||||
"gridpilot-rules/page-query-return-type": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"templates/**/*.ts",
|
||||
"templates/**/*.tsx"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/view-data-location": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"lib/services/**/*.ts"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/services-must-be-marked": "error",
|
||||
"gridpilot-rules/services-no-external-api": "error",
|
||||
"gridpilot-rules/services-must-be-pure": "error",
|
||||
"gridpilot-rules/filename-service-match": "error"
|
||||
@@ -117,11 +141,13 @@
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"app/**/*.tsx"
|
||||
"app/**/*.tsx",
|
||||
"app/**/*.ts"
|
||||
],
|
||||
"rules": {
|
||||
"gridpilot-rules/client-only-no-server-code": "error",
|
||||
"gridpilot-rules/client-only-must-have-directive": "error"
|
||||
"gridpilot-rules/client-only-must-have-directive": "error",
|
||||
"gridpilot-rules/server-actions-must-use-mutations": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user