tslintComments
Reports TSLint disable/enable comments.
✅ This rule is included in the ts logical presets.
TSLint has been deprecated in favor of ESLint with TypeScript support. TSLint disable/enable comments no longer have any effect and should be removed.
Examples
Section titled “Examples”Disable Comments
Section titled “Disable Comments”// tslint:disableconst value = 1;const value = 1;Line-specific Comments
Section titled “Line-specific Comments”// tslint:disable-next-lineconst value: any = getData();// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst value: any = getData();Options
Section titled “Options”This rule is not configurable.
When Not To Use It
Section titled “When Not To Use It”If you are still in the process of migrating from TSLint to Flint and need to keep both running, you may want to disable this rule while you are still running TSLint. You might consider using Flint disable comments and/or configuration file disables for specific cases instead of completely disabling this rule.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”
Made with ❤️🔥 in Boston by
Josh Goldberg and contributors.