all repos — simple-discord-music-bot @ c3f53849daa6440947a7e696d9763940fa6f0da5

A Discord bot making use of discord.js and play-yt.

.eslintrc.json (view raw)

 1{
 2    "extends": "eslint:recommended",
 3    "env": {
 4        "node": true,
 5        "es6": true
 6    },
 7    "parserOptions": {
 8        "ecmaVersion": 2021
 9    },
10    "rules": {
11        "arrow-spacing": ["warn", { "before": true, "after": true }],
12        "brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
13        "comma-dangle": ["error", "always-multiline"],
14        "comma-spacing": "error",
15        "comma-style": "error",
16        "curly": [0, "multi-line", "consistent"],
17        "dot-location": ["error", "property"],
18        "handle-callback-err": "off",
19        "keyword-spacing": "error",
20        "max-nested-callbacks": ["error", { "max": 4 }],
21        "max-statements-per-line": ["error", { "max": 2 }],
22        "no-console": "off",
23        "no-empty-function": "error",
24        "no-floating-decimal": "error",
25        "no-inline-comments": 0,
26        "no-lonely-if": "error",
27        "no-multi-spaces": "error",
28        "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
29        "no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
30        "no-trailing-spaces": ["error"],
31        "no-var": "error",
32        "object-curly-spacing": ["error", "always"],
33        "prefer-const": "error",
34        "quotes": ["error", "single"],
35        "semi": ["error", "always"],
36        "space-before-blocks": "error",
37        "space-before-function-paren": ["error", {
38            "anonymous": "never",
39            "named": "never",
40            "asyncArrow": "always"
41        }],
42        "space-in-parens": "error",
43        "space-infix-ops": "error",
44        "space-unary-ops": "error",
45        "spaced-comment": "error",
46        "yoda": "error"
47    }
48}