@tailor-platform/create-sdk 1.1.3 → 1.2.1

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +5 -3
  3. package/templates/hello-world/.oxfmtrc.json +3 -0
  4. package/templates/hello-world/.oxlintrc.json +197 -0
  5. package/templates/hello-world/eslint.config.js +2 -0
  6. package/templates/hello-world/package.json +9 -6
  7. package/templates/inventory-management/.oxfmtrc.json +3 -0
  8. package/templates/inventory-management/.oxlintrc.json +203 -0
  9. package/templates/inventory-management/eslint.config.js +2 -0
  10. package/templates/inventory-management/package.json +9 -6
  11. package/templates/inventory-management/src/db/category.ts +1 -3
  12. package/templates/inventory-management/src/db/common/permission.ts +1 -5
  13. package/templates/inventory-management/src/db/contact.ts +2 -6
  14. package/templates/inventory-management/src/db/order.ts +1 -3
  15. package/templates/inventory-management/src/db/orderItem.ts +1 -3
  16. package/templates/inventory-management/src/db/product.ts +1 -3
  17. package/templates/inventory-management/src/executor/checkInventory.ts +1 -2
  18. package/templates/inventory-management/src/resolver/registerOrder.ts +2 -8
  19. package/templates/inventory-management/tailor.config.ts +1 -5
  20. package/templates/multi-application/.oxfmtrc.json +3 -0
  21. package/templates/multi-application/.oxlintrc.json +197 -0
  22. package/templates/multi-application/eslint.config.js +2 -0
  23. package/templates/multi-application/package.json +9 -6
  24. package/templates/testing/.oxfmtrc.json +3 -0
  25. package/templates/testing/.oxlintrc.json +197 -0
  26. package/templates/testing/e2e/workflow.test.ts +32 -40
  27. package/templates/testing/eslint.config.js +2 -0
  28. package/templates/testing/package.json +9 -6
  29. package/templates/testing/src/resolver/mockTailordb.test.ts +1 -9
  30. package/templates/testing/src/resolver/wrapTailordb.test.ts +5 -15
  31. package/templates/testing/src/resolver/wrapTailordb.ts +3 -11
  32. package/templates/testing/src/workflow/wrapTailordb.test.ts +6 -13
  33. package/templates/testing/src/workflow/wrapTailordb.ts +2 -9
  34. package/templates/testing/tailor.config.ts +1 -5
  35. package/templates/hello-world/.prettierignore +0 -1
  36. package/templates/inventory-management/.prettierignore +0 -2
  37. package/templates/multi-application/.prettierignore +0 -1
  38. package/templates/testing/.prettierignore +0 -2
@@ -55,11 +55,7 @@ const updateInventory = async (db: DB<"main-db">, input: Input) => {
55
55
  `Cannot create order because inventory is not enough. productId: ${item.productId}`,
56
56
  );
57
57
  }
