Inline Directives
Rslint supports inline comments to disable or enable rules in source code. Both rslint- and eslint- prefixed directives are supported and fully equivalent.
Disable for the rest of the file
Re-enable rules
Disable for the current line
Disable for the next line
Notes
eslint-disable/eslint-enableand their variants are also supported for ESLint compatibility. The two prefixes can be mixed freely (e.g.rslint-disablepaired witheslint-enable).- Both single-line (
//) and multi-line (/* */) comment styles are supported. - Omitting rule names disables/enables all rules.
- Multiple rule names can be separated by commas.
- An inline description can be added after
--(e.g.,rslint-disable-next-line no-console -- temporary workaround).