tsl-dx 0.9.0 → 0.10.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.
package/dist/index.d.ts CHANGED
@@ -88,6 +88,6 @@ type nullishOptions = {
88
88
  * if (x == null) { }
89
89
  * ```
90
90
  */
91
- declare const nullish: (options?: "off" | nullishOptions | undefined) => tsl.Rule<unknown>;
91
+ declare const nullish: (options?: nullishOptions | "off" | undefined) => tsl.Rule<unknown>;
92
92
  //#endregion
93
93
  export { noDuplicateExports, noDuplicateImports, noMultilineTemplateExpressionWithoutAutoDedent, nullish };
package/dist/index.js CHANGED
@@ -148,13 +148,6 @@ function buildSuggestions(existing, incoming) {
148
148
  }];
149
149
  }
150
150
 
151
- //#endregion
152
- //#region src/utils/source-file.ts
153
- function getLine(node) {
154
- const sourceFile = node.getSourceFile();
155
- return [sourceFile.getLineAndCharacterOfPosition(node.getStart()).line, sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line];
156
- }
157
-
158
151
  //#endregion
159
152
  //#region src/rules/no-multiline-template-expression-without-auto-dedent.ts
160
153
  const messages$1 = {
@@ -186,6 +179,10 @@ const messages$1 = {
186
179
  const noMultilineTemplateExpressionWithoutAutoDedent = defineRule((options) => {
187
180
  const dedentTagNames = options?.dedentTagNames ?? ["dedent"];
188
181
  const dedentTagImportCallback = options?.dedentTagImportCallback ?? ((name) => `import ${name} from "dedent";\n`);
182
+ function getLine(node) {
183
+ const sourceFile = node.getSourceFile();
184
+ return [sourceFile.getLineAndCharacterOfPosition(node.getStart()).line, sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line];
185
+ }
189
186
  return {
190
187
  name: "dx/no-multiline-template-expression-without-auto-dedent",
191
188
  visitor: { NoSubstitutionTemplateLiteral(ctx, node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsl-dx",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "A tsl plugin for better JavaScript/TypeScript DX.",
5
5
  "keywords": [
6
6
  "tsl",
@@ -25,15 +25,15 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@liautaud/typezod": "^2.0.0",
28
- "dedent": "^1.7.1",
29
- "tsdown": "^0.21.0-beta.2",
28
+ "dedent": "^1.7.2",
29
+ "tsdown": "^0.21.2",
30
30
  "tsl": "^1.0.29",
31
- "vitest": "^4.0.18",
31
+ "vitest": "^4.1.0",
32
32
  "@local/configs": "0.0.0",
33
33
  "@local/eff": "0.2.9"
34
34
  },
35
35
  "peerDependencies": {
36
- "tsl": "^1.0.28",
36
+ "tsl": "^1.0.29",
37
37
  "typescript": "*"
38
38
  },
39
39
  "publishConfig": {