aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-26 15:54:28 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:23:48 +0200
commit70efcfeaa0603415dd992cb662d8efb960e6e49a (patch)
tree5d37e98fae9aa7e5c3d8ef30a10db9fed9b63e36 /.eslintrc.cjs
parent31695306bfed44409f03006ea717fd2cceff8f87 (diff)
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.
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs13
1 files changed, 12 insertions, 1 deletions
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,