/* eslint-disable dot-notation,prettier/prettier */ export const EsLintDeprecatedRules = { IndentLegacy: 'indent-legacy', LinesAroundDirective: 'lines-around-directive', NewlineAfterVar: 'newline-after-var', NewlineBeforeVar: 'newline-before-var', NewlineBeforeReturn: 'newline-before-return', NoCatchShadow: 'no-catch-shadow', NoNativeReassign: 'no-native-reassign', NoNegatedInLhs: 'no-negated-in-lhs', NoSpacedFunc: 'no-spaced-func', PreferReflect: 'prefer-reflect', RequireJsdoc: 'require-jsdoc', ValidJsdoc: 'valid-jsdoc', } as const; export type EsLintDeprecatedRule = (typeof EsLintDeprecatedRules)[keyof typeof EsLintDeprecatedRules]; export type EsLintDeprecatedRules = typeof EsLintDeprecatedRules; export const isEsLintDeprecatedRule = ( value: unknown, ): value is EsLintDeprecatedRule => typeof value === 'string' && (Object.values(EsLintDeprecatedRules) as Array).includes(value);