forked from CyyberFroggy/porn-vault-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
58 lines (58 loc) · 1.47 KB
/
.eslintrc.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
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"standard",
// "plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended",
"prettier",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 11,
project: ["./tsconfig.json"],
sourceType: "module",
tsconfigRootDir: __dirname,
},
plugins: ["@typescript-eslint", "simple-import-sort"],
root: true,
rules: {
"prettier/prettier": "warn",
"@typescript-eslint/require-await": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/ban-ts-comment": "warn",
"prefer-template": "warn",
curly: "error",
"@typescript-eslint/no-misused-promises": "off",
"no-async-promise-executor": "off",
"@typescript-eslint/no-namespace": "off",
// Turn off default import rules
"sort-imports": "off",
"import/order": "off",
// Use simple-import-sort instead
"simple-import-sort/imports": "error",
"@typescript-eslint/unbound-method": [
"error",
{
ignoreStatic: true,
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNumber: true,
allowBoolean: true,
allowNullish: true,
},
],
},
};