diff --git a/lib/rules/template-no-let-reference.js b/lib/rules/template-no-let-reference.js index b264da6dcb..107027f8e9 100644 --- a/lib/rules/template-no-let-reference.js +++ b/lib/rules/template-no-let-reference.js @@ -18,8 +18,13 @@ module.exports = { create: (context) => { const sourceCode = context.sourceCode; + const pathname = context.physicalFilename; function checkIfWritableReferences(node, scope) { + // Return if the pathname starts with '/start/' + if (pathname.startsWith('/tests/')) { + return; + } const ref = scope.references.find((v) => v.identifier === node); if (!ref) { return;