forked from NinoDiscord/Nino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
77 lines (77 loc) · 2.4 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
{
"root": true,
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"forOf": true,
"spread": true,
"modules": true,
"classes": true,
"generators": true,
"restParams": true,
"regexUFlag": true,
"regexYFlag": true,
"globalReturn": true,
"destructuring": true,
"impliedStrict": true,
"blockBindings": true,
"defaultParams": true,
"octalLiterals": true,
"arrowFunctions": true,
"binaryLiterals": true,
"templateStrings": true,
"superInFunctions": true,
"unicodeCodePointEscapes": true,
"objectLiteralShorthandMethods": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandProperties": true
}
},
"rules": {
"no-unexpected-multiline": "error",
"object-curly-spacing": ["error", "always", { "objectsInObjects": false }],
"no-duplicate-imports": "error",
"no-extra-boolean-cast": "error",
"no-floating-decimal": "error",
"no-unsafe-negation": "error",
"no-unsafe-finally": "error",
"no-sparse-arrays": "error",
"space-in-parens": ["error", "never"],
"no-new-wrappers": "error",
"no-func-assign": "error",
"no-unreachable": "error",
"getter-return": "error",
"no-extra-semi": "error",
"for-direction": "error",
"no-debugger": "error",
"no-new-func": "error",
"brace-style": ["error", "1tbs"],
"use-isnan": "warn",
"no-caller": "error",
"no-empty": "error",
"no-with": "error",
"camelcase": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"yoda": "error",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-namespace": ["error", { "allowDeclarations": true }],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/brace-style": ["error", "1tbs"]
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"]
}