-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
92 lines (92 loc) · 2.92 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"root": true,
"env": {
"node": true,
"browser": true,
"es2021": true
},
"plugins": [
"eslint-plugin-markdownlint",
"eslint-plugin-import",
"eslint-plugin-promise",
"eslint-plugin-n",
"stylistic"
],
"extends": ["eslint:recommended"],
"overrides": [
{
"files": ["*.js"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrors": "none",
"destructuredArrayIgnorePattern": "^_"
}],
"@stylistic/indent": ["error", 4, {
"SwitchCase": 1
}],
"@stylistic/eol-last": "error",
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"]
}
},
{
"files": ["*.md"],
"parser": "eslint-plugin-markdownlint/parser",
"extends": ["plugin:markdownlint/recommended"],
"rules": {
"markdownlint/md013": ["warn", {
"line_length": 120,
"heading_line_length": 120,
"code_block_line_length": 120,
"stern": true,
"tables": false
}],
"markdownlint/md024": ["warn", {
"siblings_only": true
}],
"markdownlint/md029": ["warn", {
"style": "ordered"
}],
"markdownlint/md033": ["warn", {
"allowed_elements": ["h1", "p", "br", "img"]
}],
"markdownlint/md044": ["warn", {
"names": [
"Discord Bot Maker",
"DBM",
"DBM German",
"DBM German Bot",
"Discord",
"TypeScript",
"JavaScript",
"JSDoc",
"JSON",
"JSONC",
"DBM-",
"dbm-",
"-dbm",
"discord.js",
"discord-api-types",
".json",
".jsonc"
]
}],
"markdownlint/md046": ["warn", {
"style": "fenced"
}],
"markdownlint/md048": ["warn", {
"style": "backtick"
}],
"markdownlint/md050": ["warn", {
"style": "asterisk"
}]
}
}
]
}