eslint-plugin-de-morgan
Version:
ESLint plugin for transforming negated boolean expressions via De Morgan’s laws
23 lines (22 loc) • 523 B
TypeScript
import { UnaryExpression } from 'estree'
import { Rule } from 'eslint'
type ParentedExpression = Rule.NodeParentExtension & UnaryExpression
declare const _default: {
create: (context: Rule.RuleContext) => {
UnaryExpression: (node: ParentedExpression) => void
}
meta: {
docs: {
description: string
url: string
recommended: boolean
}
messages: {
convertNegatedConjunction: string
}
type: 'suggestion'
fixable: 'code'
schema: never[]
}
}
export default _default