-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
71 lines (64 loc) · 1.56 KB
/
index.js
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
import js from "@eslint/js";
import ts from "typescript-eslint";
import prettier from "eslint-plugin-prettier/recommended";
import react from "eslint-plugin-react";
import globals from "globals";
export default [
prettier,
js.configs.recommended,
...ts.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: "latest",
sourceType: "module"
}
},
plugins: {
react
},
settings: {
react: {
version: "18.2"
}
}
},
{
rules: {
indent: "off",
eqeqeq: [
"error",
"always",
{
null: "ignore"
}
],
quotes: [
"error",
"double",
{ avoidEscape: true, allowTemplateLiterals: true }
],
"@typescript-eslint/no-unused-vars": [
"error",
{ args: "none", varsIgnorePattern: "^_" }
],
// Mostly so we don't forget to leave these in when committing
"no-console": "error",
"no-debugger": "error",
// Quite honestly we're interacting with so much unknown within Discord that
// this being enabled is a hinderance
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-require-imports": "off",
// https://canary.discord.com/channels/1154257010532032512/1154275441788583996/1181760413231230976
"no-unused-labels": "off"
}
}
];