diff options
author | Julien Dessaux | 2023-01-05 02:09:07 +0100 |
---|---|---|
committer | Julien Dessaux | 2023-01-05 02:09:07 +0100 |
commit | d7ed1196bdd44d7734d41d91a5e72a71785e0a08 (patch) | |
tree | aafae6571d5154dc5e9a061c8f54ca8e9b1287ad /utils | |
parent | Added more tests (diff) | |
download | jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.gz jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.tar.bz2 jeux-de-mots-d7ed1196bdd44d7734d41d91a5e72a71785e0a08.zip |
switched to single quotes string in eslint
Diffstat (limited to 'utils')
-rw-r--r-- | utils/board.js | 30 | ||||
-rw-r--r-- | utils/checks.js | 14 |
2 files changed, 22 insertions, 22 deletions
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.'); |