This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
forked from tecosaur/LaTeX-Utilities
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
113 lines (113 loc) · 4.03 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"env": {
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
// "plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"project": "./tsconfig.json"
},
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-constant-condition": "off",
"@typescript-eslint/ban-ts-ignore": "warn",
"@typescript-eslint/prefer-interface": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/class-name-casing": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/type-annotation-spacing": [
"error",
{ "before": false, "after": true, "overrides": { "arrow": { "before": true, "after": true } } }
],
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"prefer-arrow-callback": ["error", { "allowUnboundThis": false }],
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/prefer-regexp-exec": "off",
"curly": "error",
"eol-last": "error",
"no-caller": "error",
"no-multiple-empty-lines": "error",
"no-new-wrappers": "error",
"no-eval": "error",
"no-invalid-this": "error",
"no-console": "off",
"@typescript-eslint/no-require-imports": "error",
"no-shadow": "error",
"no-trailing-spaces": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-unused-expressions": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", { "initialized": "never", "uninitialized": "never" }],
"prefer-const": "error",
"quotes": ["error", "single", { "avoidEscape": true }],
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": { "delimiter": "none", "requireLast": false },
"singleline": { "delimiter": "comma", "requireLast": false }
}
],
"default-case": "error",
"eqeqeq": ["error", "always"],
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
"func-call-spacing": ["error", "never"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }]
/*
"align": [true, "parameters", "statements"],
"no-angle-bracket-type-assertion": true,
"no-default-export": true,
"one-line": [
true,
"check-catch",
"check-else",
"check-finally",
"check-open-brace",
"check-whitespace"
],
"typedef-whitespace": [
true,
{
"call-signature": "onespace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
] */
}
}