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 "es6": true
}, },
"parserOptions": { "parserOptions": {
"ecmaVersion": 2021 "ecmaVersion": 2021,
"sourceType": "module"
}, },
"rules": { "rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }], "arrow-spacing": ["warn", { "before": true, "after": true }],

View file

@ -4,7 +4,8 @@
"description": "Bot discord", "description": "Bot discord",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {
"main": "node ." "main": "node .",
"eslint": "eslint src"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -18,5 +19,6 @@
"devDependencies": { "devDependencies": {
"dotenv": "^16.0.1", "dotenv": "^16.0.1",
"eslint": "^8.13.0" "eslint": "^8.13.0"
} },
"type": "module"
} }