[−][src]Module rslint_core::directives
Directives used to configure or ignore rules. These take place of comments over nodes or comments at the top level.
Directives can contain multiple commands separated by -
. For example:
// rslint-ignore for-direction, no-await-in-loop - deny no-empty -- because why not
| | | | | | |
| +-------------------------------------+ +------------+ +-------------+
| command command comment |
+-------------------------------------------------------------------------------+
Directive
Structs
Directive | A command given to the linter by an inline comment. A single command may include multiple commands inside of it. A directive constitutes a single comment, which may have one or more commands inside of it. |
DirectiveParseResult | |
DirectiveParser |
Enums
Command |
Functions
apply_node_directives | |
apply_top_level_directives | Apply file level directives to a store and add their respective diagnostics to the pool of diagnostics. for file level ignores this will clear all the rules from the store. |
skip_node |