-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
executable file
·106 lines (106 loc) · 2.85 KB
/
.eslintrc
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "script"
},
"env": {
"node": true
},
"ignorePatterns": ["*.d.ts", "bigInt.ts", "translation.ts"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": { "sourceType": "module" },
"env": {
"node": true
},
"rules": {
"no-restricted-globals": ["error", "require"]
}
},
{
"files": "src/*",
"env": {
"node": false,
"browser": false
}
}
],
"rules": {
"strict": ["error", "global"],
"indent": ["error", 2, {
"SwitchCase": 1,
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"CallExpression": {
"arguments": "first"
}
}],
"camelcase": "off",
"no-bitwise": "off",
"no-iterator": "off",
"no-continue": "off",
"global-require": "off",
"consistent-return": 1,
"no-tabs": 1,
"guard-for-in": 1,
"no-await-in-loop": "off",
"no-restricted-properties": 1,
"no-eval": "off",
"no-unused-vars": 1,
"no-use-before-define": "off",
"no-array-constructor": 1,
"no-unused-expressions": "off",
"no-plusplus": "off",
"no-useless-escape": 1,
"no-control-regex": 1,
"no-loop-func": 1,
"array-callback-return": "off",
"block-scoped-var": 1,
"quote-props": ["error", "consistent-as-needed"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"curly": ["error", "all"],
"no-param-reassign": "off",
"arrow-parens": ["error", "always"],
"no-multi-assign": "off",
"no-empty": "off",
"func-names": "off",
"import/no-unresolved": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"no-prototype-builtins": "off",
"max-len": "off",
"object-curly-newline": "off",
"prefer-const": ["error", { "destructuring": "all" }],
"class-methods-use-this": "off",
"implicit-arrow-linebreak": "off",
"lines-between-class-members": "off",
"import/no-dynamic-require": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-comment": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-cycle": "off",
"max-classes-per-file": "off"
},
"globals": {
"pylon": false,
"discord": false,
"fetch": false,
"Request": false
}
}