Skip to content

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.

// tslint:disable
const value = 1;
// tslint:disable-next-line
const value: any = getData();

This rule is not configurable.

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.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.