'use strict';
import { createEslintRule } from '@flint/infra/create-eslint-rule';
import { eslintProperties } from '@flint/infra/constants/rules-meta';

var __defProp=Object['defineProperty'],__name=(_0x4cb9ba,_0x1c80fd)=>__defProp(_0x4cb9ba,'name',{'value':_0x1c80fd,'configurable':!![]});const ruleName='no-centralized-error-messages';const ruleContent='\x0a###\x20**Must\x20not**\x20put\x20error\x20messages\x20into\x20\x27meta/constants/error-messages.ts\x27.\x0a\x0a####\x20Wrong\x0a\x0ameta/constants/error-messages.ts\x0a\x0a####\x20Correct\x0a\x0a./db-constants.ts\x0a./comment-constants.ts\x0a./auth-constants.ts\x0a\x0a####\x20Why\x0a\x0aDo\x20not\x20put\x20error\x20messages\x20into\x20\x27meta/constants/error-messages.ts\x27.\x20Adding\x20all\x20error\x20messages\x20to\x20a\x20single\x20file\x20creates\x20a\x20large\x20and\x20unorganized\x20structure.';var noCentralizedErrorMessages = createEslintRule(ruleName,ruleContent,__name(function create(_0x21cd9f){return {':matches(ImportDeclaration,\x20ImportExpression,\x20ExportNamedDeclaration,\x20ExportAllDeclaration)'(_0x452630){reportIfCentralized(_0x21cd9f,_0x452630['source']??void(0x2*0x3fa+-0xbef*0x2+-0xc2*-0x15));}};},'create'));function isCentralizedErrorMessagesImport(_0x1fe5c9){const _0x5f5223=/\/error-messages$|^error-messages$/;return _0x5f5223['test'](_0x1fe5c9);}__name(isCentralizedErrorMessagesImport,'isCentralizedErrorMessagesImport');function reportIfCentralized(_0x314c17,_0x12a76a){if(!_0x12a76a||!(eslintProperties['value']in _0x12a76a))return;const _0x3bacc7=Reflect['get'](_0x12a76a,eslintProperties['value']);typeof _0x3bacc7==='string'&&isCentralizedErrorMessagesImport(_0x3bacc7)&&_0x314c17['report']({'node':_0x12a76a,'messageId':ruleName});}__name(reportIfCentralized,'reportIfCentralized');

export { noCentralizedErrorMessages as default, ruleName };
