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

const ruleName='no-empty-files';const constants={'messageIds':{'noEmptyFiles':'noEmptyFiles'},'meta':{'type':ruleTypes['problem'],'docs':{'description':'File\x20must\x20not\x20be\x20empty'},'messages':{'noEmptyFiles':'no-empty-files\x0aFile\x20{{fileName}}\x20is\x20empty.\x0a\x0a###\x20**Must**\x20avoid\x20empty\x20files.\x0a\x0a####\x20Wrong\x0a\x0a//\x20(file\x20with\x20no\x20code\x20at\x20all)\x0a\x0a####\x20Correct\x0a\x0afunction\x20Foo()\x20{}\x0a\x0a####\x20Why\x0a\x0aEmpty\x20files\x20can\x20be\x20misleading,\x20break\x20tooling,\x20or\x20be\x20committed\x20by\x20mistake.'},'schema':[]}},createRule=ESLintUtils['RuleCreator'](_0x4d108c=>''+url+_0x4d108c),noEmptyFiles=createRule({'name':ruleName,'meta':constants['meta'],'defaultOptions':[],'create'(_0x51420c){return {'Program'(_0x3bf234){const _0x344230=_0x51420c['sourceCode'],_0x27f2ae=_0x344230['getAllComments']();_0x3bf234['body']['length']===0x138+0x25ad+0x3*-0xcf7&&_0x27f2ae['length']===-0xd5d+0xc*-0x10c+-0x19ed*-0x1&&_0x51420c['report']({'node':_0x3bf234,'messageId':constants['messageIds']['noEmptyFiles'],'data':{'fileName':getFileName(_0x51420c['filename'])}});}};}});

export { noEmptyFiles as default, ruleName };
