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

var __defProp=Object['defineProperty'],__name=(_0x32eaa7,_0x157479)=>__defProp(_0x32eaa7,'name',{'value':_0x157479,'configurable':!![]});const ruleName='no-import-from-temp-dev';const tempDevImportMessageId='noImportFromTempDev',constants={'meta':{'type':ruleTypes['problem'],'docs':{'description':'Disallow\x20importing\x20from\x20@temp-dev\x20alias.'},'messages':{[tempDevImportMessageId]:ruleName+'\x0a###\x20**Must\x20not**\x20import\x20from\x20@temp-dev\x20alias.\x0a\x0a####\x20Wrong\x0a\x0aimport\x20{\x20foo\x20}\x20from\x20\x22@temp-dev/foo\x22;\x0a\x0a####\x20Correct\x0a\x0aimport\x20{\x20foo\x20}\x20from\x20\x22@fernir2/saas-kit\x22;\x0a\x0a####\x20Why\x0a\x0a@temp-dev\x20is\x20intended\x20only\x20for\x20local\x20development\x20and\x20must\x20not\x20be\x20used\x20in\x20production.'},'schema':[]}},createRule=ESLintUtils['RuleCreator'](_0x30eeb9=>''+url+_0x30eeb9),noImportFromTempDev=createRule({'name':ruleName,'meta':constants['meta'],'defaultOptions':[],'create'(_0x3ba5b6){return {'ImportDeclaration'(_0x1c60ad){checkAndReport(_0x3ba5b6,_0x1c60ad['source'],_0x1c60ad['source']['value']);},'ImportExpression'(_0x3583fc){_0x3583fc['source']['type']===nodeTypes['literal']&&checkAndReport(_0x3ba5b6,_0x3583fc['source'],_0x3583fc['source']['value']??void(-0x1696+0x2277+-0xbe1));},'ExportNamedDeclaration'(_0x913b38){_0x913b38['source']&&checkAndReport(_0x3ba5b6,_0x913b38['source'],_0x913b38['source']['value']);},'ExportAllDeclaration'(_0x70ff9b){checkAndReport(_0x3ba5b6,_0x70ff9b['source'],_0x70ff9b['source']['value']);}};}});function isTempDevImport(_0x15d183){return typeof _0x15d183==='string'&&_0x15d183['startsWith']('@temp-dev');}__name(isTempDevImport,'isTempDevImport');function checkAndReport(_0x22a755,_0xde4844,_0x1b2234){isTempDevImport(_0x1b2234)&&_0x22a755['report']({'node':_0xde4844,'messageId':tempDevImportMessageId});}__name(checkAndReport,'checkAndReport');

export { noImportFromTempDev as default, ruleName };
