From d6cfb8e2a31d816b468d0a260e5458b023f02203 Mon Sep 17 00:00:00 2001 From: Georgi 7DIGIT Date: Thu, 31 Aug 2023 15:58:07 +0300 Subject: [PATCH] Add: linter script --- .eslintrc.json | 9 ++++++++- package.json | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9a3b474..012a7c2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,6 +11,13 @@ "plugins": ["prettier"], "rules": { "no-undefined": "off", - "no-undef": "off" + "no-undef": "off", + "quotes": [ + "error", + "double", + { + "allowTemplateLiterals": true + } + ] } } diff --git a/package.json b/package.json index e8be5fd..aaabbff 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "USupport admin Node.js API service", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "lint": "eslint . --ext .js,.jsx" }, "author": "", "license": "ISC",