Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/rules/template-no-let-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down