From 70efcfeaa0603415dd992cb662d8efb960e6e49a Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 26 Sep 2023 15:54:28 +0200 Subject: refactor(routes): replace hardcoded routes with constants It makes it easier to change a route if needed and it avoid typo mistakes. I also refactored a bit the concerned files to be complient with the new ESlint config. However, I should rewrite the pages to reduce the number of statements. --- .eslintrc.cjs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '.eslintrc.cjs') diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 7e2f9b1..825a5f8 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -353,7 +353,18 @@ module.exports = { 'react/jsx-no-literals': [ 'warn', { - allowedStrings: ['button', 'reset', 'submit'], + allowedStrings: [ + 'application/ld+json', + 'button', + 'og:description', + 'og:image', + 'og:image:alt', + 'og:title', + 'og:type', + 'og:url', + 'reset', + 'submit', + ], ignoreProps: false, noAttributeStrings: true, noStrings: true, -- cgit v1.2.3