forked from edtechhub/zotero-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
69 lines (69 loc) · 2.73 KB
/
tslint.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
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"no-console": false,
"member-access": false,
"max-classes-per-file": false,
"new-parens": false,
"no-var-requires": false,
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"max-line-length": {
"severity": "warning",
"options": [240]
},
"ordered-imports": false,
"prefer-const": [true, {"destructuring": "all"}],
"member-ordering": [true, {
"order": [
"public-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-constructor",
"public-instance-method",
"protected-instance-method",
"private-constructor",
"private-instance-method"
]
}],
"no-magic-numbers": [true, -1, 0, 1, 2, 1000],
"prefer-for-of": true,
"no-duplicate-variable": true,
"no-string-throw": true,
"no-var-keyword": true,
"prefer-object-spread": true,
"triple-equals": [true, "allow-undefined-check", "allow-null-check"],
"indent": [true, "spaces", 2],
"linebreak-style": [true, "LF"],
"eofline": true,
"trailing-comma": [true, {"singleline": "never", "multiline": {"objects": "always", "arrays": "always", "functions": "never", "typeLiterals": "ignore"}}],
"arrow-parens": [true, "ban-single-arg-parens"],
"arrow-return-shorthand": true,
"binary-expression-operand-order": true,
"class-name": true,
"no-irregular-whitespace": true,
"no-trailing-whitespace": [true, "ignore-jsdoc", "ignore-template-strings"],
"no-unnecessary-callback-wrapper": true,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-shorthand": true,
"one-line": [true, "check-catch", "check-finally", "check-else", "check-open-brace"],
"prefer-template": [true, "allow-single-concat"],
"semicolon": [true, "never"],
"space-before-function-paren": [true, {"anonymous": "never", "method": "never", "constructor": "never", "named": "never", "asyncArrow": "always"}],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-snake-case" ],
"curly": [true, "ignore-same-line"],
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"radix": false,
"object-literal-sort-keys": false,
"no-empty": [true, "allow-empty-catch"],
"no-conditional-assignment": false,
"one-variable-per-declaration": false
},
"rulesDirectory": [],
"doc": "https://palantir.github.io/tslint/rules/"
}