We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f75257 commit b1afd64Copy full SHA for b1afd64
utils/toggle-negation.ts
@@ -22,7 +22,7 @@ import { isBoolean } from './is-boolean'
22
* @param {string} code - The code string to toggle the exclamation mark on.
23
* @returns {string} The code string with the toggled exclamation mark.
24
*/
25
-export let toggleCode = (code: string): string =>
+let toggleCode = (code: string): string =>
26
code.startsWith('!') ? code.replace(/^!/u, '') : `!${code}`
27
28
/**
@@ -96,7 +96,7 @@ let toggleLogicalExpression = (
96
* @param {Rule.RuleContext} context - The ESLint rule context.
97
* @returns {string} The expression with toggled negation.
98
99
-export let toggleUnaryExpression = (
+let toggleUnaryExpression = (
100
node: Expression,
101
context: Rule.RuleContext,
102
): string => {
0 commit comments