all repos — simple-discord-music-bot @ 142a67c1f9a5c30d9c4bebd699b8e8c012d0d5ee

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		"indent": ["error", "tab"],
20		"keyword-spacing": "error",
21		"max-nested-callbacks": ["error", { "max": 4 }],
22		"max-statements-per-line": ["error", { "max": 2 }],
23		"no-console": "off",
24		"no-empty-function": "error",
25		"no-floating-decimal": "error",
26		"no-inline-comments": 0,
27		"no-lonely-if": "error",
28		"no-multi-spaces": "error",
29		"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
30		"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
31		"no-trailing-spaces": ["error"],
32		"no-var": "error",
33		"object-curly-spacing": ["error", "always"],
34		"prefer-const": "error",
35		"quotes": ["error", "single"],
36		"semi": ["error", "always"],
37		"space-before-blocks": "error",
38		"space-before-function-paren": ["error", {
39			"anonymous": "never",
40			"named": "never",
41			"asyncArrow": "always"
42		}],
43		"space-in-parens": "error",
44		"space-infix-ops": "error",
45		"space-unary-ops": "error",
46		"spaced-comment": "error",
47		"yoda": "error"
48	}
49}