tsl-dx 0.6.0 → 0.6.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 +3 -3
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,10 +38,10 @@ declare const noDuplicateExports: (options?: "off" | undefined) => tsl.Rule<unkn
|
|
|
38
38
|
*/
|
|
39
39
|
declare const noDuplicateImports: (options?: "off" | undefined) => tsl.Rule<unknown>;
|
|
40
40
|
//#endregion
|
|
41
|
-
//#region src/rules/no-multiline-template-
|
|
42
|
-
declare const
|
|
41
|
+
//#region src/rules/no-multiline-template-expression-without-auto-dedent.d.ts
|
|
42
|
+
declare const noMultilineTemplateExpressionWithoutAutoDedent: (options?: "off" | undefined) => tsl.Rule<unknown>;
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/rules/nullish.d.ts
|
|
45
45
|
declare const nullish: (options?: Record<string, unknown> | "off" | undefined) => tsl.Rule<unknown>;
|
|
46
46
|
//#endregion
|
|
47
|
-
export { noDuplicateExports, noDuplicateImports,
|
|
47
|
+
export { noDuplicateExports, noDuplicateImports, noMultilineTemplateExpressionWithoutAutoDedent, nullish };
|
package/dist/index.js
CHANGED
|
@@ -276,10 +276,10 @@ function getLine(node) {
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
//#endregion
|
|
279
|
-
//#region src/rules/no-multiline-template-
|
|
280
|
-
const messages$1 = { default: () => `Avoid using multiline template
|
|
281
|
-
const
|
|
282
|
-
name: "dx/no-multiline-template-
|
|
279
|
+
//#region src/rules/no-multiline-template-expression-without-auto-dedent.ts
|
|
280
|
+
const messages$1 = { default: () => `Avoid using multiline template expression without auto-dedent` };
|
|
281
|
+
const noMultilineTemplateExpressionWithoutAutoDedent = defineRule(() => ({
|
|
282
|
+
name: "dx/no-multiline-template-expression-without-auto-dedent",
|
|
283
283
|
visitor: { NoSubstitutionTemplateLiteral(ctx, node) {
|
|
284
284
|
if (node.parent.kind === SyntaxKind.TaggedTemplateExpression) return;
|
|
285
285
|
const [startLine, endLine] = getLine(node);
|
|
@@ -371,4 +371,4 @@ const nullish = defineRule((options) => ({
|
|
|
371
371
|
}));
|
|
372
372
|
|
|
373
373
|
//#endregion
|
|
374
|
-
export { noDuplicateExports, noDuplicateImports,
|
|
374
|
+
export { noDuplicateExports, noDuplicateImports, noMultilineTemplateExpressionWithoutAutoDedent, nullish };
|