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" }