From bf758afe1ac199406490fb07469909becbcab6b2 Mon Sep 17 00:00:00 2001 From: Slava Leleka Date: Tue, 7 Nov 2023 14:10:51 +0200 Subject: [PATCH] fix linter errors --- packages/agtree/CHANGELOG.md | 2 +- packages/agtree/src/validator/value.ts | 1 + packages/agtree/test/validator/index.test.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/agtree/CHANGELOG.md b/packages/agtree/CHANGELOG.md index b3468919b6..e6256389a5 100644 --- a/packages/agtree/CHANGELOG.md +++ b/packages/agtree/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog][keepachangelog], and this project adheres to [Semantic Versioning][semver]. -# 1.1.7 - 2023-11-07 +## 1.1.7 - 2023-11-07 ### Added diff --git a/packages/agtree/src/validator/value.ts b/packages/agtree/src/validator/value.ts index 57e762bc6f..a6c68b374a 100644 --- a/packages/agtree/src/validator/value.ts +++ b/packages/agtree/src/validator/value.ts @@ -654,6 +654,7 @@ const validateReferrerPolicy = (modifier: Modifier): ValidationResult => { const modifierValue = modifier.value.value; if (!REFERRER_POLICY_DIRECTIVES.has(modifierValue)) { + // eslint-disable-next-line max-len return getInvalidValidationResult(`${VALIDATION_ERROR_PREFIX.INVALID_REFERRER_POLICY_DIRECTIVE}: '${modifierName}': '${modifierValue}'`); } diff --git a/packages/agtree/test/validator/index.test.ts b/packages/agtree/test/validator/index.test.ts index b426de9648..11ea92e3ea 100644 --- a/packages/agtree/test/validator/index.test.ts +++ b/packages/agtree/test/validator/index.test.ts @@ -950,15 +950,18 @@ describe('ModifierValidator', () => { test.each([ { actual: 'referrerpolicy=autoplay=self', + // eslint-disable-next-line max-len expected: `${VALIDATION_ERROR_PREFIX.INVALID_REFERRER_POLICY_DIRECTIVE}: 'referrerpolicy': 'autoplay=self'`, }, { actual: 'referrerpolicy=no-origin', + // eslint-disable-next-line max-len expected: `${VALIDATION_ERROR_PREFIX.INVALID_REFERRER_POLICY_DIRECTIVE}: 'referrerpolicy': 'no-origin'`, }, { // non-latin "o" in "origin" actual: 'referrerpolicy=оrigin', + // eslint-disable-next-line max-len expected: `${VALIDATION_ERROR_PREFIX.INVALID_REFERRER_POLICY_DIRECTIVE}: 'referrerpolicy': 'оrigin'`, }, {