⬅️ Back to Table of Contents
📄 no-meaningless-void-operator.ts
📊 Analysis Summary
Metric |
Count |
🔧 Functions |
1 |
📦 Imports |
4 |
📑 Type Aliases |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/eslint-plugin/src/rules/no-meaningless-void-operator.ts
📦 Imports
Name |
Source |
TSESLint |
@typescript-eslint/utils |
TSESTree |
@typescript-eslint/utils |
ESLintUtils |
@typescript-eslint/utils |
createRule |
../util |
Functions
fix(fixer: TSESLint.RuleFixer): TSESLint.RuleFix
Code
(fixer: TSESLint.RuleFixer): TSESLint.RuleFix => {
return fixer.removeRange([
context.sourceCode.getTokens(node)[0].range[0],
context.sourceCode.getTokens(node)[1].range[0],
]);
}
- Parameters:
fixer: TSESLint.RuleFixer
- Return Type:
TSESLint.RuleFix
- Calls:
fixer.removeRange
context.sourceCode.getTokens
Type Aliases
Options
type Options = [
{
checkNever: boolean;
},
];