58
- await db
59
- .updateTable("Inventory")
60
- .set({ quantity })
61
- .where("id", "=", inventory.id)
62
- .execute();
58
+ await db.updateTable("Inventory").set({ quantity }).where("id", "=", inventory.id).execute();
63
59
  } else {
64
60
  if (input.order.orderType === "PURCHASE") {
65
61
  await db
@@ -92,9 +88,7 @@ export default createResolver({
92
88
  },
93
89
  output: t
94
90
  .object({
95
- success: t
96
- .bool()
97
- .description("Whether the order was registered successfully"),
91
+ success: t.bool().description("Whether the order was registered successfully"),
98
92
  })
99
93
  .description("Result of order registration"),
100
94
  });
@@ -1,8 +1,4 @@
1
- import {
2
- defineAuth,
3
- defineConfig,
4
- defineGenerators,
5
- } from "@tailor-platform/sdk";
1
+ import { defineAuth, defineConfig, defineGenerators } from "@tailor-platform/sdk";
6
2
  import { user } from "./src/db/user";
7
3
 
8
4
  export default defineConfig({
@@ -0,0 +1,3 @@
1
+ {
2
+ "ignorePatterns": ["pnpm-lock.yaml"]
3
+ }
@@ -0,0 +1,197 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["typescript"],
4
+ "categories": {
5
+ "correctness": "off"
6
+ },
7
+ "env": {
8
+ "builtin": true
9
+ },
10
+ "ignorePatterns": [".tailor-sdk/"],
11
+ "rules": {
12
+ "constructor-super": "error",
13
+ "for-direction": "error",
14
+ "no-async-promise-executor": "error",
15
+ "no-case-declarations": "error",
16
+ "no-class-assign": "error",
17
+ "no-compare-neg-zero": "error",
18
+ "no-cond-assign": "error",
19
+ "no-const-assign": "error",
20
+ "no-constant-binary-expression": "error",
21
+ "no-constant-condition": "error",
22
+ "no-control-regex": "error",
23
+ "no-debugger": "error",
24
+ "no-delete-var": "error",
25
+ "no-dupe-class-members": "error",
26
+ "no-dupe-else-if": "error",
27
+ "no-dupe-keys": "error",
28
+ "no-duplicate-case": "error",
29
+ "no-empty": "error",
30
+ "no-empty-character-class": "error",
31
+ "no-empty-pattern": "error",
32
+ "no-empty-static-block": "error",
33
+ "no-ex-assign": "error",
34
+ "no-extra-boolean-cast": "error",
35
+ "no-fallthrough": "error",
36
+ "no-func-assign": "error",
37
+ "no-global-assign": "error",
38
+ "no-import-assign": "error",
39
+ "no-invalid-regexp": "error",
40
+ "no-irregular-whitespace": "error",
41
+ "no-loss-of-precision": "error",
42
+ "no-new-native-nonconstructor": "error",
43
+ "no-nonoctal-decimal-escape": "error",
44
+ "no-obj-calls": "error",
45
+ "no-prototype-builtins": "error",
46
+ "no-redeclare": "error",
47
+ "no-regex-spaces": "error",
48
+ "no-self-assign": "error",
49
+ "no-setter-return": "error",
50
+ "no-shadow-restricted-names": "error",
51
+ "no-sparse-arrays": "error",
52
+ "no-this-before-super": "error",
53
+ "no-unexpected-multiline": "error",
54
+ "no-unsafe-finally": "error",
55
+ "no-unsafe-negation": "error",
56
+ "no-unsafe-optional-chaining": "error",
57
+ "no-unused-labels": "error",
58
+ "no-unused-private-class-members": "error",
59
+ "no-unused-vars": "error",
60
+ "no-useless-backreference": "error",
61
+ "no-useless-catch": "error",
62
+ "no-useless-escape": "error",
63
+ "no-with": "error",
64
+ "require-yield": "error",
65
+ "use-isnan": "error",
66
+ "valid-typeof": "error",
67
+ "@typescript-eslint/await-thenable": "error",
68
+ "@typescript-eslint/ban-ts-comment": "error",
69
+ "no-array-constructor": "error",
70
+ "@typescript-eslint/no-array-delete": "error",
71
+ "@typescript-eslint/no-base-to-string": "error",
72
+ "@typescript-eslint/no-duplicate-enum-values": "error",
73
+ "@typescript-eslint/no-duplicate-type-constituents": "error",
74
+ "@typescript-eslint/no-empty-object-type": "error",
75
+ "@typescript-eslint/no-explicit-any": "error",
76
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
77
+ "@typescript-eslint/no-floating-promises": "error",
78
+ "@typescript-eslint/no-for-in-array": "error",
79
+ "@typescript-eslint/no-implied-eval": "error",
80
+ "@typescript-eslint/no-misused-new": "error",
81
+ "@typescript-eslint/no-misused-promises": "error",
82
+ "@typescript-eslint/no-namespace": "error",
83
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
84
+ "@typescript-eslint/no-redundant-type-constituents": "error",
85
+ "@typescript-eslint/no-require-imports": "error",
86
+ "@typescript-eslint/no-this-alias": "error",
87
+ "@typescript-eslint/no-unnecessary-type-assertion": "error",
88
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
89
+ "@typescript-eslint/no-unsafe-argument": "error",
90
+ "@typescript-eslint/no-unsafe-assignment": "error",
91
+ "@typescript-eslint/no-unsafe-call": "error",
92
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
93
+ "@typescript-eslint/no-unsafe-enum-comparison": "error",
94
+ "@typescript-eslint/no-unsafe-function-type": "error",
95
+ "@typescript-eslint/no-unsafe-member-access": "error",
96
+ "@typescript-eslint/no-unsafe-return": "error",
97
+ "@typescript-eslint/no-unsafe-unary-minus": "error",
98
+ "no-unused-expressions": "error",
99
+ "@typescript-eslint/no-wrapper-object-types": "error",
100
+ "@typescript-eslint/only-throw-error": "error",
101
+ "@typescript-eslint/prefer-as-const": "error",
102
+ "@typescript-eslint/prefer-namespace-keyword": "error",
103
+ "@typescript-eslint/prefer-promise-reject-errors": "error",
104
+ "@typescript-eslint/require-await": "error",
105
+ "@typescript-eslint/restrict-plus-operands": "error",
106
+ "@typescript-eslint/restrict-template-expressions": "error",
107
+ "@typescript-eslint/triple-slash-reference": "error",
108
+ "@typescript-eslint/unbound-method": "error",
109
+ "@typescript-eslint/adjacent-overload-signatures": "error",
110
+ "@typescript-eslint/array-type": "error",
111
+ "@typescript-eslint/ban-tslint-comment": "error",
112
+ "@typescript-eslint/consistent-generic-constructors": "error",
113
+ "@typescript-eslint/consistent-indexed-object-style": "error",
114
+ "@typescript-eslint/consistent-type-definitions": "error",
115
+ "@typescript-eslint/no-confusing-non-null-assertion": "error",
116
+ "no-empty-function": "error",
117
+ "@typescript-eslint/no-inferrable-types": "error",
118
+ "@typescript-eslint/non-nullable-type-assertion-style": "error",
119
+ "@typescript-eslint/prefer-for-of": "error",
120
+ "@typescript-eslint/prefer-function-type": "error",
121
+ "@typescript-eslint/prefer-includes": "error",
122
+ "@typescript-eslint/prefer-nullish-coalescing": "error"
123
+ },
124
+ "overrides": [
125
+ {
126
+ "files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
127
+ "rules": {
128
+ "constructor-super": "off",
129
+ "no-class-assign": "off",
130
+ "no-const-assign": "off",
131
+ "no-dupe-class-members": "off",
132
+ "no-dupe-keys": "off",
133
+ "no-func-assign": "off",
134
+ "no-import-assign": "off",
135
+ "no-new-native-nonconstructor": "off",
136
+ "no-obj-calls": "off",
137
+ "no-redeclare": "off",
138
+ "no-setter-return": "off",
139
+ "no-this-before-super": "off",
140
+ "no-unsafe-negation": "off",
141
+ "no-var": "error",
142
+ "no-with": "off",
143
+ "prefer-rest-params": "error",
144
+ "prefer-spread": "error"
145
+ }
146
+ },
147
+ {
148
+ "files": ["eslint.config.js"],
149
+ "rules": {
150
+ "@typescript-eslint/await-thenable": "off",
151
+ "@typescript-eslint/no-array-delete": "off",
152
+ "@typescript-eslint/no-base-to-string": "off",
153
+ "@typescript-eslint/no-confusing-void-expression": "off",
154
+ "@typescript-eslint/no-deprecated": "off",
155
+ "@typescript-eslint/no-duplicate-type-constituents": "off",
156
+ "@typescript-eslint/no-floating-promises": "off",
157
+ "@typescript-eslint/no-for-in-array": "off",
158
+ "@typescript-eslint/no-implied-eval": "off",
159
+ "@typescript-eslint/no-meaningless-void-operator": "off",
160
+ "@typescript-eslint/no-misused-promises": "off",
161
+ "@typescript-eslint/no-misused-spread": "off",
162
+ "@typescript-eslint/no-mixed-enums": "off",
163
+ "@typescript-eslint/no-redundant-type-constituents": "off",
164
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
165
+ "@typescript-eslint/no-unnecessary-template-expression": "off",
166
+ "@typescript-eslint/no-unnecessary-type-arguments": "off",
167
+ "@typescript-eslint/no-unnecessary-type-assertion": "off",
168
+ "@typescript-eslint/no-unsafe-argument": "off",
169
+ "@typescript-eslint/no-unsafe-assignment": "off",
170
+ "@typescript-eslint/no-unsafe-call": "off",
171
+ "@typescript-eslint/no-unsafe-enum-comparison": "off",
172
+ "@typescript-eslint/no-unsafe-member-access": "off",
173
+ "@typescript-eslint/no-unsafe-return": "off",
174
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
175
+ "@typescript-eslint/no-unsafe-unary-minus": "off",
176
+ "@typescript-eslint/non-nullable-type-assertion-style": "off",
177
+ "@typescript-eslint/only-throw-error": "off",
178
+ "@typescript-eslint/prefer-includes": "off",
179
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
180
+ "@typescript-eslint/prefer-promise-reject-errors": "off",
181
+ "@typescript-eslint/prefer-reduce-type-parameter": "off",
182
+ "@typescript-eslint/prefer-return-this-type": "off",
183
+ "@typescript-eslint/promise-function-async": "off",
184
+ "@typescript-eslint/related-getter-setter-pairs": "off",
185
+ "@typescript-eslint/require-array-sort-compare": "off",
186
+ "@typescript-eslint/require-await": "off",
187
+ "@typescript-eslint/restrict-plus-operands": "off",
188
+ "@typescript-eslint/restrict-template-expressions": "off",
189
+ "@typescript-eslint/return-await": "off",
190
+ "@typescript-eslint/strict-boolean-expressions": "off",
191
+ "@typescript-eslint/switch-exhaustiveness-check": "off",
192
+ "@typescript-eslint/unbound-method": "off",
193
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off"
194
+ }
195
+ }
196
+ ]
197
+ }
@@ -1,6 +1,7 @@
1
1
  import eslint from "@eslint/js";
2
2
  import tseslint from "typescript-eslint";
3
3
  import { defineConfig, globalIgnores } from "eslint/config";
4
+ import oxlint from "eslint-plugin-oxlint";
4
5
 
5
6
  export default defineConfig([
6
7
  // Ignore sdk's output directory.
@@ -24,4 +25,5 @@ export default defineConfig([
24
25
  files: ["eslint.config.js"],
25
26
  extends: [tseslint.configs.disableTypeChecked],
26
27
  },
28
+ ...oxlint.buildFromOxlintConfigFile("./.oxlintrc.json"),
27
29
  ]);
@@ -6,18 +6,21 @@
6
6
  "deploy": "pnpm run deploy:user && pnpm run deploy:admin",
7
7
  "deploy:user": "tailor-sdk apply -c apps/user/tailor.config.ts",
8
8
  "deploy:admin": "tailor-sdk apply -c apps/admin/tailor.config.ts",
9
- "format": "prettier --write .",
10
- "format:check": "prettier --check .",
11
- "lint": "eslint --cache .",
12
- "lint:fix": "eslint --cache --fix .",
9
+ "format": "oxfmt --write .",
10
+ "format:check": "oxfmt --check .",
11
+ "lint": "oxlint --type-aware . && eslint --cache .",
12
+ "lint:fix": "oxlint --type-aware --fix . && eslint --cache --fix .",
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@eslint/js": "9.39.2",
17
- "@tailor-platform/sdk": "1.1.3",
17
+ "@tailor-platform/sdk": "1.2.1",
18
18
  "@types/node": "24.10.4",
19
19
  "eslint": "9.39.2",
20
- "prettier": "3.7.4",
20
+ "eslint-plugin-oxlint": "1.34.0",
21
+ "oxfmt": "0.19.0",
22
+ "oxlint": "1.34.0",
23
+ "oxlint-tsgolint": "0.10.1",
21
24
  "typescript": "5.9.3",
22
25
  "typescript-eslint": "8.51.0"
23
26
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "ignorePatterns": ["src/generated/", "pnpm-lock.yaml"]
3
+ }
@@ -0,0 +1,197 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["typescript"],
4
+ "categories": {
5
+ "correctness": "off"
6
+ },
7
+ "env": {
8
+ "builtin": true
9
+ },
10
+ "ignorePatterns": [".tailor-sdk/", "src/generated/"],
11
+ "rules": {
12
+ "constructor-super": "error",
13
+ "for-direction": "error",
14
+ "no-async-promise-executor": "error",
15
+ "no-case-declarations": "error",
16
+ "no-class-assign": "error",
17
+ "no-compare-neg-zero": "error",
18
+ "no-cond-assign": "error",
19
+ "no-const-assign": "error",
20
+ "no-constant-binary-expression": "error",
21
+ "no-constant-condition": "error",
22
+ "no-control-regex": "error",
23
+ "no-debugger": "error",
24
+ "no-delete-var": "error",
25
+ "no-dupe-class-members": "error",
26
+ "no-dupe-else-if": "error",
27
+ "no-dupe-keys": "error",
28
+ "no-duplicate-case": "error",
29
+ "no-empty": "error",
30
+ "no-empty-character-class": "error",
31
+ "no-empty-pattern": "error",
32
+ "no-empty-static-block": "error",
33
+ "no-ex-assign": "error",
34
+ "no-extra-boolean-cast": "error",
35
+ "no-fallthrough": "error",
36
+ "no-func-assign": "error",
37
+ "no-global-assign": "error",
38
+ "no-import-assign": "error",
39
+ "no-invalid-regexp": "error",
40
+ "no-irregular-whitespace": "error",
41
+ "no-loss-of-precision": "error",
42
+ "no-new-native-nonconstructor": "error",
43
+ "no-nonoctal-decimal-escape": "error",
44
+ "no-obj-calls": "error",
45
+ "no-prototype-builtins": "error",
46
+ "no-redeclare": "error",
47
+ "no-regex-spaces": "error",
48
+ "no-self-assign": "error",
49
+ "no-setter-return": "error",
50
+ "no-shadow-restricted-names": "error",
51
+ "no-sparse-arrays": "error",
52
+ "no-this-before-super": "error",
53
+ "no-unexpected-multiline": "error",
54
+ "no-unsafe-finally": "error",
55
+ "no-unsafe-negation": "error",
56
+ "no-unsafe-optional-chaining": "error",
57
+ "no-unused-labels": "error",
58
+ "no-unused-private-class-members": "error",
59
+ "no-unused-vars": "error",
60
+ "no-useless-backreference": "error",
61
+ "no-useless-catch": "error",
62
+ "no-useless-escape": "error",
63
+ "no-with": "error",
64
+ "require-yield": "error",
65
+ "use-isnan": "error",
66
+ "valid-typeof": "error",
67
+ "@typescript-eslint/await-thenable": "error",
68
+ "@typescript-eslint/ban-ts-comment": "error",
69
+ "no-array-constructor": "error",
70
+ "@typescript-eslint/no-array-delete": "error",
71
+ "@typescript-eslint/no-base-to-string": "error",
72
+ "@typescript-eslint/no-duplicate-enum-values": "error",
73
+ "@typescript-eslint/no-duplicate-type-constituents": "error",
74
+ "@typescript-eslint/no-empty-object-type": "error",
75
+ "@typescript-eslint/no-explicit-any": "error",
76
+ "@typescript-eslint/no-extra-non-null-assertion": "error",
77
+ "@typescript-eslint/no-floating-promises": "error",
78
+ "@typescript-eslint/no-for-in-array": "error",
79
+ "@typescript-eslint/no-implied-eval": "error",
80
+ "@typescript-eslint/no-misused-new": "error",
81
+ "@typescript-eslint/no-misused-promises": "error",
82
+ "@typescript-eslint/no-namespace": "error",
83
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
84
+ "@typescript-eslint/no-redundant-type-constituents": "error",
85
+ "@typescript-eslint/no-require-imports": "error",
86
+ "@typescript-eslint/no-this-alias": "error",
87
+ "@typescript-eslint/no-unnecessary-type-assertion": "error",
88
+ "@typescript-eslint/no-unnecessary-type-constraint": "error",
89
+ "@typescript-eslint/no-unsafe-argument": "error",
90
+ "@typescript-eslint/no-unsafe-assignment": "error",
91
+ "@typescript-eslint/no-unsafe-call": "error",
92
+ "@typescript-eslint/no-unsafe-declaration-merging": "error",
93
+ "@typescript-eslint/no-unsafe-enum-comparison": "error",
94
+ "@typescript-eslint/no-unsafe-function-type": "error",
95
+ "@typescript-eslint/no-unsafe-member-access": "error",
96
+ "@typescript-eslint/no-unsafe-return": "error",
97
+ "@typescript-eslint/no-unsafe-unary-minus": "error",
98
+ "no-unused-expressions": "error",
99
+ "@typescript-eslint/no-wrapper-object-types": "error",
100
+ "@typescript-eslint/only-throw-error": "error",
101
+ "@typescript-eslint/prefer-as-const": "error",
102
+ "@typescript-eslint/prefer-namespace-keyword": "error",
103
+ "@typescript-eslint/prefer-promise-reject-errors": "error",
104
+ "@typescript-eslint/require-await": "error",
105
+ "@typescript-eslint/restrict-plus-operands": "error",
106
+ "@typescript-eslint/restrict-template-expressions": "error",
107
+ "@typescript-eslint/triple-slash-reference": "error",
108
+ "@typescript-eslint/unbound-method": "error",
109
+ "@typescript-eslint/adjacent-overload-signatures": "error",
110
+ "@typescript-eslint/array-type": "error",
111
+ "@typescript-eslint/ban-tslint-comment": "error",
112
+ "@typescript-eslint/consistent-generic-constructors": "error",
113
+ "@typescript-eslint/consistent-indexed-object-style": "error",
114
+ "@typescript-eslint/consistent-type-definitions": "error",
115
+ "@typescript-eslint/no-confusing-non-null-assertion": "error",
116
+ "no-empty-function": "error",
117
+ "@typescript-eslint/no-inferrable-types": "error",
118
+ "@typescript-eslint/non-nullable-type-assertion-style": "error",
119
+ "@typescript-eslint/prefer-for-of": "error",
120
+ "@typescript-eslint/prefer-function-type": "error",
121
+ "@typescript-eslint/prefer-includes": "error",
122
+ "@typescript-eslint/prefer-nullish-coalescing": "error"
123
+ },
124
+ "overrides": [
125
+ {
126
+ "files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
127
+ "rules": {
128
+ "constructor-super": "off",
129
+ "no-class-assign": "off",
130
+ "no-const-assign": "off",
131
+ "no-dupe-class-members": "off",
132
+ "no-dupe-keys": "off",
133
+ "no-func-assign": "off",
134
+ "no-import-assign": "off",
135
+ "no-new-native-nonconstructor": "off",
136
+ "no-obj-calls": "off",
137
+ "no-redeclare": "off",
138
+ "no-setter-return": "off",
139
+ "no-this-before-super": "off",
140
+ "no-unsafe-negation": "off",
141
+ "no-var": "error",
142
+ "no-with": "off",
143
+ "prefer-rest-params": "error",
144
+ "prefer-spread": "error"
145
+ }
146
+ },
147
+ {
148
+ "files": ["eslint.config.js"],
149
+ "rules": {
150
+ "@typescript-eslint/await-thenable": "off",
151
+ "@typescript-eslint/no-array-delete": "off",
152
+ "@typescript-eslint/no-base-to-string": "off",
153
+ "@typescript-eslint/no-confusing-void-expression": "off",
154
+ "@typescript-eslint/no-deprecated": "off",
155
+ "@typescript-eslint/no-duplicate-type-constituents": "off",
156
+ "@typescript-eslint/no-floating-promises": "off",
157
+ "@typescript-eslint/no-for-in-array": "off",
158
+ "@typescript-eslint/no-implied-eval": "off",
159
+ "@typescript-eslint/no-meaningless-void-operator": "off",
160
+ "@typescript-eslint/no-misused-promises": "off",
161
+ "@typescript-eslint/no-misused-spread": "off",
162
+ "@typescript-eslint/no-mixed-enums": "off",
163
+ "@typescript-eslint/no-redundant-type-constituents": "off",
164
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
165
+ "@typescript-eslint/no-unnecessary-template-expression": "off",
166
+ "@typescript-eslint/no-unnecessary-type-arguments": "off",
167
+ "@typescript-eslint/no-unnecessary-type-assertion": "off",
168
+ "@typescript-eslint/no-unsafe-argument": "off",
169
+ "@typescript-eslint/no-unsafe-assignment": "off",
170
+ "@typescript-eslint/no-unsafe-call": "off",
171
+ "@typescript-eslint/no-unsafe-enum-comparison": "off",
172
+ "@typescript-eslint/no-unsafe-member-access": "off",
173
+ "@typescript-eslint/no-unsafe-return": "off",
174
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
175
+ "@typescript-eslint/no-unsafe-unary-minus": "off",
176
+ "@typescript-eslint/non-nullable-type-assertion-style": "off",
177
+ "@typescript-eslint/only-throw-error": "off",
178
+ "@typescript-eslint/prefer-includes": "off",
179
+ "@typescript-eslint/prefer-nullish-coalescing": "off",
180
+ "@typescript-eslint/prefer-promise-reject-errors": "off",
181
+ "@typescript-eslint/prefer-reduce-type-parameter": "off",
182
+ "@typescript-eslint/prefer-return-this-type": "off",
183
+ "@typescript-eslint/promise-function-async": "off",
184
+ "@typescript-eslint/related-getter-setter-pairs": "off",
185
+ "@typescript-eslint/require-array-sort-compare": "off",
186
+ "@typescript-eslint/require-await": "off",
187
+ "@typescript-eslint/restrict-plus-operands": "off",
188
+ "@typescript-eslint/restrict-template-expressions": "off",
189
+ "@typescript-eslint/return-await": "off",
190
+ "@typescript-eslint/strict-boolean-expressions": "off",
191
+ "@typescript-eslint/switch-exhaustiveness-check": "off",
192
+ "@typescript-eslint/unbound-method": "off",
193
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "off"
194
+ }
195
+ }
196
+ ]
197
+ }
@@ -3,50 +3,42 @@ import { describe, expect, test } from "vitest";
3
3
  import { startWorkflow } from "@tailor-platform/sdk/cli";
4
4
 
5
5
  describe.concurrent("workflow", () => {
6
- test(
7
- "simple-calculation: execute workflow and verify success",
8
- { timeout: 120000 },
9
- async () => {
10
- const { executionId, wait } = await startWorkflow({
11
- name: "simple-calculation",
12
- machineUser: "admin",
13
- arg: { a: 2, b: 3 },
14
- });
6
+ test("simple-calculation: execute workflow and verify success", { timeout: 120000 }, async () => {
7
+ const { executionId, wait } = await startWorkflow({
8
+ name: "simple-calculation",
9
+ machineUser: "admin",
10
+ arg: { a: 2, b: 3 },
11
+ });
15
12
 
16
- console.log(`[simple-calculation] Execution ID: ${executionId}`);
13
+ console.log(`[simple-calculation] Execution ID: ${executionId}`);
17
14
 
18
- const result = await wait();
19
- expect(result).toMatchObject({
20
- workflowName: "simple-calculation",
21
- status: "SUCCESS",
22
- });
23
- },
24
- );
15
+ const result = await wait();
16
+ expect(result).toMatchObject({
17
+ workflowName: "simple-calculation",
18
+ status: "SUCCESS",
19
+ });
20
+ });
25
21
 
26
- test(
27
- "user-profile-sync: execute workflow and verify success",
28
- { timeout: 120000 },
29
- async () => {
30
- const uuid = randomUUID();
31
- const testEmail = `workflow-test-${uuid}@example.com`;
22
+ test("user-profile-sync: execute workflow and verify success", { timeout: 120000 }, async () => {
23
+ const uuid = randomUUID();
24
+ const testEmail = `workflow-test-${uuid}@example.com`;
32
25
 
33
- const { executionId, wait } = await startWorkflow({
34
- name: "user-profile-sync",
35
- machineUser: "admin",
36
- arg: {
37
- name: "workflow-test-user",
38
- email: testEmail,
39
- age: 25,
40
- },
41
- });
26
+ const { executionId, wait } = await startWorkflow({
27
+ name: "user-profile-sync",
28
+ machineUser: "admin",
29
+ arg: {
30
+ name: "workflow-test-user",
31
+ email: testEmail,
32
+ age: 25,
33
+ },
34
+ });
42
35
 
43
- console.log(`[user-profile-sync] Execution ID: ${executionId}`);
36
+ console.log(`[user-profile-sync] Execution ID: ${executionId}`);
44
37
 
45
- const result = await wait();
46
- expect(result).toMatchObject({
47
- workflowName: "user-profile-sync",
48
- status: "SUCCESS",
49
- });
50
- },
51
- );
38
+ const result = await wait();
39
+ expect(result).toMatchObject({
40
+ workflowName: "user-profile-sync",
41
+ status: "SUCCESS",
42
+ });
43
+ });
52
44
  });
@@ -1,6 +1,7 @@
1
1
  import eslint from "@eslint/js";
2
2
  import tseslint from "typescript-eslint";
3
3
  import { defineConfig, globalIgnores } from "eslint/config";
4
+ import oxlint from "eslint-plugin-oxlint";
4
5
 
5
6
  export default defineConfig([
6
7
  // Ignore sdk's output directory.
@@ -24,4 +25,5 @@ export default defineConfig([
24
25
  files: ["eslint.config.js"],
25
26
  extends: [tseslint.configs.disableTypeChecked],
26
27
  },
28
+ ...oxlint.buildFromOxlintConfigFile("./.oxlintrc.json"),
27
29
  ]);
@@ -8,10 +8,10 @@
8
8
  "test": "vitest --project unit",
9
9
  "test:unit": "vitest --project unit",
10
10
  "test:e2e": "vitest --project e2e",
11
- "format": "prettier --write .",
12
- "format:check": "prettier --check .",
13
- "lint": "eslint --cache .",
14
- "lint:fix": "eslint --cache --fix .",
11
+ "format": "oxfmt --write .",
12
+ "format:check": "oxfmt --check .",
13
+ "lint": "oxlint --type-aware . && eslint --cache .",
14
+ "lint:fix": "oxlint --type-aware --fix . && eslint --cache --fix .",
15
15
  "typecheck": "tsc --noEmit"
16
16
  },
17
17
  "dependencies": {
@@ -21,11 +21,14 @@
21
21
  "devDependencies": {
22
22
  "@eslint/js": "9.39.2",
23
23
  "@tailor-platform/function-types": "0.8.0",
24
- "@tailor-platform/sdk": "1.1.3",
24
+ "@tailor-platform/sdk": "1.2.1",
25
25
  "@types/node": "24.10.4",
26
26
  "eslint": "9.39.2",
27
+ "eslint-plugin-oxlint": "1.34.0",
27
28
  "graphql-request": "7.4.0",
28
- "prettier": "3.7.4",
29
+ "oxfmt": "0.19.0",
30
+ "oxlint": "1.34.0",
31
+ "oxlint-tsgolint": "0.10.1",
29
32
  "typescript": "5.9.3",
30
33
  "typescript-eslint": "8.51.0",
31
34
  "vitest": "4.0.16"
@@ -1,13 +1,5 @@
1
1
  import { unauthenticatedTailorUser } from "@tailor-platform/sdk/test";
2
- import {
3
- afterAll,
4
- afterEach,
5
- beforeAll,
6
- describe,
7
- expect,
8
- test,
9
- vi,
10
- } from "vitest";
2
+ import { afterAll, afterEach, beforeAll, describe, expect, test, vi } from "vitest";
11
3
  import resolver from "./mockTailordb";
12
4
 
13
5
  describe("incrementUserAge resolver", () => {