'use strict';
import { ESLintUtils } from '@typescript-eslint/utils';
import { ruleTypes, url } from '@flint/infra/constants/rules-meta';

const ruleName='no-use-enum';const constants={'messageId':'noUseEnum','meta':{'type':ruleTypes['problem'],'docs':{'description':'Disallow\x20using\x20TypeScript\x20enums'},'messages':{'noUseEnum':'no-use-enum\x0a###\x20**Must\x20not**\x20use\x20enum.\x0a\x0a####\x20Wrong\x0a\x0aenum\x20Foo\x20{\x0a\x20\x20\x20\x20Baz\x20=\x201,\x0a\x20\x20\x20\x20Bar\x20=\x200,\x0a}\x0a\x0a####\x20Correct\x0a\x0aconst\x20foos\x20=\x20{\x0a\x20\x20\x20\x20baz:\x201,\x0a\x20\x20\x20\x20bar:\x200\x0a};\x0a\x0atype\x20Foo\x20=\x20(typeof\x20foos)[keyof\x20typeof\x20foos];\x0a\x0a####\x20Why\x0a\x0aWe\x20standardize\x20on\x20const\x20instead\x20of\x20enum.\x20Javascript\x20doesn’t\x20have\x20enum\x20keyword.'},'schema':[]}},createRule=ESLintUtils['RuleCreator'](_0x1a7da9=>''+url+_0x1a7da9),noUseEnum=createRule({'name':ruleName,'meta':constants['meta'],'defaultOptions':[],'create'(_0x274195){return {'TSEnumDeclaration'(_0x5c401d){_0x274195['report']({'node':_0x5c401d,'messageId':constants['messageId']});}};}});

export { noUseEnum as default, ruleName };
