add eslint

This commit is contained in:
KGT1 2020-09-21 04:45:15 +02:00
parent 16ccb31486
commit 31420a22cc
2 changed files with 23 additions and 0 deletions

15
.eslintrc.json Normal file
View File

@ -0,0 +1,15 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true
},
"extends": [
"standard"
],
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
}
}

View File

@ -32,5 +32,13 @@
"window": "^4.2.7", "window": "^4.2.7",
"ws": "^7.3.1", "ws": "^7.3.1",
"ytdl-core": "^3.2.2" "ytdl-core": "^3.2.2"
},
"devDependencies": {
"eslint": "^7.9.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1"
} }
} }