From 574583389fc65aec892c2aa0998e60c88bfe66fc Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 3 Jul 2022 17:48:23 +0200 Subject: [PATCH] add module and eslint script --- .eslintrc.json | 3 ++- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3616a42..2149969 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,8 @@ "es6": true }, "parserOptions": { - "ecmaVersion": 2021 + "ecmaVersion": 2021, + "sourceType": "module" }, "rules": { "arrow-spacing": ["warn", { "before": true, "after": true }], diff --git a/package.json b/package.json index b1fd073..4053550 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "Bot discord", "main": "src/index.js", "scripts": { - "main": "node ." + "main": "node .", + "eslint": "eslint src" }, "repository": { "type": "git", @@ -18,5 +19,6 @@ "devDependencies": { "dotenv": "^16.0.1", "eslint": "^8.13.0" - } + }, + "type": "module" }