import type { TSESTree , TSESLint } from '@typescript-eslint/experimental-utils' ; import docsUrl from '../utils/docs-url' ; const rule = { meta : { messages : { nestedTemplateLiterals : 'Refactor this code to not use nested template literals.' , } , schema : [ ] , type : 'suggestion' , docs : { description : 'Template literals should not be nested' , recommended : 'error' , url : docsUrl ( __filename ) , } , } , create ( context ) { return { 'TemplateLiteral TemplateLiteral' : ( node ) => { context . report ( { messageId : 'nestedTemplateLiterals' , node , } ) ; } , } ; } , } ; export = rule ;