From d7ed1196bdd44d7734d41d91a5e72a71785e0a08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 5 Jan 2023 02:09:07 +0100 Subject: switched to single quotes string in eslint --- utils/board.js | 30 +++++++++++++++--------------- utils/checks.js | 14 +++++++------- 2 files changed, 22 insertions(+), 22 deletions(-) (limited to 'utils') diff --git a/utils/board.js b/utils/board.js index f9a3b9d..523e1ec 100644 --- a/utils/board.js +++ b/utils/board.js @@ -1,19 +1,19 @@ export const emptyBoard = [ - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "", "", "", "", "", "" ] + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ], + [ '', '', '', '', '','', '', '', '', '', '', '', '', '', '' ] ]; export const letters_total = 102; diff --git a/utils/checks.js b/utils/checks.js index 85c51df..e823cf7 100644 --- a/utils/checks.js +++ b/utils/checks.js @@ -1,15 +1,15 @@ -import { check } from "express-validator"; +import { check } from 'express-validator'; -export const checkName = check("name") +export const checkName = check('name') .trim() .matches(/^[a-z][-a-z0-9_]+$/i) - .withMessage("Un identifiant d'au moins deux charactères est requis."); + .withMessage('Un identifiant d\'au moins deux charactères est requis.'); -export const checkPassword = check("password") +export const checkPassword = check('password') .isStrongPassword() - .withMessage("Veuillez utiliser un mot de passe d'au moins 8 caractères contenant au moins une minuscule, majuscule, chiffre et charactère spécial."); + .withMessage('Veuillez utiliser un mot de passe d\'au moins 8 caractères contenant au moins une minuscule, majuscule, chiffre et charactère spécial.'); -export const checkUsername = check("username") +export const checkUsername = check('username') .trim() .matches(/^[a-z][-a-z0-9_]+$/i) - .withMessage("Un identifiant d'au moins deux charactères est requis."); + .withMessage('Un identifiant d\'au moins deux charactères est requis.'); -- cgit v1.2.3