add module and eslint script

This commit is contained in:
Mylloon 2022-07-03 17:48:23 +02:00
parent 3d0fe87717
commit 574583389f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 6 additions and 3 deletions

View file

@ -5,7 +5,8 @@
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021
"ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],

View file

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